From: Viacheslav Dubeyko Date: Wed, 24 Dec 2025 00:29:58 +0000 (-0800) Subject: generic/020: limit xattr value by 3802 bytes X-Git-Tag: v2026.01.05~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e45c90fedb0b6107ea73ee2812ce823f4f2a0f6e;p=xfstests-dev.git generic/020: limit xattr value by 3802 bytes HFS+ implementation supports only inline extended attributes. The size of value for inline xattr is limited by 3802 bytes [1]. [1] https://elixir.bootlin.com/linux/v6.19-rc2/source/include/linux/hfs_common.h#L626 Signed-off-by: Viacheslav Dubeyko Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/generic/020 b/tests/generic/020 index 8b77d5ca..540f539b 100755 --- a/tests/generic/020 +++ b/tests/generic/020 @@ -168,6 +168,11 @@ _attr_get_maxval_size() fi max_attrval_size=$((65536 - $size - $selinux_size - $max_attrval_namelen)) ;; + hfsplus) + # HFS+ implementation supports only inline extended attributes. + # The size of value for inline xattr is limited by 3802 bytes. + max_attrval_size=3802 + ;; *) # Assume max ~1 block of attrs BLOCK_SIZE=`_get_block_size $TEST_DIR`