[PATCH v4 0/3] Restore the kernel v5.13 text attribute write behavior

Bart Van Assche
2021-08-05T04:35:17Z

Hi Christoph,

This patch series restores the v5.13 text attribute write behavior and also
adds unit tests for configfs. Please consider these patches for inclusion in
the Linux kernel.

Thanks,

Bart.

Changes compared to v3:
- Changed config CONFIGFS_KUNIT_TEST from tristate into bool. The unit test
calls do_mount(). do_mount() has not been exported and hence is not available
to kernel modules. This was detected by the kernel build robot.

Changes compared to v2:
- Modified description of patch 2/3.

Changes compared to v1:
- Instead of making the text attribute write behavior POSIX compliant, restore
the v5.13 behavior.
- Added more unit tests.

Bart Van Assche (3):
configfs: Restore the kernel v5.13 text attribute write behavior
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 | 429 ++++++++++++++++++++++++++++++++++++
fs/configfs/file.c | 18 +-
include/kunit/test.h | 4 +
lib/kunit/test.c | 14 ++
6 files changed, 463 insertions(+), 12 deletions(-)
create mode 100644 fs/configfs/configfs-test.c