From 3ae8adce928d4ce6ef36c87c2a0bb8aa737346b8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 5 Oct 2017 10:16:20 +0200 Subject: [PATCH] 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. --- WHATS_NEW | 1 + scripts/fsadm.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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\"."