From cb77659272af51e80099c93b0e65abbf43bdaad5 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Sun, 14 Feb 2016 19:13:52 -0500 Subject: staging/lustre: proper support of NFS anonymous dentries NFS can ask to encode dentries that are not connected to the root. The fix check for parent is NULL and encode a file handle accordingly. Reviewed-on: http://review.whamcloud.com/8347 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4231 Reviewed-by: Fan Yong Reviewed-by: James Simmons Reviewed-by: Jian Yu Signed-off-by: Dmitry Eremin Signed-off-by: Oleg Drokin Acked-by: Jeff Layton Signed-off-by: Greg Kroah-Hartman --- include/linux/exportfs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux/exportfs.h') diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h index fa05e04c5531..d8414502edb4 100644 --- a/include/linux/exportfs.h +++ b/include/linux/exportfs.h @@ -96,6 +96,12 @@ enum fid_type { */ FILEID_FAT_WITH_PARENT = 0x72, + /* + * 128 bit child FID (struct lu_fid) + * 128 bit parent FID (struct lu_fid) + */ + FILEID_LUSTRE = 0x97, + /* * Filesystems must not use 0xff file ID. */ -- cgit v1.2.1