]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/486: adjust the max xattr size
authorLuís Henriques <lhenriques@suse.de>
Mon, 13 Jun 2022 11:31:42 +0000 (12:31 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 24 Jun 2022 15:12:20 +0000 (23:12 +0800)
commitb55aef7cfe6c51bb08b2f820e2afc5b2142d86db
treee5c1921ac3ee2eff8f8d06d19d7f8a55aee8e1b0
parentad794b00a3c209efe5d4a213119386dce20644fc
generic/486: adjust the max xattr size

CephFS doesn't have a maximum xattr size.  Instead, it imposes a maximum
size for the full set of xattrs names+values, which by default is 64K.  And
since it reports 4M as the blocksize (the default ceph object size),
generic/486 will fail in ceph because the XATTR_SIZE_MAX value can't be used
in attr_replace_test.

The fix is to add a new argument to the test so that the max size can be
passed in instead of trying to auto-probe a value for it.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/attr_replace_test.c
tests/generic/486