From 57594fe673587ea33a6521733376862055ecbd65 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 7 Dec 2020 16:20:00 +0100 Subject: [PATCH] tests: few more fsadm checks --- test/shell/fsadm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/shell/fsadm.sh b/test/shell/fsadm.sh index 910edddd8..67f9660e6 100644 --- a/test/shell/fsadm.sh +++ b/test/shell/fsadm.sh @@ -96,9 +96,19 @@ lvcreate -n $lv1 -L20M $vg lvcreate -n ${lv1}bar -L10M $vg trap 'cleanup_mounted_and_teardown' EXIT +# prints help +fsadm + +# check needs arg +not fsadm check + if check_missing ext2; then mkfs.ext2 -b4096 -j "$dev_vg_lv" + # Check 'check' works + fsadm check $vg_lv + # Check 'resize' without size parameter works + fsadm resize $vg_lv fsadm --lvresize resize $vg_lv 30M # Fails - not enough space for 4M fs not fsadm -y --lvresize resize "$dev_vg_lv" 4M