diff options
Diffstat (limited to 'include/linux/nfs4.h')
-rw-r--r-- | include/linux/nfs4.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index 722509482e1a..e1692c96cbc8 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
@@ -50,12 +50,27 @@ struct nfs4_label { | |||
50 | 50 | ||
51 | typedef struct { char data[NFS4_VERIFIER_SIZE]; } nfs4_verifier; | 51 | typedef struct { char data[NFS4_VERIFIER_SIZE]; } nfs4_verifier; |
52 | 52 | ||
53 | struct nfs_stateid4 { | 53 | struct nfs4_stateid_struct { |
54 | __be32 seqid; | 54 | union { |
55 | char other[NFS4_STATEID_OTHER_SIZE]; | 55 | char data[NFS4_STATEID_SIZE]; |
56 | } __attribute__ ((packed)); | 56 | struct { |
57 | __be32 seqid; | ||
58 | char other[NFS4_STATEID_OTHER_SIZE]; | ||
59 | } __attribute__ ((packed)); | ||
60 | }; | ||
61 | |||
62 | enum { | ||
63 | NFS4_INVALID_STATEID_TYPE = 0, | ||
64 | NFS4_SPECIAL_STATEID_TYPE, | ||
65 | NFS4_OPEN_STATEID_TYPE, | ||
66 | NFS4_LOCK_STATEID_TYPE, | ||
67 | NFS4_DELEGATION_STATEID_TYPE, | ||
68 | NFS4_LAYOUT_STATEID_TYPE, | ||
69 | NFS4_PNFS_DS_STATEID_TYPE, | ||
70 | } type; | ||
71 | }; | ||
57 | 72 | ||
58 | typedef struct nfs_stateid4 nfs4_stateid; | 73 | typedef struct nfs4_stateid_struct nfs4_stateid; |
59 | 74 | ||
60 | enum nfs_opnum4 { | 75 | enum nfs_opnum4 { |
61 | OP_ACCESS = 3, | 76 | OP_ACCESS = 3, |