Skip to content

Two xattrs-related fixes for ceph

Luís Henriques ceph-devel fstests 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 10 repliesSuperseded
  3. v12 patches 12 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2generic/020: adjust max_attrval_size for cephtests/generic/020+25 -81 reply
2/2generic/486: adjust the max xattr sizesrc/attr_replace_test.c tests/generic/486+36 -51 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid DisseldorpXiubo Li
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Two xattrs-related fixes for ceph

Hi!

A bug fix in ceph has made some changes in the way xattr limits are enforced on the client side. This requires some fixes on tests generic/020 and generic/486.

* Changes since v2:

- patch 0001:
Add logic to compute the *real* maximum. Kudos to David Disseldorp for providing the right incantation to do the maths. Also split _attr_get_max() in two, so that they can be invoked from different places in the test script.

- patch 002:
attr_replace_test now has an extra param as suggested by Dave Chinner, and added fs-specific logic to the script. No need to have an exact maximum in this test, a big-enough value suffices.

* Changes since v1:

- patch 0001:
Set the max size for xattrs values to a 65000, so that it is close to the maximum, but still able to accommodate any pre-existing xattr

- patch 0002:
Same thing as patch 0001, but in a more precise way: actually take into account the exact sizes for name+value of a pre-existing xattr.

Luís Henriques (2):
generic/020: adjust max_attrval_size for ceph
generic/486: adjust the max xattr size

 src/attr_replace_test.c | 30 ++++++++++++++++++++++++++----
 tests/generic/020       | 33 +++++++++++++++++++++++++--------
 tests/generic/486       | 11 ++++++++++-
 3 files changed, 61 insertions(+), 13 deletions(-)