34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From aa78a84b20861bb37ca420c1278967f42e6c24dc Mon Sep 17 00:00:00 2001
|
||
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
||
|
Date: Fri, 8 Nov 2024 16:38:29 +0100
|
||
|
Subject: [PATCH 13/13] tests: check vdo minimum_io_size
|
||
|
|
||
|
(cherry picked from commit dcac774f0982470b29bf04f27b6394fe27c4df71)
|
||
|
---
|
||
|
test/shell/lvcreate-vdo.sh | 11 +++++++++++
|
||
|
1 file changed, 11 insertions(+)
|
||
|
|
||
|
diff --git a/test/shell/lvcreate-vdo.sh b/test/shell/lvcreate-vdo.sh
|
||
|
index b24801375..87d6f98a1 100644
|
||
|
--- a/test/shell/lvcreate-vdo.sh
|
||
|
+++ b/test/shell/lvcreate-vdo.sh
|
||
|
@@ -89,4 +89,15 @@ check lv_field $vg/$lv1 vdo_ack_threads "4"
|
||
|
lvs -a $vg
|
||
|
lvremove -ff $vg
|
||
|
|
||
|
+lvcreate --type vdo --vdosettings 'minimum_io_size=512' -L10G -V1T -ky -n $lv1 $vg
|
||
|
+check lv_field $vg/$lv1 vdo_minimum_io_size "512b"
|
||
|
+lvremove -ff $vg
|
||
|
+
|
||
|
+lvcreate --type vdo --vdosettings 'minimum_io_size=4096' -L10G -V1T -ky -n $lv1 $vg
|
||
|
+check lv_field $vg/$lv1 vdo_minimum_io_size "4.00k"
|
||
|
+lvremove -ff $vg
|
||
|
+
|
||
|
+# only 512 or 4096 are valid values (and eventually 1 or 8 sectors)
|
||
|
+not lvcreate --type vdo --vdosettings 'minimum_io_size=8000' -L10G -V1T -ky -n $lv1 $vg
|
||
|
+
|
||
|
vgremove -ff $vg
|
||
|
--
|
||
|
2.47.0
|
||
|
|