]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/620: force xattr leaf format for this test
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Feb 2026 19:11:28 +0000 (11:11 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Feb 2026 17:31:41 +0000 (01:31 +0800)
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 <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/620

index 42a30630f50ac0bdfaaa0f5702ddc682cac96415..47e042b937eb9c81a8237fe99bfc8adfe11837e4 100755 (executable)
@@ -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