From: Darrick J. Wong Date: Mon, 2 Feb 2026 19:11:28 +0000 (-0800) Subject: xfs/620: force xattr leaf format for this test X-Git-Tag: v2026.02.26~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08989d57ae35221d68d0835de6cadd7603b5e1dd;p=xfstests-dev.git xfs/620: force xattr leaf format for this test Now that the kernel's parent pointer update code skips the attr intent mechanism when the attr fork is in local/shortform format, we need to bloat the attr fork to force the slow path for error injection testing. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- diff --git a/tests/xfs/620 b/tests/xfs/620 index 42a30630..47e042b9 100755 --- a/tests/xfs/620 +++ b/tests/xfs/620 @@ -55,8 +55,11 @@ file5="file5" echo "" -# Create files -touch $SCRATCH_MNT/$testfolder1/$file4 +# Create a file with a 53k xattr to force the attr structure out of short +# format. Parent pointer operations on a shortform attr structure can skip the +# attr intent mechanism and therefore do not trigger the larp knob. +truncate -s 53535 $SCRATCH_MNT/$testfolder1/$file4 +$ATTR_PROG -s x $SCRATCH_MNT/$testfolder1/$file4 < $SCRATCH_MNT/$testfolder1/$file4 &>/dev/null _xfs_verify_parent "$testfolder1" "$file4" "$testfolder1/$file4" # Inject error