Skip to content

Initial CephFS tests

Luis Henriques fstests 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 2 repliesSuperseded
  3. v1 RFC2 patches 14 repliesSuperseded

Changes in v3 from the cover letter

- Use 'local' variables in functions
- Use $seqres.full for logging output (and rm -f $seqres.full before test)
- Use _getfattr wrapper and filter TEST_DIR

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ceph: test basic ceph.quota.max_files quotatests/ceph/001 tests/ceph/001.out tests/ceph/Makefile +1 more+118 -00 replies
2/2ceph: test basic ceph.quota.max_bytes quotatests/ceph/002 tests/ceph/002.out tests/ceph/group+192 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Initial CephFS tests

This is the first attempt to (finally!) add CephFS specific tests to fstests. Hopefully, more will follow once an initial set is accepted -- I do have a few more that could easily be added, and I'm sure that in the future more CephFS-specific tests can continue to be developed. This test suite has already proved to be quite useful in finding bugs in this filesystem; adding specific tests for it is just the next logic step.

For now, just two simple tests to do some basic checks on quotas features.

Cheers,
--
Luis

Changes since v2:

- Use 'local' variables in functions
- Use $seqres.full for logging output (and rm -f $seqres.full before test)
- Use _getfattr wrapper and filter TEST_DIR

Changes since v1 (RFC):

Both tests refactored:
- use 'workdir' instead of 'testdir' and initialize it to $seq
- don't remove $workdir on cleanup()
- use output to validate test results instead of _fail

Luis Henriques (2):
ceph: test basic ceph.quota.max_files quota
ceph: test basic ceph.quota.max_bytes quota

 tests/ceph/001      |  88 ++++++++++++++++++++++++++++++
 tests/ceph/001.out  |   9 ++++
 tests/ceph/002      | 127 ++++++++++++++++++++++++++++++++++++++++++++
 tests/ceph/002.out  |  64 ++++++++++++++++++++++
 tests/ceph/Makefile |  20 +++++++
 tests/ceph/group    |   2 +
 6 files changed, 310 insertions(+)
 create mode 100755 tests/ceph/001
 create mode 100644 tests/ceph/001.out
 create mode 100755 tests/ceph/002
 create mode 100644 tests/ceph/002.out
 create mode 100644 tests/ceph/Makefile
 create mode 100644 tests/ceph/group