Skip to content

fstests: btrfs: add test case to validate sysfs input arguments

Anand Jain fstests linux-btrfs 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 7 repliesIn review
  2. v56 patches 6 repliesSuperseded
  3. v45 patches 8 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches2 repliesSuperseded
v25 patches3 repliesSuperseded
v13 patches4 repliesSuperseded

Changes in v6 from the cover letter

- Add missing if statement for the test in _has_fs_sysfs_attr_policy().
- Add a comment to _verify_sysfs_syntax().
- Set seqres early in check::run_section().
- Add _require_test to btrfs/334 and btrfs/329.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fstests: common/rc: set_fs_sysfs_attr: redirect errors to stdoutcommon/rc+2 -10 replies
2/6fstests: check: fix unset seqres in run_section()check+1 -14 replies
3/6fstests: filter: helper for sysfs error filteringcommon/filter+9 -00 replies
4/6fstests: common/sysfs: add new file sysfs and helperscommon/sysfs+145 -01 reply
5/6fstests: btrfs: testcase for sysfs policy syntax verificationtests/btrfs/329 tests/btrfs/329.out+40 -01 reply
6/6fstests: btrfs: testcase for sysfs chunk_size attribute validationtests/btrfs/334 tests/btrfs/334.out+35 -01 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchZorro Lang
1/6R-b
2/6
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/6] fstests: btrfs: add test case to validate sysfs input arguments

v6:
- Add missing if statement for the test in _has_fs_sysfs_attr_policy().
- Add a comment to _verify_sysfs_syntax().
- Set seqres early in check::run_section().
- Add _require_test to btrfs/334 and btrfs/329.

v5:
https://lore.kernel.org/fstests/[email protected]/

v4:
https://lore.kernel.org/fstests/[email protected]/

v3:
https://lore.kernel.org/fstests/[email protected]/

v2:
https://lore.kernel.org/fstests/[email protected]/

v1:
https://lwn.net/ml/all/[email protected]/

Anand Jain (6):
fstests: common/rc: set_fs_sysfs_attr: redirect errors to stdout
fstests: common/rc: fix unset seqres in _set_fs_sysfs_attr
fstests: filter: helper for sysfs error filtering
fstests: common/sysfs: add new file sysfs and helpers
fstests: btrfs: testcase for sysfs policy syntax verification
fstests: btrfs: testcase for sysfs chunk_size attribute validation

 check               |   2 +-
 common/filter       |   9 +++
 common/rc           |   3 +-
 common/sysfs        | 145 ++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/329     |  21 +++++++
 tests/btrfs/329.out |  19 ++++++
 tests/btrfs/334     |  21 +++++++
 tests/btrfs/334.out |  14 +++++
 8 files changed, 232 insertions(+), 2 deletions(-)
 create mode 100644 common/sysfs
 create mode 100755 tests/btrfs/329
 create mode 100644 tests/btrfs/329.out
 create mode 100755 tests/btrfs/334
 create mode 100644 tests/btrfs/334.out
Signature · 1 line
2.47.0