Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/quotactl04: add mkfs.ext4 package version check
The project quota feature was added in e2fsprogs 1.43 [1]: E2fsprogs 1.43 (May 17, 2016) Add support for the ext4 metadata checksum, checksum seed, inline data, encryption, project quota, and read-only features. The test should be skipped when running with older package, otherwise it will fail with: Invalid filesystem option set: quota,project Use popen and fscanf to get mkfs.ext4 -V output for version comparison. This version checking by adding digits together does not work with alphabets in the number like rc1, but in that case the test will still be tested. It will now be skipped with (tested with Ubuntu Xenial + 4.15 kernel): quotactl04.c:118: TCONF: Test needs mkfs.ext4 >= 1.43 for quota,project option, test skipped [1] http://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.42.13 Signed-off-by: Po-Hsu Lin <[email protected]> Reviewed-by: Yang Xu <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information