[LTP] [PATCH 2/3] refluxfs: Check kernel reflink support before mount
Martin Doucha <[email protected]>
| Newsgroups | it.linux.lists.ltp |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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 -- Mailing list info: https://lists.linux.it/listinfo/ltp