2019-11-06 16:35:32 +00:00
|
|
|
test/dbus/lvmdbustest.py | 1 +
|
|
|
|
test/shell/lvcreate-usage.sh | 6 +++---
|
|
|
|
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
|
2021-11-09 10:06:13 +00:00
|
|
|
index 6d69222..64faf84 100755
|
2019-11-06 16:35:32 +00:00
|
|
|
--- a/test/dbus/lvmdbustest.py
|
|
|
|
+++ b/test/dbus/lvmdbustest.py
|
2021-11-09 10:06:13 +00:00
|
|
|
@@ -1856,6 +1856,7 @@ class TestDbusService(unittest.TestCase):
|
2019-11-06 16:35:32 +00:00
|
|
|
# path to it. Additionally, we will take the symlink and do a lookup
|
|
|
|
# (Manager.LookUpByLvmId) using it and the original device path to
|
|
|
|
# ensure that we can find the PV.
|
|
|
|
+ raise unittest.SkipTest('Test need fixing')
|
|
|
|
symlink = None
|
|
|
|
|
|
|
|
pv = self.objs[PV_INT][0]
|
|
|
|
diff --git a/test/shell/lvcreate-usage.sh b/test/shell/lvcreate-usage.sh
|
2020-04-28 09:35:37 +00:00
|
|
|
index 6d46939..9e00f1c 100644
|
2019-11-06 16:35:32 +00:00
|
|
|
--- a/test/shell/lvcreate-usage.sh
|
|
|
|
+++ b/test/shell/lvcreate-usage.sh
|
2020-04-28 09:35:37 +00:00
|
|
|
@@ -181,15 +181,15 @@ check lv_field $vg/$lv4 lv_read_ahead "auto"
|
|
|
|
DEVICE=$(dmsetup deps -o blkdevname "$dev1" | sed -e "s,.*:\ (\(.*\)),/dev/\1,")
|
2019-11-06 16:35:32 +00:00
|
|
|
RASZ=$(( $(blockdev --getra "$DEVICE" ) / 2 ))
|
2020-04-28 09:35:37 +00:00
|
|
|
test "$RASZ" -ge 128 || RASZ="128"
|
|
|
|
-check lv_field $vg/$lv4 lv_kernel_read_ahead "${RASZ}.00k" --units k
|
|
|
|
+should check lv_field $vg/$lv4 lv_kernel_read_ahead "${RASZ}.00k" --units k
|
|
|
|
lvcreate -vvvvv -L 8 -n $lv5 -i2 --stripesize 16k --readahead auto $vg
|
2019-11-06 16:35:32 +00:00
|
|
|
check lv_field $vg/$lv5 lv_read_ahead "auto"
|
2020-04-28 09:35:37 +00:00
|
|
|
# For 16k stripe we set '128k' as the is the minimum size we get when creating DM device
|
|
|
|
-check lv_field $vg/$lv5 lv_kernel_read_ahead "128.00k" --units k
|
|
|
|
+should check lv_field $vg/$lv5 lv_kernel_read_ahead "128.00k" --units k
|
2019-11-06 16:35:32 +00:00
|
|
|
lvcreate -L 8 -n $lv6 -i2 --stripesize 128k --readahead auto $vg
|
|
|
|
check lv_field $vg/$lv6 lv_read_ahead "auto"
|
2020-04-28 09:35:37 +00:00
|
|
|
# For striped device we set double of strip size unrelated to underlaying dev RA size
|
|
|
|
-check lv_field $vg/$lv6 lv_kernel_read_ahead "512.00k" --units k
|
|
|
|
+should check lv_field $vg/$lv6 lv_kernel_read_ahead "512.00k" --units k
|
2019-11-06 16:35:32 +00:00
|
|
|
lvremove -ff $vg
|
|
|
|
|
|
|
|
#
|