* [PATCH] xfs/604: Make test as _notrun for higher blocksizes filesystem
@ 2024-01-19 9:27 Ritesh Harjani (IBM)
2024-01-21 4:56 ` Darrick J. Wong
0 siblings, 1 reply; 3+ messages in thread
From: Ritesh Harjani (IBM) @ 2024-01-19 9:27 UTC (permalink / raw)
To: fstests; +Cc: linux-xfs, Ritesh Harjani (IBM)
If we have filesystem with blocksize = 64k, then the falloc value will
be huge which makes fallocate fail hence causing the test to fail.
Instead make the testcase "_notrun" if the fallocate itself fails.
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
---
tests/xfs/604 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/xfs/604 b/tests/xfs/604
index bb6db797..40596a28 100755
--- a/tests/xfs/604
+++ b/tests/xfs/604
@@ -35,7 +35,8 @@ allocbt_node_maxrecs=$(((dbsize - alloc_block_len) / 12))
# Create a big file with a size such that the punches below create the exact
# free extents we want.
num_holes=$((allocbt_leaf_maxrecs * allocbt_node_maxrecs - 1))
-$XFS_IO_PROG -c "falloc 0 $((9 * dbsize + num_holes * dbsize * 2))" -f "$SCRATCH_MNT/big"
+$XFS_IO_PROG -c "falloc 0 $((9 * dbsize + num_holes * dbsize * 2))" -f "$SCRATCH_MNT/big" ||
+ _notrun "Not enough space on device for bs=$dbsize"
# Fill in any small free extents in AG 0. After this, there should be only one,
# large free extent.
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs/604: Make test as _notrun for higher blocksizes filesystem
2024-01-19 9:27 [PATCH] xfs/604: Make test as _notrun for higher blocksizes filesystem Ritesh Harjani (IBM)
@ 2024-01-21 4:56 ` Darrick J. Wong
2024-01-22 6:29 ` Ritesh Harjani
0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2024-01-21 4:56 UTC (permalink / raw)
To: Ritesh Harjani (IBM); +Cc: fstests, linux-xfs
On Fri, Jan 19, 2024 at 02:57:45PM +0530, Ritesh Harjani (IBM) wrote:
> If we have filesystem with blocksize = 64k, then the falloc value will
> be huge which makes fallocate fail hence causing the test to fail.
> Instead make the testcase "_notrun" if the fallocate itself fails.
How much space is it asking for?
--D
> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
> ---
> tests/xfs/604 | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/xfs/604 b/tests/xfs/604
> index bb6db797..40596a28 100755
> --- a/tests/xfs/604
> +++ b/tests/xfs/604
> @@ -35,7 +35,8 @@ allocbt_node_maxrecs=$(((dbsize - alloc_block_len) / 12))
> # Create a big file with a size such that the punches below create the exact
> # free extents we want.
> num_holes=$((allocbt_leaf_maxrecs * allocbt_node_maxrecs - 1))
> -$XFS_IO_PROG -c "falloc 0 $((9 * dbsize + num_holes * dbsize * 2))" -f "$SCRATCH_MNT/big"
> +$XFS_IO_PROG -c "falloc 0 $((9 * dbsize + num_holes * dbsize * 2))" -f "$SCRATCH_MNT/big" ||
> + _notrun "Not enough space on device for bs=$dbsize"
>
> # Fill in any small free extents in AG 0. After this, there should be only one,
> # large free extent.
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs/604: Make test as _notrun for higher blocksizes filesystem
2024-01-21 4:56 ` Darrick J. Wong
@ 2024-01-22 6:29 ` Ritesh Harjani
0 siblings, 0 replies; 3+ messages in thread
From: Ritesh Harjani @ 2024-01-22 6:29 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: fstests, linux-xfs
"Darrick J. Wong" <djwong@kernel.org> writes:
> On Fri, Jan 19, 2024 at 02:57:45PM +0530, Ritesh Harjani (IBM) wrote:
>> If we have filesystem with blocksize = 64k, then the falloc value will
>> be huge which makes fallocate fail hence causing the test to fail.
>> Instead make the testcase "_notrun" if the fallocate itself fails.
>
> How much space is it asking for?
~5451.33 GB for 64k bs v/s ~1.29GB for 4k.
Let me modify the patch to also print the requested falloc size in GB.
That will be much better.
-ritesh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-22 6:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19 9:27 [PATCH] xfs/604: Make test as _notrun for higher blocksizes filesystem Ritesh Harjani (IBM)
2024-01-21 4:56 ` Darrick J. Wong
2024-01-22 6:29 ` Ritesh Harjani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox