[PATCH] common/nfs: add FSX_AVOID when testing on NFS

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



copy_file_range on NFSv4.2 requires that src offset and dest offset
are aligned with server blocksize. So does copy count, except that
after this copy, we'll reach the EOF. See Linux commit 811b7b85.

ltp/fsx.c tests copy_file_range on random offset with random size
by default. This makes these tests get EINVAL on NFS.

Signed-off-by: Xiong Murphy Zhou <xzhou@xxxxxxxxxx>
---
 common/nfs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/common/nfs b/common/nfs
index a03eaf48..5600147d 100644
--- a/common/nfs
+++ b/common/nfs
@@ -33,3 +33,12 @@ _require_scratch_nfs_version()
 	fi
 	_scratch_unmount
 }
+
+# copy_file_range on NFSv4.2 requires src offset and dest offset
+# are aligned with server blocksize. So does copy count, except that
+# after this copy, we'll reach the EOF. See Linux commit 811b7b85
+# for details.
+# ltp/fsx.c tests copy_file_range on random offset with random size
+# by default. This makes these tests get EINVAL on NFS.
+# Now add FSX_AVOID to make fsx tests on NFS rational.
+FSX_AVOID="-r 4096 -w 4096 -O -o 4096 -Z $FSX_AVOID"
-- 
2.17.0.252.gfe0a9ea




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux