[LTP] [PATCH] statx04: Re-add BTRFS version check
Richard Palethorpe
rpalethorpe@suse.com
Thu Nov 18 12:29:00 CET 2021
Removing this was a step too far. This causes regressions on products
where there is now no chance of a backport. This is different from the
other version checks which are for much newer kernels. Also there
could be differences in the difficulty of a backport.
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Cc: Yang Xu <xuyang2018.jy@fujitsu.com>
---
Note that I am still very much against new version checks if there is
a high chance of backports. We should leave long established checks
alone however.
testcases/kernel/syscalls/statx/statx04.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/kernel/syscalls/statx/statx04.c b/testcases/kernel/syscalls/statx/statx04.c
index 180c61bf9..b5ca0586a 100644
--- a/testcases/kernel/syscalls/statx/statx04.c
+++ b/testcases/kernel/syscalls/statx/statx04.c
@@ -182,6 +182,9 @@ static void caid_flags_setup(void)
static void setup(void)
{
+ if (!strcmp(tst_device->fs_type, "btrfs") && tst_kvercmp(4, 13, 0) < 0)
+ tst_brk(TCONF, "Btrfs statx() supported since 4.13");
+
SAFE_MKDIR(TESTDIR_FLAGGED, 0777);
SAFE_MKDIR(TESTDIR_UNFLAGGED, 0777);
--
2.33.1
More information about the ltp
mailing list