Thread (13 messages) 13 messages, 3 authors, 2021-03-30

Re: [PATCH 6/6] xfs/535: Fix test to execute in multi-block directory config

From: Chandan Babu R <hidden>
Date: 2021-03-30 03:50:19
Also in: fstests

On 29 Mar 2021 at 23:36, Darrick J. Wong wrote:
On Thu, Mar 25, 2021 at 07:38:57PM +0530, Chandan Babu R wrote:
quoted
xfs/535 attempts to create $srcfile and $dstfile after reduce_max_iextents
error tag is injected. Creation of these files fails when using a multi-block
directory test configuration because,
1. A directory can have a pseudo maximum extent count of 10.
2. In the worst case a directory entry creation operation can consume
   (XFS_DA_NODE_MAXDEPTH + 1 + 1) * (Nr fs blocks in a single directory block)
   extents.
   With 1k fs block size and 4k directory block size, this evaluates to,
   (5 + 1 + 1) * 4
   = 7 * 4
   = 28
   > 10 (Pseudo maximum inode extent count).

This commit fixes the issue by creating $srcfile and $dstfile before injecting
reduce_max_iextents error tag.

Reported-by: Darrick J. Wong <djwong@kernel.org>
Suggested-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <redacted>
Now on to the xfs/538 regressions! ;)
Yup, I am working on them.
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Thanks for the review! I will fold patches 2 to 6 into a single patch and
repost.

-- 
chandan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help