These patch add NFS support to ecryptfs. We have two approaches to implemnt it. The first one is to implement encode_fh(), fh_to_dentry() and get_parent() just like most of the other filesystems do. The second one is the implementation of overlayfs. These patches implement the second one. I also add subtree_check support in the third patch. I ran the xfstests[1] on both exported ecryptfs and ext4 with rw,relatime,vers=4.1 mount options. The output/failure of ecryptfs is the same as ext4 except some limitations of ecryptfs: generic/014 and generic/129: I stopped them because it took too much time to test file truncate. generic/453: Filename length exceeds the limit of ecryptfs. [1] http://linux-nfs.org/wiki/index.php/Xfstests jaycelin (4): ecryptfs: add ecryptfs_superblock_to_lower_mnt ecryptfs: add export_operations to ecryptfs ecryptfs: add export subtree_check support ecryptfs: wire up nfs export operations fs/ecryptfs/Makefile | 2 +- fs/ecryptfs/ecryptfs_kernel.h | 7 + fs/ecryptfs/export.c | 487 ++++++++++++++++++++++++++++++++++ fs/ecryptfs/main.c | 1 + 4 files changed, 496 insertions(+), 1 deletion(-) create mode 100644 fs/ecryptfs/export.c -- 2.17.1