summaryrefslogtreecommitdiff
path: root/include/linux/nfs4.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2024-03-23 09:25:54 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-05-06 09:07:17 -0400
commit33a1e6ea73e5f1defe6706f006c0930a82ebdaaa (patch)
tree3615a0a2118a4bc2193e12a5a33254daa59ee951 /include/linux/nfs4.h
parent38f080f3cd19fbd87eb7f6c4f6c236c1c9df6fba (diff)
downloadlwn-33a1e6ea73e5f1defe6706f006c0930a82ebdaaa.tar.gz
lwn-33a1e6ea73e5f1defe6706f006c0930a82ebdaaa.zip
nfsd: trivial GET_DIR_DELEGATION support
This adds basic infrastructure for handing GET_DIR_DELEGATION calls from clients, including the decoders and encoders. For now, it always just returns NFS4_OK + GDD4_UNAVAIL. Eventually clients may start sending this operation, and it's better if we can return GDD4_UNAVAIL instead of having to abort the whole compound. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/nfs4.h')
-rw-r--r--include/linux/nfs4.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index ef8d2d618d5b..0d896ce296ce 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -701,6 +701,12 @@ enum state_protect_how4 {
SP4_SSV = 2
};
+/* GET_DIR_DELEGATION non-fatal status codes */
+enum gddrnf4_status {
+ GDD4_OK = 0,
+ GDD4_UNAVAIL = 1
+};
+
enum pnfs_layouttype {
LAYOUT_NFSV4_1_FILES = 1,
LAYOUT_OSD2_OBJECTS = 2,