[PATCH 0/4] fstests: generic test for NFS handles

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

 



Eryu,

I am working on NFS export support for overlayfs [1].
Before testing with NFS client I wanted to test the file handle API,
but apparently xfstests have only tests for the XFS specific ioctl.

So I converted the stale_handle xfs/238 test to a generic test and
added some more test cases to it. 

On the bright side, if I disable the drop_caches in the test, the
test already passes on overlayfs in my test branch, but I still have
some work to do for full NFS export support.

When I am done with that, I will add some more overlay specific
exportfs tests (e.g. export handle from lower and decode after copy up).

In the mean while, running this new test on overlayfs yields:

generic/426 3s ... [not run] overlay does not support NFS export

Tested this on ext4, xfs, btrfs, tmpfs.

Thanks,
Amir.

[1] https://github.com/amir73il/linux/commits/ovl-nfs-export

Amir Goldstein (4):
  src/open_by_handle: helper to test open_by_handle_at() syscall
  src/open_by_handle: flexible usage options
  fstests: add helper _require_exportfs
  fstests: add generic test for file handles

 common/rc             |   9 +++
 src/Makefile          |   2 +-
 src/open_by_handle.c  | 212 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/426     |  73 +++++++++++++++++
 tests/generic/426.out |   2 +
 tests/generic/group   |   1 +
 6 files changed, 298 insertions(+), 1 deletion(-)
 create mode 100644 src/open_by_handle.c
 create mode 100755 tests/generic/426
 create mode 100644 tests/generic/426.out

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux