mbox series

[v2,0/3] : generic/020: fix MAX_ATTRVAL_SIZE values

Message ID 20220412105001.14325-1-ddiss@suse.de (mailing list archive)
Headers show
Series : generic/020: fix MAX_ATTRVAL_SIZE values | expand

Message

David Disseldorp April 12, 2022, 10:49 a.m. UTC
MAX_ATTRVAL_SIZE provides a per-filesystem maximum xattr value length
limit. There are a few problems with the current values:
- XFS, UDF and Btrfs are incorrectly hardcoded to use 64 bytes
  + This is a regression from the larger value used prior to fff4359d
  + Btrfs's should be calculated using nodesize and xattr name length
- NFS currently uses a 64K limit
  + This may be above the server's underlying failsystem limit, so use
    a conservative estimate instead

Cheers, David

 common/attr           | 175 ++++++++++++++++++++++++------------------
 tests/generic/020     |  10 ++-
 tests/generic/020.out |   2 +-
 3 files changed, 108 insertions(+), 79 deletions(-)