All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: use 4K with mkfs.xfs
@ 2020-09-19 22:39 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-09-19 22:39 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=531a475afcc602d573581eb11ecc572e427f0f35
Commit:        531a475afcc602d573581eb11ecc572e427f0f35
Parent:        a1074da20d309cf07be472c82a060e088f78127e
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat Sep 19 23:58:30 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Sun Sep 20 00:37:21 2020 +0200

tests: use 4K with mkfs.xfs

If the test runs of loop device backend with 512 sectors,
xfs selects this smaller sector size and then data do not fit
(we would need -l9 with most of 'raids').
With 4K sectors data always fits.
---
 test/shell/integrity-dmeventd.sh | 2 +-
 test/shell/integrity.sh          | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/shell/integrity-dmeventd.sh b/test/shell/integrity-dmeventd.sh
index 043e93371..e82b92142 100644
--- a/test/shell/integrity-dmeventd.sh
+++ b/test/shell/integrity-dmeventd.sh
@@ -39,7 +39,7 @@ _prepare_vg() {
 }
 
 _add_new_data_to_mnt() {
-        mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
+	mkfs.xfs -f -s size=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 1f031e0ed..4da40bcb4 100644
--- a/test/shell/integrity.sh
+++ b/test/shell/integrity.sh
@@ -47,7 +47,7 @@ _prepare_vg() {
 }
 
 _test_fs_with_error() {
-	mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
+	mkfs.xfs -f -s size=4096 "$DM_DEV_DIR/$vg/$lv1"
 
 	mount "$DM_DEV_DIR/$vg/$lv1" $mnt
 
@@ -97,7 +97,7 @@ _test_fs_with_error() {
 }
 
 _test_fs_with_raid() {
-	mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
+	mkfs.xfs -f -s size=4096 "$DM_DEV_DIR/$vg/$lv1"
 
 	mount "$DM_DEV_DIR/$vg/$lv1" $mnt
 
@@ -144,7 +144,7 @@ _test_fs_with_raid() {
 }
 
 _add_new_data_to_mnt() {
-	mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
+	mkfs.xfs -f -s size=4096 "$DM_DEV_DIR/$vg/$lv1"
 
 	mount "$DM_DEV_DIR/$vg/$lv1" $mnt
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-19 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-19 22:39 master - tests: use 4K with mkfs.xfs Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.