]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/020: limit xattr value by 3802 bytes
authorViacheslav Dubeyko <slava@dubeyko.com>
Wed, 24 Dec 2025 00:29:58 +0000 (16:29 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 1 Jan 2026 13:14:26 +0000 (21:14 +0800)
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 <slava@dubeyko.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/020

index 8b77d5ca7501059b5e35e0f7f5f93ec78810b655..540f539bf775e0ac279b0525a10f934889f289f7 100755 (executable)
@@ -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`