Skip to contentSkip to conversation

master - tests: use 4k extents

PATCH Zdenek Kabelac 1 participant 1 message Mar 17, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=08487a30983bfa4b3c0a7bcd9060657b6c1803ae
Commit:        08487a30983bfa4b3c0a7bcd9060657b6c1803ae
Parent:        e5b40e0488ae85e4adf8736e06a973666ea9280c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Mar 18 00:30:43 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Mar 18 00:30:43 2018 +0100

tests: use 4k extents

Use 4K chunks since some older kernels are not capable to create striped volumes with smaller size.

TODO: lvm2 should detect this ahead and avoid kernel reporting "Invalid chunk".

---
 test/shell/lvconvert-snapshot.sh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
test/shell/lvconvert-snapshot.sh +7 -1
index ecf6b3c..f18115d 100644
@@ -30,7 +30,6 @@ lvcreate -L1 -s -n $lv3 $vg/$lv2
 lvcreate -l1 -n $lv4 $vg
 lvcreate -L1 -n $lv5 $vg
 lvcreate -L1 -n $lv6 $vg
-lvcreate -L1 -i2 -n $lv7 $vg
 
 not lvconvert -s $vg/$lv1 $vg/not_exist
 
@@ -61,6 +60,13 @@ grep "smaller" err
 lvconvert --yes -s $vg/$lv2 $vg/$lv5
 lvconvert --yes --type snapshot $vg/$lv2 $vg/$lv6
 
+vgremove -f $vg
+
+# FIXME: older stripe target can't handle 1K chunks
+vgcreate -s 4k "$vg" "${DEVICES[@]}"
+lvcreate -aey -L1 -n $lv2 $vg
+lvcreate -L1 -i2 -n $lv7 $vg
+
 # Striped LV is also supported
 lvconvert --yes --snapshot $vg/$lv2 $vg/$lv7