diff options
Diffstat (limited to 'include/linux/nfs4.h')
-rw-r--r-- | include/linux/nfs4.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index a1e3064a8d99..026b0c042c40 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
@@ -110,6 +110,20 @@ enum nfs_opnum4 { | |||
110 | OP_DESTROY_CLIENTID = 57, | 110 | OP_DESTROY_CLIENTID = 57, |
111 | OP_RECLAIM_COMPLETE = 58, | 111 | OP_RECLAIM_COMPLETE = 58, |
112 | 112 | ||
113 | /* nfs42 */ | ||
114 | OP_ALLOCATE = 59, | ||
115 | OP_COPY = 60, | ||
116 | OP_COPY_NOTIFY = 61, | ||
117 | OP_DEALLOCATE = 62, | ||
118 | OP_IO_ADVISE = 63, | ||
119 | OP_LAYOUTERROR = 64, | ||
120 | OP_LAYOUTSTATS = 65, | ||
121 | OP_OFFLOAD_CANCEL = 66, | ||
122 | OP_OFFLOAD_STATUS = 67, | ||
123 | OP_READ_PLUS = 68, | ||
124 | OP_SEEK = 69, | ||
125 | OP_WRITE_SAME = 70, | ||
126 | |||
113 | OP_ILLEGAL = 10044, | 127 | OP_ILLEGAL = 10044, |
114 | }; | 128 | }; |
115 | 129 | ||
@@ -117,10 +131,10 @@ enum nfs_opnum4 { | |||
117 | Needs to be updated if more operations are defined in future.*/ | 131 | Needs to be updated if more operations are defined in future.*/ |
118 | 132 | ||
119 | #define FIRST_NFS4_OP OP_ACCESS | 133 | #define FIRST_NFS4_OP OP_ACCESS |
120 | #define LAST_NFS4_OP OP_RECLAIM_COMPLETE | 134 | #define LAST_NFS4_OP OP_WRITE_SAME |
121 | #define LAST_NFS40_OP OP_RELEASE_LOCKOWNER | 135 | #define LAST_NFS40_OP OP_RELEASE_LOCKOWNER |
122 | #define LAST_NFS41_OP OP_RECLAIM_COMPLETE | 136 | #define LAST_NFS41_OP OP_RECLAIM_COMPLETE |
123 | #define LAST_NFS42_OP OP_RECLAIM_COMPLETE | 137 | #define LAST_NFS42_OP OP_WRITE_SAME |
124 | 138 | ||
125 | enum nfsstat4 { | 139 | enum nfsstat4 { |
126 | NFS4_OK = 0, | 140 | NFS4_OK = 0, |
@@ -235,10 +249,11 @@ enum nfsstat4 { | |||
235 | /* nfs42 */ | 249 | /* nfs42 */ |
236 | NFS4ERR_PARTNER_NOTSUPP = 10088, | 250 | NFS4ERR_PARTNER_NOTSUPP = 10088, |
237 | NFS4ERR_PARTNER_NO_AUTH = 10089, | 251 | NFS4ERR_PARTNER_NO_AUTH = 10089, |
238 | NFS4ERR_METADATA_NOTSUPP = 10090, | 252 | NFS4ERR_UNION_NOTSUPP = 10090, |
239 | NFS4ERR_OFFLOAD_DENIED = 10091, | 253 | NFS4ERR_OFFLOAD_DENIED = 10091, |
240 | NFS4ERR_WRONG_LFS = 10092, | 254 | NFS4ERR_WRONG_LFS = 10092, |
241 | NFS4ERR_BADLABEL = 10093, | 255 | NFS4ERR_BADLABEL = 10093, |
256 | NFS4ERR_OFFLOAD_NO_REQS = 10094, | ||
242 | }; | 257 | }; |
243 | 258 | ||
244 | static inline bool seqid_mutating_err(u32 err) | 259 | static inline bool seqid_mutating_err(u32 err) |
@@ -535,4 +550,9 @@ struct nfs4_deviceid { | |||
535 | char data[NFS4_DEVICEID4_SIZE]; | 550 | char data[NFS4_DEVICEID4_SIZE]; |
536 | }; | 551 | }; |
537 | 552 | ||
553 | enum data_content4 { | ||
554 | NFS4_CONTENT_DATA = 0, | ||
555 | NFS4_CONTENT_HOLE = 1, | ||
556 | }; | ||
557 | |||
538 | #endif | 558 | #endif |