Skip to content

Improve the configfs read and write iterators further

Bart Van Assche linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4configfs: Rework the overflow check in fill_write_buffer()fs/configfs/file.c+3 -40 replies
2/4configfs: Fix writing at a non-zero offsetfs/configfs/file.c+6 -410 replies
3/4kunit: Add support for suite initialization and cleanupinclude/kunit/test.h lib/kunit/test.c+18 -02 replies
4/4configfs: Add unit testsfs/configfs/Kconfig fs/configfs/Makefile fs/configfs/configfs-test.c+385 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchBrendan Higgins
1/4
2/4
3/4R-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Improve the configfs read and write iterators further

Hi Christoph,

This patch series addresses Linus' feedback on my most recent configfs patch, adds unit tests for configfs and also includes one functional change that I came up with while writing these unit tests. I will leave it to you to decide whether to submit these patches for inclusion in kernel v5.14 or v5.15.

Thanks,

Bart.

Bart Van Assche (4):
configfs: Rework the overflow check in fill_write_buffer()
configfs: Fix writing at a non-zero offset
kunit: Add support for suite initialization and cleanup
configfs: Add unit tests

 fs/configfs/Kconfig         |   8 +
 fs/configfs/Makefile        |   2 +
 fs/configfs/configfs-test.c | 369 ++++++++++++++++++++++++++++++++++++
 fs/configfs/file.c          |  17 +-
 include/kunit/test.h        |   4 +
 lib/kunit/test.c            |  14 ++
 6 files changed, 406 insertions(+), 8 deletions(-)
 create mode 100644 fs/configfs/configfs-test.c