cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH gfs2-utils] tests: Increase the size of the sparse file used by tests
@ 2021-11-09 15:41 Andrew Price
  0 siblings, 0 replies; only message in thread
From: Andrew Price @ 2021-11-09 15:41 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Bump the size of the 'testvol' sparse file that the tests use to 20G.
The actual disk space used is more like 200M which should be fine for
build environments. The increased size allows more resource groups to be
created in tests that use a larger resource group size.

Signed-off-by: Andrew Price <anprice@redhat.com>
---
 tests/atlocal.in | 2 +-
 tests/edit.at    | 4 ++--
 tests/tune.at    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/atlocal.in b/tests/atlocal.in
index b021b132..b0f22f10 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -1,5 +1,5 @@
 GFS_TGT="$abs_builddir/testvol"
-GFS_TGT_SZ=10
+GFS_TGT_SZ=20
 GFS_MKFS="mkfs.gfs2 -O -D"
 
 gfs_max_blocks()
diff --git a/tests/edit.at b/tests/edit.at
index d70d012e..d6795218 100644
--- a/tests/edit.at
+++ b/tests/edit.at
@@ -6,8 +6,8 @@ AT_KEYWORDS(gfs2_edit edit)
 GFS_TGT_REGEN
 AT_CHECK([$GFS_MKFS -p lock_nolock $GFS_TGT $(($(gfs_max_blocks 4096)/2))], 0, [ignore], [ignore])
 AT_CHECK([gfs2_edit savemeta $GFS_TGT test.meta > savemeta.log], 0, [ignore], [ignore])
-AT_CHECK([head -2 savemeta.log], 0, [There are 1310716 blocks of 4096 bytes in the filesystem.
-Filesystem size: 5.00GB
+AT_CHECK([head -2 savemeta.log], 0, [There are 2621439 blocks of 4096 bytes in the filesystem.
+Filesystem size: 10.00GB
 ], [ignore])
 GFS_TGT_REGEN
 AT_CHECK([gfs2_edit restoremeta test.meta $GFS_TGT], 0, [ignore], [ignore])
diff --git a/tests/tune.at b/tests/tune.at
index 43ce34ce..4f0ecd79 100644
--- a/tests/tune.at
+++ b/tests/tune.at
@@ -32,8 +32,8 @@ File system magic number: 0x1161970
 File system format version: 1802
 Block size: 4096
 Block shift: 12
-Root inode: 16709
-Master inode: 16437
+Root inode: 33127
+Master inode: 32854
 Lock protocol: lock_nolock
 Lock table: cluster:fsname
 " > expout], 0, [ignore], [ignore])
-- 
2.31.1



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

only message in thread, other threads:[~2021-11-09 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 15:41 [Cluster-devel] [PATCH gfs2-utils] tests: Increase the size of the sparse file used by tests Andrew Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).