]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/020: fix max_attrval_size for XFS, UDF, Btrfs and NFS
authorDavid Disseldorp <ddiss@suse.de>
Wed, 13 Apr 2022 16:44:21 +0000 (18:44 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 Apr 2022 12:08:31 +0000 (20:08 +0800)
commita59e1f79f4e553b244957527e7a66f5cb2a618e7
tree66a3dbe7f12b1025b3ecbf9149dee1b749b6b9e9
parentdc76e4ec19a8e9da6366cf75d86e063409a385c1
generic/020: fix max_attrval_size for XFS, UDF, Btrfs and NFS

As found by Dave Chinner, fff4359d ("020: make this xattr test generic")
unintentionally changed the long attribute value length from 100K to 64
*bytes* for XFS, UDF and Btrfs.
Update XFS and UDF to use a 64K $max_attrval_size value. For Btrfs, use
the nodesize, xattr length and tree entry overhead sizes to calculate
the maximum.
NFS doesn't provide a way to find out the $max_attrval_size for the
underlying filesystem on the server, so just use a rough 1K limit.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/020