Skip to contentSkip to conversation

master - tests: snapshot now respects threshold

PATCH Zdenek Kabelac 1 participant 1 message Oct 26, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3466cd8a6caff3ca9ad00e22b927dbe22404fe5c
Commit:        3466cd8a6caff3ca9ad00e22b927dbe22404fe5c
Parent:        6e784abbd7336e57fee80dfb6a5a3e7f2fab7a98
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Oct 26 07:34:33 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Oct 26 07:34:33 2015 +0100

tests: snapshot now respects threshold

---
 test/shell/snapshot-usage.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
test/shell/snapshot-usage.sh +3 -3
index ed9d8cb..d15eee1 100644
@@ -169,13 +169,13 @@ lvcreate -s -l12 $vg1/lvol0
 fill 1K
 check lv_field $vg1/lvol1 data_percent "100.00"
 
-# Check it resizes 100% full valid snapshot
+# Check it resizes 100% full valid snapshot to fit threshold
 lvextend --use-policies $vg1/lvol1
-check lv_field $vg1/lvol1 data_percent "80.00"
+check lv_field $vg1/lvol1 data_percent "50.00"
 
 fill 4K
 lvextend --use-policies $vg1/lvol1
-check lv_field $vg1/lvol1 size "18.00k"
+check lv_field $vg1/lvol1 size "24.00k"
 
 lvextend -l+33 $vg1/lvol1
 check lv_field $vg1/lvol1 size "$EXPECT3"