summaryrefslogtreecommitdiffstats
path: root/include/linux/exportfs.h
diff options
context:
space:
mode:
authorDmitry Eremin <dmitry.eremin@intel.com>2016-02-14 19:13:52 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-25 22:12:26 -0800
commitcb77659272af51e80099c93b0e65abbf43bdaad5 (patch)
tree7da1580d4421befa877edd2150d7295d78abb7f1 /include/linux/exportfs.h
parent020ecc6f3229d0413e596a941b52263285c601f6 (diff)
downloadlinux-cb77659272af51e80099c93b0e65abbf43bdaad5.tar.gz
linux-cb77659272af51e80099c93b0e65abbf43bdaad5.tar.bz2
linux-cb77659272af51e80099c93b0e65abbf43bdaad5.zip
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 <fan.yong@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Reviewed-by: Jian Yu <jian.yu@intel.com> Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Acked-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/exportfs.h')
-rw-r--r--include/linux/exportfs.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -97,6 +97,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.
*/
FILEID_INVALID = 0xff,