summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs4.h
diff options
context:
space:
mode:
authorSteve Dickson2013-05-22 18:50:40 +0200
committerTrond Myklebust2013-06-08 22:20:14 +0200
commite058f70b8070608fedfd3e39c2ead935beecb552 (patch)
tree7edaeed13f64d0218d8541321e2a6c780ee59986 /include/linux/nfs4.h
parentNFSv4: Add label recommended attribute and NFSv4 flags (diff)
downloadkernel-qcow2-linux-e058f70b8070608fedfd3e39c2ead935beecb552.tar.gz
kernel-qcow2-linux-e058f70b8070608fedfd3e39c2ead935beecb552.tar.xz
kernel-qcow2-linux-e058f70b8070608fedfd3e39c2ead935beecb552.zip
NFSv4: Introduce new label structure
In order to mimic the way that NFSv4 ACLs are implemented we have created a structure to be used to pass label data up and down the call chain. This patch adds the new structure and new members to the required NFSv4 call structures. Signed-off-by: Matthew N. Dodd <Matthew.Dodd@sparta.com> Signed-off-by: Miguel Rodel Felipe <Rodel_FM@dsi.a-star.edu.sg> Signed-off-by: Phua Eu Gene <PHUA_Eu_Gene@dsi.a-star.edu.sg> Signed-off-by: Khin Mi Mi Aung <Mi_Mi_AUNG@dsi.a-star.edu.sg> Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs4.h')
-rw-r--r--include/linux/nfs4.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index 42046004a2f6..e36dee52f224 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -32,6 +32,15 @@ struct nfs4_acl {
struct nfs4_ace aces[0];
};
+#define NFS4_MAXLABELLEN 2048
+
+struct nfs4_label {
+ uint32_t lfs;
+ uint32_t pi;
+ u32 len;
+ char *label;
+};
+
typedef struct { char data[NFS4_VERIFIER_SIZE]; } nfs4_verifier;
struct nfs_stateid4 {