From 0afb586a7e7790b2ee3dbc4f4b4742c6f9305b48 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Tue, 3 Sep 2024 10:18:09 +0800 Subject: [PATCH] generic/362: skip test on NFS mount xfstests complains: FSTYP -- nfs PLATFORM -- Linux/x86_64 r95b-1 5.14.0-496.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 12 18:50:44 EDT 2024 MKFS_OPTIONS -- 192.168.122.42:/nfsscratch MOUNT_OPTIONS -- -o vers=4.2 192.168.122.42:/nfsscratch /mnt/scratch generic/362 QA output created by 362 Failed to open/create file: Invalid argument Silence is golden - output mismatch (see /var/lib/xfstests/results//generic/362.out.bad) --- tests/generic/362.out 2024-09-02 14:27:09.162636093 -0400 +++ /var/lib/xfstests/results//generic/362.out.bad 2024-09-02 14:33:36.167636093 -0400 @@ -1,2 +1,3 @@ QA output created by 362 +Failed to open/create file: Invalid argument Silence is golden ... (Run 'diff -u /var/lib/xfstests/tests/generic/362.out /var/lib/xfstests/results//generic/362.out.bad' to see the entire diff) Ran: generic/362 Failures: generic/362 Failed 1 of 1 tests NFS commit 9597c13b forbade open with O_APPEND|O_DIRECT strace show that dio-append-buf-fault use (O_APPEND|O_DIRECT): mount -o vers=4.2 192.168.122.42:/nfstest /mnt/scratch/ strace ./src/dio-append-buf-fault /mnt/scratch/111 .. openat(AT_FDCWD, "/mnt/scratch/111", O_WRONLY|O_CREAT|O_TRUNC|O_APPEND|O_DIRECT, 0666) = 3 So skip generic/362 on NFS Signed-off-by: Chen Hanxiao Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- tests/generic/362 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/generic/362 b/tests/generic/362 index f5b4ed06..2396ec7d 100755 --- a/tests/generic/362 +++ b/tests/generic/362 @@ -10,6 +10,8 @@ . ./common/preamble _begin_fstest auto quick +# NFS forbade open with O_APPEND|O_DIRECT +_supported_fs ^nfs _require_test _require_odirect _require_test_program dio-append-buf-fault -- 2.39.5