[LTP] [PATCH 2/3] refluxfs: Check kernel reflink support before mount
Martin Doucha
mdoucha@suse.cz
Fri Aug 14 14:49:37 CEST 2026
On some systems, mkfs.xfs can format XFS partition with reflink support
but the kernel then cannot mount it. Check for kernel reflink support
before mount.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
Tested on kernel v4.12 without reflink support and v6.4 with reflink support.
testcases/cve/refluxfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/cve/refluxfs.c b/testcases/cve/refluxfs.c
index e41f35c53..bdf5d32c9 100644
--- a/testcases/cve/refluxfs.c
+++ b/testcases/cve/refluxfs.c
@@ -210,6 +210,7 @@ static struct tst_test test = {
.filesystems = (struct tst_fs []) {
{
.type = "xfs",
+ .mount_check_support = 1,
.min_kver = "4.11",
.mkfs_ver = "mkfs.xfs >= 1.5.0",
.mkfs_opts = (const char *const []) {
--
2.54.0
More information about the ltp
mailing list