Skip to content

Commit

Permalink
Setup minimal kernel for ioctl_ficlone(range) test
Browse files Browse the repository at this point in the history
Some linux kernels don't support copy-on-write feature for the
filesystems we are going to use during ioctl_ficlone and
ioctl_ficlonerange tests. For this reason, fix the minimal kernel
version required in order to skip test when it's needed.

Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Andrea Cervesato <[email protected]>
  • Loading branch information
acerv committed Oct 11, 2024
1 parent 62b11b1 commit 60ad8c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ static struct tst_test test = {
.mount_device = 1,
.mntpoint = MNTPOINT,
.filesystems = (struct tst_fs []) {
{.type = "bcachefs"},
{.type = "btrfs"},
{.type = "bcachefs"},
{
.type = "xfs",
.min_kver = "4.16",
.mkfs_ver = "mkfs.xfs >= 1.5.0",
.mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL},
},
{}
Expand Down
4 changes: 3 additions & 1 deletion testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ static struct tst_test test = {
.mount_device = 1,
.mntpoint = MNTPOINT,
.filesystems = (struct tst_fs []) {
{.type = "bcachefs"},
{.type = "btrfs"},
{.type = "bcachefs"},
{
.type = "xfs",
.min_kver = "4.16",
.mkfs_ver = "mkfs.xfs >= 1.5.0",
.mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL},
},
{}
Expand Down
4 changes: 3 additions & 1 deletion testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ static struct tst_test test = {
.mount_device = 1,
.mntpoint = MNTPOINT,
.filesystems = (struct tst_fs []) {
{.type = "bcachefs"},
{.type = "btrfs"},
{.type = "bcachefs"},
{
.type = "xfs",
.min_kver = "4.16",
.mkfs_ver = "mkfs.xfs >= 1.5.0",
.mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL},
},
{}
Expand Down
4 changes: 3 additions & 1 deletion testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ static struct tst_test test = {
.mount_device = 1,
.mntpoint = MNTPOINT,
.filesystems = (struct tst_fs []) {
{.type = "bcachefs"},
{.type = "btrfs"},
{.type = "bcachefs"},
{
.type = "xfs",
.min_kver = "4.16",
.mkfs_ver = "mkfs.xfs >= 1.5.0",
.mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL},
},
{}
Expand Down

0 comments on commit 60ad8c2

Please sign in to comment.