summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2023-04-23 00:03:43 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2023-04-23 00:03:43 +0200
commitce8835d4c429bd87da5731e3015d9ddc9e3fb888 (patch)
tree09d4d5ef52c4a00c4007392668fbd2dfe8fcb441
parent7cf5feb7d245d22d4968b95f3b7cfb6467461ff2 (diff)
downloadlvm2-ce8835d4c429bd87da5731e3015d9ddc9e3fb888.tar.gz
tests: enforce 4K block for integrity fs
With raid tests it's important we don't get spread of 4K file across 1K block on a multiple disk stripe - so use 4K block size for ext4 fs.
-rw-r--r--test/shell/integrity-caching.sh4
-rw-r--r--test/shell/integrity.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/shell/integrity-caching.sh b/test/shell/integrity-caching.sh
index 52aec98ce..73d33de18 100644
--- a/test/shell/integrity-caching.sh
+++ b/test/shell/integrity-caching.sh
@@ -45,7 +45,7 @@ _prepare_vg() {
}
_test_fs_with_read_repair() {
- mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
+ mkfs.ext4 -b 4096 "$DM_DEV_DIR/$vg/$lv1"
mount "$DM_DEV_DIR/$vg/$lv1" $mnt
@@ -92,7 +92,7 @@ _test_fs_with_read_repair() {
}
_add_new_data_to_mnt() {
- mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
+ mkfs.ext4 -b 4096 "$DM_DEV_DIR/$vg/$lv1"
mount "$DM_DEV_DIR/$vg/$lv1" $mnt
diff --git a/test/shell/integrity.sh b/test/shell/integrity.sh
index c649bef11..b55855ab4 100644
--- a/test/shell/integrity.sh
+++ b/test/shell/integrity.sh
@@ -45,7 +45,7 @@ _prepare_vg() {
}
_test_fs_with_read_repair() {
- mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
+ mkfs.ext4 -b 4096 "$DM_DEV_DIR/$vg/$lv1"
mount "$DM_DEV_DIR/$vg/$lv1" $mnt
@@ -73,7 +73,7 @@ _test_fs_with_read_repair() {
}
_add_new_data_to_mnt() {
- mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
+ mkfs.ext4 -b 4096 "$DM_DEV_DIR/$vg/$lv1"
mount "$DM_DEV_DIR/$vg/$lv1" $mnt