summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-10-05 10:16:20 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-10-05 10:23:20 +0200
commit3ae8adce928d4ce6ef36c87c2a0bb8aa737346b8 (patch)
tree99485567c5c37f4746bb3e147c3f701916a1dfdc
parent9940c2f754e3292b6d96628682c254941ae6cc58 (diff)
downloadlvm2-3ae8adce928d4ce6ef36c87c2a0bb8aa737346b8.tar.gz
fsadm: add --help
Newer version of blockdev tool needs --help as the tool is no longer printing help without this option like it used to in past.
-rw-r--r--WHATS_NEW1
-rwxr-xr-xscripts/fsadm.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index b2037a672..0cdd398b9 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.175 -
======================================
+ Use --help with blockdev when checking for --getsize64 support in fsadm.
Fix metadata corruption in vgsplit intermediate state.
Require LV name with pvmove in a shared VG.
Allow shared active mirror LVs with lvmlockd, dlm, and cmirrord.
diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh
index 459905fc6..753da2b81 100755
--- a/scripts/fsadm.sh
+++ b/scripts/fsadm.sh
@@ -365,7 +365,7 @@ detect_mounted() {
# get the full size of device in bytes
detect_device_size() {
# check if blockdev supports getsize64
- "$BLOCKDEV" 2>&1 | "$GREP" getsize64 >"$NULL"
+ "$BLOCKDEV" --help 2>&1 | "$GREP" getsize64 >"$NULL"
if test $? -eq 0; then
DEVSIZE=$("$BLOCKDEV" --getsize64 "$VOLUME")
test -n "$DEVSIZE" || error "Cannot read size of device \"$VOLUME\"."