diff options
Diffstat (limited to 'test/shell/lvresize-full.sh')
-rw-r--r-- | test/shell/lvresize-full.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/shell/lvresize-full.sh b/test/shell/lvresize-full.sh index 91a709b8e..c295b003d 100644 --- a/test/shell/lvresize-full.sh +++ b/test/shell/lvresize-full.sh @@ -68,7 +68,10 @@ grep -v "20000 blocks" out # Also check it fails when the user 'resize' volume without # resizing fs and then retries with '-r'. -lvreduce -f -l50%VG $vg/$lv1 -fail lvresize -r -f -l50%VG $vg/$lv1 +# The first lvreduce intentionally ignores the fs and intentionally +# corrupts the fs so that the second lvresize will fail when it runs +# fsck. +lvreduce -f --fs ignore -l50%VG $vg/$lv1 +fail lvresize -r -f -l20%VG $vg/$lv1 lvremove -ff $vg |