On Tue, Jan 10, 2023 at 2:55 PM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote: > Use of external quota files is now deprecated for ext4 in favor of > native quota support, which can be enabled by passing -O quota to > mkfs.ext4 when creating the filesystem. > > To accommodate to that, modify the [fs_]filesystem tests such that the > native quota support is used on kernels that support it (3.6+ according > to kernel's git history). > > The EXT4 native quota support is similar to the XFS one in that it > doesn't require calling quotacheck(8) and the quota support is turned on > implicitly when the filesystem is mounted. However, contrary to XFS it > doesn't use special quota commands. This means that a new helper program > is needed to test the quota operations (neither quotas_test nor > xfs_quotas_test can be reused). > > Fixes issue #83. > > Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> > --- > tests/filesystem/.gitignore | 1 + > tests/filesystem/Filesystem.pm | 4 +- > tests/filesystem/Makefile | 2 +- > tests/filesystem/native_quotas_test.c | 94 +++++++++++++++++++++++++++ > tests/filesystem/test | 86 ++++++++++++++++-------- > tests/fs_filesystem/test | 88 +++++++++++++++++-------- > 6 files changed, 217 insertions(+), 58 deletions(-) > create mode 100644 tests/filesystem/native_quotas_test.c Applied: https://github.com/SELinuxProject/selinux-testsuite/commit/bbab270f66c3fc33b4fdc7cec8beb0003afbb4ee -- Ondrej Mosnacek Senior Software Engineer, Linux Security - SELinux kernel Red Hat, Inc.