mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: remove superfluous -a option for df used in lvresize-xfs.sh
The df -a looks at whole system and it returns an error code in case there's an inaccessible fs which is not even part of the testing environment. The -a for df is not actually needed here in the lvresize-xfs test, so remove it.
This commit is contained in:
parent
1d8a4c4817
commit
a2ca20dad9
@ -113,7 +113,7 @@ dd if=/dev/zero of="$mount_dir_space/zeros1" bs=1M count=20 oflag=direct
|
|||||||
# succeeds, then the xfs extend fails because it cannot be done unmounted
|
# succeeds, then the xfs extend fails because it cannot be done unmounted
|
||||||
not lvextend --fs resize --fsmode offline -L+20M $vg/$lv
|
not lvextend --fs resize --fsmode offline -L+20M $vg/$lv
|
||||||
check lv_field $vg/$lv lv_size "320.00m"
|
check lv_field $vg/$lv lv_size "320.00m"
|
||||||
df -a | tee dfa
|
df | tee dfa
|
||||||
grep "$mount_dir_space" dfa
|
grep "$mount_dir_space" dfa
|
||||||
df --output=size "$mount_dir_space" |tee df2
|
df --output=size "$mount_dir_space" |tee df2
|
||||||
# fs not extended so fs size not changed
|
# fs not extended so fs size not changed
|
||||||
|
Loading…
Reference in New Issue
Block a user