]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fsstress: fix attr_set naming
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 May 2025 21:54:07 +0000 (14:54 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 8 May 2025 05:24:04 +0000 (13:24 +0800)
commite72c9219f97797cfbfe08cfd616245b0d7e0f7e9
treeb16a93c8dfe4ea1eccad7d99cec136cf5f751a44
parent363069162ae123e0f0b5045d18744c328d9627a6
fsstress: fix attr_set naming

Back in 2020 I converted attr_set to lsetxattr, but neglected to notice
that the attr name now has to have the prefix "user." which attr_set
used to append for us.  Unfortunately nobody runs fsstress in verbose
mode so I didn't notice until now, and even then only because fuse2fs
stupidly accepts any name, even if that corrupts the filesystem.

Found by running generic/642 on fuse2fs.

Cc: fstests@vger.kernel.org # v2022.05.01
Fixes: 808f39a416c962 ("fsstress: stop using attr_set")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
ltp/fsstress.c