[PATCH v4 0/3] Restore the kernel v5.13 text attribute write behavior
From: Bart Van Assche
Date: Thu Aug 05 2021 - 00:37:20 EST
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