summaryrefslogtreecommitdiffstats
path: root/tests/ts/blkid
diff options
context:
space:
mode:
authorRuediger Meier2016-10-21 16:19:29 +0200
committerRuediger Meier2016-10-21 16:37:58 +0200
commit561dedcf3b381c385323fea8796b89f75826c50f (patch)
treef560d507ad1e0bf8d3a5e95248aae971da3a0f75 /tests/ts/blkid
parentgetopt: be sure that options array is terminated (diff)
downloadkernel-qcow2-util-linux-561dedcf3b381c385323fea8796b89f75826c50f.tar.gz
kernel-qcow2-util-linux-561dedcf3b381c385323fea8796b89f75826c50f.tar.xz
kernel-qcow2-util-linux-561dedcf3b381c385323fea8796b89f75826c50f.zip
test: fix raid1 minimum I/O size
Seems this has been changed in kernels >4.4.x or >4.8 from 512 bytes to 64K. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/blkid')
-rwxr-xr-xtests/ts/blkid/md-raid1-whole2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole
index 76ff8f838..050adecd7 100755
--- a/tests/ts/blkid/md-raid1-whole
+++ b/tests/ts/blkid/md-raid1-whole
@@ -80,6 +80,8 @@ udevadm settle
ts_log "Deinitialize devices"
ts_fdisk_clean
+# seems that raid1 minimum I/O size has been changed in kernels >4.4.x and >4.8
+sed -i 's@^\(I/O size (minimum/optimal): \)[1-9][0-9]*@\1<removed>@' $TS_OUTPUT
# remove generated UUIDs
sed -i -e 's/ID_FS_UUID.*//g' $TS_OUTPUT