mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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.
This commit is contained in:
parent
9940c2f754
commit
3ae8adce92
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.175 -
|
Version 2.02.175 -
|
||||||
======================================
|
======================================
|
||||||
|
Use --help with blockdev when checking for --getsize64 support in fsadm.
|
||||||
Fix metadata corruption in vgsplit intermediate state.
|
Fix metadata corruption in vgsplit intermediate state.
|
||||||
Require LV name with pvmove in a shared VG.
|
Require LV name with pvmove in a shared VG.
|
||||||
Allow shared active mirror LVs with lvmlockd, dlm, and cmirrord.
|
Allow shared active mirror LVs with lvmlockd, dlm, and cmirrord.
|
||||||
|
@ -365,7 +365,7 @@ detect_mounted() {
|
|||||||
# get the full size of device in bytes
|
# get the full size of device in bytes
|
||||||
detect_device_size() {
|
detect_device_size() {
|
||||||
# check if blockdev supports getsize64
|
# check if blockdev supports getsize64
|
||||||
"$BLOCKDEV" 2>&1 | "$GREP" getsize64 >"$NULL"
|
"$BLOCKDEV" --help 2>&1 | "$GREP" getsize64 >"$NULL"
|
||||||
if test $? -eq 0; then
|
if test $? -eq 0; then
|
||||||
DEVSIZE=$("$BLOCKDEV" --getsize64 "$VOLUME")
|
DEVSIZE=$("$BLOCKDEV" --getsize64 "$VOLUME")
|
||||||
test -n "$DEVSIZE" || error "Cannot read size of device \"$VOLUME\"."
|
test -n "$DEVSIZE" || error "Cannot read size of device \"$VOLUME\"."
|
||||||
|
Loading…
Reference in New Issue
Block a user