syscalls/*sync: Skip test on tmpfs
PATCH 1/2 syscalls/*sync: Skip test on tmpfs
As sync() is no-op for tmpfs no bytes are transfered.
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/syscalls/fdatasync/fdatasync03.c | 4 ++++ testcases/kernel/syscalls/fsync/fsync04.c | 4 ++++ testcases/kernel/syscalls/msync/msync04.c | 4 ++++ testcases/kernel/syscalls/sync/sync01.c | 4 ++++ .../kernel/syscalls/sync_file_range/sync_file_range02.c | 6 +++++- testcases/kernel/syscalls/syncfs/syncfs01.c | 4 ++++ 6 files changed, 25 insertions(+), 1 deletion(-)
testcases/kernel/syscalls/fdatasync/fdatasync03.c +4 -0
@@ -58,4 +58,8 @@ static struct tst_test test = { .all_filesystems = 1, .mntpoint = MNTPOINT, .test_all = verify_fdatasync, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + } };
testcases/kernel/syscalls/fsync/fsync04.c +4 -0
@@ -58,4 +58,8 @@ static struct tst_test test = { .all_filesystems = 1, .mntpoint = MNTPOINT, .test_all = verify_fsync, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + } };
testcases/kernel/syscalls/msync/msync04.c +4 -0
@@ -98,5 +98,9 @@ static struct tst_test test = { .mntpoint = "msync04", .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + }, .min_kver = "2.6.25", };
testcases/kernel/syscalls/sync/sync01.c +4 -0
@@ -53,6 +53,10 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + }, .mntpoint = MNTPOINT, .test_all = verify_sync, };
testcases/kernel/syscalls/sync_file_range/sync_file_range02.c +5 -1
@@ -121,7 +121,11 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, - .skip_filesystems = (const char *const []){"fuse", NULL}, + .skip_filesystems = (const char *const []){ +"fuse" , +"tmpfs" , +NULL + }, .mntpoint = MNTPOINT, .setup = setup, .test = run,
testcases/kernel/syscalls/syncfs/syncfs01.c +4 -0
@@ -62,6 +62,10 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + }, .mntpoint = MNTPOINT, .setup = setup, .test_all = verify_syncfs,
Signature · 1 line
2.26.3
PATCH 2/2 syscalls/p{read, write}v03: Skip test on tmpfs
Since open with O_DIRECT returns EINVAL on tmpfs.
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/syscalls/preadv/preadv03.c | 4 ++++ testcases/kernel/syscalls/pwritev/pwritev03.c | 4 ++++ 2 files changed, 8 insertions(+)
testcases/kernel/syscalls/preadv/preadv03.c +4 -0
@@ -135,4 +135,8 @@ static struct tst_test test = { .mntpoint = MNTPOINT, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { +"tmpfs" , +NULL + } };
testcases/kernel/syscalls/pwritev/pwritev03.c +4 -0
@@ -134,4 +134,8 @@ static struct tst_test test = { .mntpoint = MNTPOINT, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]){ +"tmpfs" , +NULL + } };
Signature · 1 line
2.26.3