Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/linux/nfs4.h |
| 3 | * |
| 4 | * NFSv4 protocol definitions. |
| 5 | * |
| 6 | * Copyright (c) 2002 The Regents of the University of Michigan. |
| 7 | * All rights reserved. |
| 8 | * |
| 9 | * Kendrick Smith <kmsmith@umich.edu> |
| 10 | * Andy Adamson <andros@umich.edu> |
| 11 | */ |
| 12 | |
| 13 | #ifndef _LINUX_NFS4_H |
| 14 | #define _LINUX_NFS4_H |
| 15 | |
| 16 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Jeff Layton | aa53ed5 | 2007-06-05 14:49:03 -0400 | [diff] [blame] | 18 | #define NFS4_BITMAP_SIZE 2 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #define NFS4_VERIFIER_SIZE 8 |
Alexandros Batsakis | 9449925 | 2010-10-20 00:17:56 -0400 | [diff] [blame] | 20 | #define NFS4_STATEID_SEQID_SIZE 4 |
| 21 | #define NFS4_STATEID_OTHER_SIZE 12 |
| 22 | #define NFS4_STATEID_SIZE (NFS4_STATEID_SEQID_SIZE + NFS4_STATEID_OTHER_SIZE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #define NFS4_FHSIZE 128 |
| 24 | #define NFS4_MAXPATHLEN PATH_MAX |
| 25 | #define NFS4_MAXNAMLEN NAME_MAX |
Benny Halevy | 99fe60d | 2009-04-01 09:22:29 -0400 | [diff] [blame] | 26 | #define NFS4_OPAQUE_LIMIT 1024 |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 27 | #define NFS4_MAX_SESSIONID_LEN 16 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | #define NFS4_ACCESS_READ 0x0001 |
| 30 | #define NFS4_ACCESS_LOOKUP 0x0002 |
| 31 | #define NFS4_ACCESS_MODIFY 0x0004 |
| 32 | #define NFS4_ACCESS_EXTEND 0x0008 |
| 33 | #define NFS4_ACCESS_DELETE 0x0010 |
| 34 | #define NFS4_ACCESS_EXECUTE 0x0020 |
| 35 | |
NeilBrown | 4964000 | 2005-06-23 22:02:58 -0700 | [diff] [blame] | 36 | #define NFS4_FH_PERSISTENT 0x0000 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | #define NFS4_FH_NOEXPIRE_WITH_OPEN 0x0001 |
| 38 | #define NFS4_FH_VOLATILE_ANY 0x0002 |
| 39 | #define NFS4_FH_VOL_MIGRATION 0x0004 |
| 40 | #define NFS4_FH_VOL_RENAME 0x0008 |
| 41 | |
| 42 | #define NFS4_OPEN_RESULT_CONFIRM 0x0002 |
| 43 | #define NFS4_OPEN_RESULT_LOCKTYPE_POSIX 0x0004 |
| 44 | |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 45 | #define NFS4_SHARE_ACCESS_MASK 0x000F |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | #define NFS4_SHARE_ACCESS_READ 0x0001 |
| 47 | #define NFS4_SHARE_ACCESS_WRITE 0x0002 |
| 48 | #define NFS4_SHARE_ACCESS_BOTH 0x0003 |
| 49 | #define NFS4_SHARE_DENY_READ 0x0001 |
| 50 | #define NFS4_SHARE_DENY_WRITE 0x0002 |
| 51 | #define NFS4_SHARE_DENY_BOTH 0x0003 |
| 52 | |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 53 | /* nfs41 */ |
| 54 | #define NFS4_SHARE_WANT_MASK 0xFF00 |
| 55 | #define NFS4_SHARE_WANT_NO_PREFERENCE 0x0000 |
| 56 | #define NFS4_SHARE_WANT_READ_DELEG 0x0100 |
| 57 | #define NFS4_SHARE_WANT_WRITE_DELEG 0x0200 |
| 58 | #define NFS4_SHARE_WANT_ANY_DELEG 0x0300 |
| 59 | #define NFS4_SHARE_WANT_NO_DELEG 0x0400 |
| 60 | #define NFS4_SHARE_WANT_CANCEL 0x0500 |
| 61 | |
| 62 | #define NFS4_SHARE_WHEN_MASK 0xF0000 |
| 63 | #define NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL 0x10000 |
| 64 | #define NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED 0x20000 |
| 65 | |
J. Bruce Fields | c766251 | 2010-06-06 18:12:14 -0400 | [diff] [blame] | 66 | #define NFS4_CDFC4_FORE 0x1 |
| 67 | #define NFS4_CDFC4_BACK 0x2 |
J. Bruce Fields | 1d1bc8f | 2010-10-04 23:12:59 -0400 | [diff] [blame] | 68 | #define NFS4_CDFC4_BOTH 0x3 |
| 69 | #define NFS4_CDFC4_FORE_OR_BOTH 0x3 |
| 70 | #define NFS4_CDFC4_BACK_OR_BOTH 0x7 |
J. Bruce Fields | c766251 | 2010-06-06 18:12:14 -0400 | [diff] [blame] | 71 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | #define NFS4_SET_TO_SERVER_TIME 0 |
| 73 | #define NFS4_SET_TO_CLIENT_TIME 1 |
| 74 | |
| 75 | #define NFS4_ACE_ACCESS_ALLOWED_ACE_TYPE 0 |
| 76 | #define NFS4_ACE_ACCESS_DENIED_ACE_TYPE 1 |
| 77 | #define NFS4_ACE_SYSTEM_AUDIT_ACE_TYPE 2 |
| 78 | #define NFS4_ACE_SYSTEM_ALARM_ACE_TYPE 3 |
| 79 | |
| 80 | #define ACL4_SUPPORT_ALLOW_ACL 0x01 |
| 81 | #define ACL4_SUPPORT_DENY_ACL 0x02 |
| 82 | #define ACL4_SUPPORT_AUDIT_ACL 0x04 |
| 83 | #define ACL4_SUPPORT_ALARM_ACL 0x08 |
| 84 | |
| 85 | #define NFS4_ACE_FILE_INHERIT_ACE 0x00000001 |
| 86 | #define NFS4_ACE_DIRECTORY_INHERIT_ACE 0x00000002 |
| 87 | #define NFS4_ACE_NO_PROPAGATE_INHERIT_ACE 0x00000004 |
| 88 | #define NFS4_ACE_INHERIT_ONLY_ACE 0x00000008 |
| 89 | #define NFS4_ACE_SUCCESSFUL_ACCESS_ACE_FLAG 0x00000010 |
| 90 | #define NFS4_ACE_FAILED_ACCESS_ACE_FLAG 0x00000020 |
| 91 | #define NFS4_ACE_IDENTIFIER_GROUP 0x00000040 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 92 | |
| 93 | #define NFS4_ACE_READ_DATA 0x00000001 |
| 94 | #define NFS4_ACE_LIST_DIRECTORY 0x00000001 |
| 95 | #define NFS4_ACE_WRITE_DATA 0x00000002 |
| 96 | #define NFS4_ACE_ADD_FILE 0x00000002 |
| 97 | #define NFS4_ACE_APPEND_DATA 0x00000004 |
| 98 | #define NFS4_ACE_ADD_SUBDIRECTORY 0x00000004 |
| 99 | #define NFS4_ACE_READ_NAMED_ATTRS 0x00000008 |
| 100 | #define NFS4_ACE_WRITE_NAMED_ATTRS 0x00000010 |
| 101 | #define NFS4_ACE_EXECUTE 0x00000020 |
| 102 | #define NFS4_ACE_DELETE_CHILD 0x00000040 |
| 103 | #define NFS4_ACE_READ_ATTRIBUTES 0x00000080 |
| 104 | #define NFS4_ACE_WRITE_ATTRIBUTES 0x00000100 |
| 105 | #define NFS4_ACE_DELETE 0x00010000 |
| 106 | #define NFS4_ACE_READ_ACL 0x00020000 |
| 107 | #define NFS4_ACE_WRITE_ACL 0x00040000 |
| 108 | #define NFS4_ACE_WRITE_OWNER 0x00080000 |
| 109 | #define NFS4_ACE_SYNCHRONIZE 0x00100000 |
| 110 | #define NFS4_ACE_GENERIC_READ 0x00120081 |
| 111 | #define NFS4_ACE_GENERIC_WRITE 0x00160106 |
| 112 | #define NFS4_ACE_GENERIC_EXECUTE 0x001200A0 |
| 113 | #define NFS4_ACE_MASK_ALL 0x001F01FF |
| 114 | |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 115 | #define EXCHGID4_FLAG_SUPP_MOVED_REFER 0x00000001 |
| 116 | #define EXCHGID4_FLAG_SUPP_MOVED_MIGR 0x00000002 |
Andy Adamson | 357f54d | 2010-12-14 10:11:57 -0500 | [diff] [blame] | 117 | #define EXCHGID4_FLAG_BIND_PRINC_STATEID 0x00000100 |
| 118 | |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 119 | #define EXCHGID4_FLAG_USE_NON_PNFS 0x00010000 |
| 120 | #define EXCHGID4_FLAG_USE_PNFS_MDS 0x00020000 |
| 121 | #define EXCHGID4_FLAG_USE_PNFS_DS 0x00040000 |
Andy Adamson | 357f54d | 2010-12-14 10:11:57 -0500 | [diff] [blame] | 122 | #define EXCHGID4_FLAG_MASK_PNFS 0x00070000 |
| 123 | |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 124 | #define EXCHGID4_FLAG_UPD_CONFIRMED_REC_A 0x40000000 |
| 125 | #define EXCHGID4_FLAG_CONFIRMED_R 0x80000000 |
| 126 | /* |
| 127 | * Since the validity of these bits depends on whether |
| 128 | * they're set in the argument or response, have separate |
| 129 | * invalid flag masks for arg (_A) and resp (_R). |
| 130 | */ |
Andy Adamson | 357f54d | 2010-12-14 10:11:57 -0500 | [diff] [blame] | 131 | #define EXCHGID4_FLAG_MASK_A 0x40070103 |
| 132 | #define EXCHGID4_FLAG_MASK_R 0x80070103 |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 133 | |
| 134 | #define SEQ4_STATUS_CB_PATH_DOWN 0x00000001 |
| 135 | #define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING 0x00000002 |
| 136 | #define SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED 0x00000004 |
| 137 | #define SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED 0x00000008 |
| 138 | #define SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED 0x00000010 |
| 139 | #define SEQ4_STATUS_ADMIN_STATE_REVOKED 0x00000020 |
| 140 | #define SEQ4_STATUS_RECALLABLE_STATE_REVOKED 0x00000040 |
| 141 | #define SEQ4_STATUS_LEASE_MOVED 0x00000080 |
| 142 | #define SEQ4_STATUS_RESTART_RECLAIM_NEEDED 0x00000100 |
Alexandros Batsakis | 0629e37 | 2009-12-05 13:46:14 -0500 | [diff] [blame] | 143 | #define SEQ4_STATUS_CB_PATH_DOWN_SESSION 0x00000200 |
| 144 | #define SEQ4_STATUS_BACKCHANNEL_FAULT 0x00000400 |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 145 | |
J. Bruce Fields | 04f4ad1 | 2010-12-16 09:51:13 -0500 | [diff] [blame] | 146 | #define NFS4_SECINFO_STYLE4_CURRENT_FH 0 |
| 147 | #define NFS4_SECINFO_STYLE4_PARENT 1 |
| 148 | |
Benny Halevy | 87df4de | 2008-12-15 19:42:03 +0200 | [diff] [blame] | 149 | #define NFS4_MAX_UINT64 (~(u64)0) |
| 150 | |
Andy Adamson | fc93158 | 2009-04-01 09:22:31 -0400 | [diff] [blame] | 151 | /* An NFS4 sessions server must support at least NFS4_MAX_OPS operations. |
| 152 | * If a compound requires more operations, adjust NFS4_MAX_OPS accordingly. |
| 153 | */ |
| 154 | #define NFS4_MAX_OPS 8 |
| 155 | |
| 156 | /* Our NFS4 client back channel server only wants the cb_sequene and the |
| 157 | * actual operation per compound |
| 158 | */ |
| 159 | #define NFS4_MAX_BACK_CHANNEL_OPS 2 |
| 160 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | enum nfs4_acl_whotype { |
| 162 | NFS4_ACL_WHO_NAMED = 0, |
| 163 | NFS4_ACL_WHO_OWNER, |
| 164 | NFS4_ACL_WHO_GROUP, |
| 165 | NFS4_ACL_WHO_EVERYONE, |
| 166 | }; |
| 167 | |
David Woodhouse | 997b7af | 2006-04-25 14:51:45 +0100 | [diff] [blame] | 168 | #ifdef __KERNEL__ |
| 169 | #include <linux/list.h> |
| 170 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | struct nfs4_ace { |
| 172 | uint32_t type; |
| 173 | uint32_t flag; |
| 174 | uint32_t access_mask; |
| 175 | int whotype; |
| 176 | uid_t who; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 177 | }; |
| 178 | |
| 179 | struct nfs4_acl { |
| 180 | uint32_t naces; |
J. Bruce Fields | 28e05dd | 2007-02-16 01:28:30 -0800 | [diff] [blame] | 181 | struct nfs4_ace aces[0]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | }; |
| 183 | |
| 184 | typedef struct { char data[NFS4_VERIFIER_SIZE]; } nfs4_verifier; |
Alexandros Batsakis | 9449925 | 2010-10-20 00:17:56 -0400 | [diff] [blame] | 185 | |
Trond Myklebust | 2d2f24a | 2012-03-04 18:13:57 -0500 | [diff] [blame] | 186 | struct nfs_stateid4 { |
Alexandros Batsakis | 9449925 | 2010-10-20 00:17:56 -0400 | [diff] [blame] | 187 | __be32 seqid; |
| 188 | char other[NFS4_STATEID_OTHER_SIZE]; |
| 189 | } __attribute__ ((packed)); |
| 190 | |
Trond Myklebust | 2d2f24a | 2012-03-04 18:13:57 -0500 | [diff] [blame] | 191 | typedef struct nfs_stateid4 nfs4_stateid; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | |
| 193 | enum nfs_opnum4 { |
| 194 | OP_ACCESS = 3, |
| 195 | OP_CLOSE = 4, |
| 196 | OP_COMMIT = 5, |
| 197 | OP_CREATE = 6, |
| 198 | OP_DELEGPURGE = 7, |
| 199 | OP_DELEGRETURN = 8, |
| 200 | OP_GETATTR = 9, |
| 201 | OP_GETFH = 10, |
| 202 | OP_LINK = 11, |
| 203 | OP_LOCK = 12, |
| 204 | OP_LOCKT = 13, |
| 205 | OP_LOCKU = 14, |
| 206 | OP_LOOKUP = 15, |
| 207 | OP_LOOKUPP = 16, |
| 208 | OP_NVERIFY = 17, |
| 209 | OP_OPEN = 18, |
| 210 | OP_OPENATTR = 19, |
| 211 | OP_OPEN_CONFIRM = 20, |
| 212 | OP_OPEN_DOWNGRADE = 21, |
| 213 | OP_PUTFH = 22, |
| 214 | OP_PUTPUBFH = 23, |
| 215 | OP_PUTROOTFH = 24, |
| 216 | OP_READ = 25, |
| 217 | OP_READDIR = 26, |
| 218 | OP_READLINK = 27, |
| 219 | OP_REMOVE = 28, |
| 220 | OP_RENAME = 29, |
| 221 | OP_RENEW = 30, |
| 222 | OP_RESTOREFH = 31, |
| 223 | OP_SAVEFH = 32, |
| 224 | OP_SECINFO = 33, |
| 225 | OP_SETATTR = 34, |
| 226 | OP_SETCLIENTID = 35, |
| 227 | OP_SETCLIENTID_CONFIRM = 36, |
| 228 | OP_VERIFY = 37, |
| 229 | OP_WRITE = 38, |
| 230 | OP_RELEASE_LOCKOWNER = 39, |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 231 | |
| 232 | /* nfs41 */ |
| 233 | OP_BACKCHANNEL_CTL = 40, |
| 234 | OP_BIND_CONN_TO_SESSION = 41, |
| 235 | OP_EXCHANGE_ID = 42, |
| 236 | OP_CREATE_SESSION = 43, |
| 237 | OP_DESTROY_SESSION = 44, |
| 238 | OP_FREE_STATEID = 45, |
| 239 | OP_GET_DIR_DELEGATION = 46, |
| 240 | OP_GETDEVICEINFO = 47, |
| 241 | OP_GETDEVICELIST = 48, |
| 242 | OP_LAYOUTCOMMIT = 49, |
| 243 | OP_LAYOUTGET = 50, |
| 244 | OP_LAYOUTRETURN = 51, |
| 245 | OP_SECINFO_NO_NAME = 52, |
| 246 | OP_SEQUENCE = 53, |
| 247 | OP_SET_SSV = 54, |
| 248 | OP_TEST_STATEID = 55, |
| 249 | OP_WANT_DELEGATION = 56, |
| 250 | OP_DESTROY_CLIENTID = 57, |
| 251 | OP_RECLAIM_COMPLETE = 58, |
| 252 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | OP_ILLEGAL = 10044, |
| 254 | }; |
| 255 | |
Shankar Anand | e2b2095 | 2006-07-10 04:45:44 -0700 | [diff] [blame] | 256 | /*Defining first and last NFS4 operations implemented. |
| 257 | Needs to be updated if more operations are defined in future.*/ |
| 258 | |
| 259 | #define FIRST_NFS4_OP OP_ACCESS |
Benny Halevy | 5a421ce | 2009-07-10 12:37:40 +0300 | [diff] [blame] | 260 | #define LAST_NFS4_OP OP_RECLAIM_COMPLETE |
Shankar Anand | e2b2095 | 2006-07-10 04:45:44 -0700 | [diff] [blame] | 261 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 262 | enum nfsstat4 { |
| 263 | NFS4_OK = 0, |
| 264 | NFS4ERR_PERM = 1, |
| 265 | NFS4ERR_NOENT = 2, |
| 266 | NFS4ERR_IO = 5, |
| 267 | NFS4ERR_NXIO = 6, |
| 268 | NFS4ERR_ACCESS = 13, |
| 269 | NFS4ERR_EXIST = 17, |
| 270 | NFS4ERR_XDEV = 18, |
| 271 | /* Unused/reserved 19 */ |
| 272 | NFS4ERR_NOTDIR = 20, |
| 273 | NFS4ERR_ISDIR = 21, |
| 274 | NFS4ERR_INVAL = 22, |
| 275 | NFS4ERR_FBIG = 27, |
| 276 | NFS4ERR_NOSPC = 28, |
| 277 | NFS4ERR_ROFS = 30, |
| 278 | NFS4ERR_MLINK = 31, |
| 279 | NFS4ERR_NAMETOOLONG = 63, |
| 280 | NFS4ERR_NOTEMPTY = 66, |
| 281 | NFS4ERR_DQUOT = 69, |
| 282 | NFS4ERR_STALE = 70, |
| 283 | NFS4ERR_BADHANDLE = 10001, |
| 284 | NFS4ERR_BAD_COOKIE = 10003, |
| 285 | NFS4ERR_NOTSUPP = 10004, |
| 286 | NFS4ERR_TOOSMALL = 10005, |
| 287 | NFS4ERR_SERVERFAULT = 10006, |
| 288 | NFS4ERR_BADTYPE = 10007, |
| 289 | NFS4ERR_DELAY = 10008, |
| 290 | NFS4ERR_SAME = 10009, |
| 291 | NFS4ERR_DENIED = 10010, |
| 292 | NFS4ERR_EXPIRED = 10011, |
| 293 | NFS4ERR_LOCKED = 10012, |
| 294 | NFS4ERR_GRACE = 10013, |
| 295 | NFS4ERR_FHEXPIRED = 10014, |
| 296 | NFS4ERR_SHARE_DENIED = 10015, |
| 297 | NFS4ERR_WRONGSEC = 10016, |
| 298 | NFS4ERR_CLID_INUSE = 10017, |
| 299 | NFS4ERR_RESOURCE = 10018, |
| 300 | NFS4ERR_MOVED = 10019, |
| 301 | NFS4ERR_NOFILEHANDLE = 10020, |
| 302 | NFS4ERR_MINOR_VERS_MISMATCH = 10021, |
| 303 | NFS4ERR_STALE_CLIENTID = 10022, |
| 304 | NFS4ERR_STALE_STATEID = 10023, |
| 305 | NFS4ERR_OLD_STATEID = 10024, |
| 306 | NFS4ERR_BAD_STATEID = 10025, |
| 307 | NFS4ERR_BAD_SEQID = 10026, |
| 308 | NFS4ERR_NOT_SAME = 10027, |
| 309 | NFS4ERR_LOCK_RANGE = 10028, |
| 310 | NFS4ERR_SYMLINK = 10029, |
| 311 | NFS4ERR_RESTOREFH = 10030, |
| 312 | NFS4ERR_LEASE_MOVED = 10031, |
| 313 | NFS4ERR_ATTRNOTSUPP = 10032, |
| 314 | NFS4ERR_NO_GRACE = 10033, |
| 315 | NFS4ERR_RECLAIM_BAD = 10034, |
| 316 | NFS4ERR_RECLAIM_CONFLICT = 10035, |
| 317 | NFS4ERR_BADXDR = 10036, |
| 318 | NFS4ERR_LOCKS_HELD = 10037, |
| 319 | NFS4ERR_OPENMODE = 10038, |
| 320 | NFS4ERR_BADOWNER = 10039, |
| 321 | NFS4ERR_BADCHAR = 10040, |
| 322 | NFS4ERR_BADNAME = 10041, |
| 323 | NFS4ERR_BAD_RANGE = 10042, |
| 324 | NFS4ERR_LOCK_NOTSUPP = 10043, |
| 325 | NFS4ERR_OP_ILLEGAL = 10044, |
| 326 | NFS4ERR_DEADLOCK = 10045, |
| 327 | NFS4ERR_FILE_OPEN = 10046, |
| 328 | NFS4ERR_ADMIN_REVOKED = 10047, |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 329 | NFS4ERR_CB_PATH_DOWN = 10048, |
| 330 | |
| 331 | /* nfs41 */ |
| 332 | NFS4ERR_BADIOMODE = 10049, |
| 333 | NFS4ERR_BADLAYOUT = 10050, |
| 334 | NFS4ERR_BAD_SESSION_DIGEST = 10051, |
| 335 | NFS4ERR_BADSESSION = 10052, |
| 336 | NFS4ERR_BADSLOT = 10053, |
| 337 | NFS4ERR_COMPLETE_ALREADY = 10054, |
| 338 | NFS4ERR_CONN_NOT_BOUND_TO_SESSION = 10055, |
| 339 | NFS4ERR_DELEG_ALREADY_WANTED = 10056, |
| 340 | NFS4ERR_BACK_CHAN_BUSY = 10057, /* backchan reqs outstanding */ |
| 341 | NFS4ERR_LAYOUTTRYLATER = 10058, |
| 342 | NFS4ERR_LAYOUTUNAVAILABLE = 10059, |
| 343 | NFS4ERR_NOMATCHING_LAYOUT = 10060, |
| 344 | NFS4ERR_RECALLCONFLICT = 10061, |
| 345 | NFS4ERR_UNKNOWN_LAYOUTTYPE = 10062, |
| 346 | NFS4ERR_SEQ_MISORDERED = 10063, /* unexpected seq.id in req */ |
| 347 | NFS4ERR_SEQUENCE_POS = 10064, /* [CB_]SEQ. op not 1st op */ |
| 348 | NFS4ERR_REQ_TOO_BIG = 10065, /* request too big */ |
| 349 | NFS4ERR_REP_TOO_BIG = 10066, /* reply too big */ |
| 350 | NFS4ERR_REP_TOO_BIG_TO_CACHE = 10067, /* rep. not all cached */ |
| 351 | NFS4ERR_RETRY_UNCACHED_REP = 10068, /* retry & rep. uncached */ |
| 352 | NFS4ERR_UNSAFE_COMPOUND = 10069, /* retry/recovery too hard */ |
| 353 | NFS4ERR_TOO_MANY_OPS = 10070, /* too many ops in [CB_]COMP */ |
| 354 | NFS4ERR_OP_NOT_IN_SESSION = 10071, /* op needs [CB_]SEQ. op */ |
| 355 | NFS4ERR_HASH_ALG_UNSUPP = 10072, /* hash alg. not supp. */ |
| 356 | /* Error 10073 is unused. */ |
| 357 | NFS4ERR_CLIENTID_BUSY = 10074, /* clientid has state */ |
| 358 | NFS4ERR_PNFS_IO_HOLE = 10075, /* IO to _SPARSE file hole */ |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 359 | NFS4ERR_SEQ_FALSE_RETRY = 10076, /* retry not original */ |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 360 | NFS4ERR_BAD_HIGH_SLOT = 10077, /* sequence arg bad */ |
| 361 | NFS4ERR_DEADSESSION = 10078, /* persistent session dead */ |
| 362 | NFS4ERR_ENCR_ALG_UNSUPP = 10079, /* SSV alg mismatch */ |
| 363 | NFS4ERR_PNFS_NO_LAYOUT = 10080, /* direct I/O with no layout */ |
| 364 | NFS4ERR_NOT_ONLY_OP = 10081, /* bad compound */ |
| 365 | NFS4ERR_WRONG_CRED = 10082, /* permissions:state change */ |
| 366 | NFS4ERR_WRONG_TYPE = 10083, /* current operation mismatch */ |
| 367 | NFS4ERR_DIRDELEG_UNAVAIL = 10084, /* no directory delegation */ |
| 368 | NFS4ERR_REJECT_DELEG = 10085, /* on callback */ |
| 369 | NFS4ERR_RETURNCONFLICT = 10086, /* outstanding layoutreturn */ |
| 370 | NFS4ERR_DELEG_REVOKED = 10087, /* deleg./layout revoked */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 371 | }; |
| 372 | |
J. Bruce Fields | a9004ab | 2011-08-23 15:43:04 -0400 | [diff] [blame] | 373 | static inline bool seqid_mutating_err(u32 err) |
| 374 | { |
| 375 | /* rfc 3530 section 8.1.5: */ |
| 376 | switch (err) { |
| 377 | case NFS4ERR_STALE_CLIENTID: |
| 378 | case NFS4ERR_STALE_STATEID: |
| 379 | case NFS4ERR_BAD_STATEID: |
| 380 | case NFS4ERR_BAD_SEQID: |
| 381 | case NFS4ERR_BADXDR: |
| 382 | case NFS4ERR_RESOURCE: |
| 383 | case NFS4ERR_NOFILEHANDLE: |
| 384 | return false; |
| 385 | }; |
| 386 | return true; |
| 387 | } |
| 388 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 389 | /* |
| 390 | * Note: NF4BAD is not actually part of the protocol; it is just used |
| 391 | * internally by nfsd. |
| 392 | */ |
| 393 | enum nfs_ftype4 { |
| 394 | NF4BAD = 0, |
| 395 | NF4REG = 1, /* Regular File */ |
| 396 | NF4DIR = 2, /* Directory */ |
| 397 | NF4BLK = 3, /* Special File - block device */ |
| 398 | NF4CHR = 4, /* Special File - character device */ |
| 399 | NF4LNK = 5, /* Symbolic Link */ |
| 400 | NF4SOCK = 6, /* Special File - socket */ |
| 401 | NF4FIFO = 7, /* Special File - fifo */ |
| 402 | NF4ATTRDIR = 8, /* Attribute Directory */ |
| 403 | NF4NAMEDATTR = 9 /* Named Attribute */ |
| 404 | }; |
| 405 | |
| 406 | enum open_claim_type4 { |
| 407 | NFS4_OPEN_CLAIM_NULL = 0, |
| 408 | NFS4_OPEN_CLAIM_PREVIOUS = 1, |
| 409 | NFS4_OPEN_CLAIM_DELEGATE_CUR = 2, |
J. Bruce Fields | 8b289b2 | 2011-10-19 11:52:12 -0400 | [diff] [blame] | 410 | NFS4_OPEN_CLAIM_DELEGATE_PREV = 3, |
| 411 | NFS4_OPEN_CLAIM_FH = 4, /* 4.1 */ |
| 412 | NFS4_OPEN_CLAIM_DELEG_CUR_FH = 5, /* 4.1 */ |
| 413 | NFS4_OPEN_CLAIM_DELEG_PREV_FH = 6, /* 4.1 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 414 | }; |
| 415 | |
| 416 | enum opentype4 { |
| 417 | NFS4_OPEN_NOCREATE = 0, |
| 418 | NFS4_OPEN_CREATE = 1 |
| 419 | }; |
| 420 | |
| 421 | enum createmode4 { |
| 422 | NFS4_CREATE_UNCHECKED = 0, |
| 423 | NFS4_CREATE_GUARDED = 1, |
Benny Halevy | 79fb54a | 2009-04-03 08:29:17 +0300 | [diff] [blame] | 424 | NFS4_CREATE_EXCLUSIVE = 2, |
| 425 | /* |
| 426 | * New to NFSv4.1. If session is persistent, |
| 427 | * GUARDED4 MUST be used. Otherwise, use |
| 428 | * EXCLUSIVE4_1 instead of EXCLUSIVE4. |
| 429 | */ |
| 430 | NFS4_CREATE_EXCLUSIVE4_1 = 3 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 431 | }; |
| 432 | |
| 433 | enum limit_by4 { |
| 434 | NFS4_LIMIT_SIZE = 1, |
| 435 | NFS4_LIMIT_BLOCKS = 2 |
| 436 | }; |
| 437 | |
| 438 | enum open_delegation_type4 { |
| 439 | NFS4_OPEN_DELEGATE_NONE = 0, |
| 440 | NFS4_OPEN_DELEGATE_READ = 1, |
| 441 | NFS4_OPEN_DELEGATE_WRITE = 2 |
| 442 | }; |
| 443 | |
| 444 | enum lock_type4 { |
| 445 | NFS4_UNLOCK_LT = 0, |
| 446 | NFS4_READ_LT = 1, |
| 447 | NFS4_WRITE_LT = 2, |
| 448 | NFS4_READW_LT = 3, |
| 449 | NFS4_WRITEW_LT = 4 |
| 450 | }; |
| 451 | |
| 452 | |
| 453 | /* Mandatory Attributes */ |
| 454 | #define FATTR4_WORD0_SUPPORTED_ATTRS (1UL << 0) |
| 455 | #define FATTR4_WORD0_TYPE (1UL << 1) |
| 456 | #define FATTR4_WORD0_FH_EXPIRE_TYPE (1UL << 2) |
| 457 | #define FATTR4_WORD0_CHANGE (1UL << 3) |
| 458 | #define FATTR4_WORD0_SIZE (1UL << 4) |
| 459 | #define FATTR4_WORD0_LINK_SUPPORT (1UL << 5) |
| 460 | #define FATTR4_WORD0_SYMLINK_SUPPORT (1UL << 6) |
| 461 | #define FATTR4_WORD0_NAMED_ATTR (1UL << 7) |
| 462 | #define FATTR4_WORD0_FSID (1UL << 8) |
| 463 | #define FATTR4_WORD0_UNIQUE_HANDLES (1UL << 9) |
| 464 | #define FATTR4_WORD0_LEASE_TIME (1UL << 10) |
| 465 | #define FATTR4_WORD0_RDATTR_ERROR (1UL << 11) |
Benny Halevy | 8c18f20 | 2009-04-03 08:29:14 +0300 | [diff] [blame] | 466 | /* Mandatory in NFSv4.1 */ |
| 467 | #define FATTR4_WORD2_SUPPATTR_EXCLCREAT (1UL << 11) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 468 | |
| 469 | /* Recommended Attributes */ |
| 470 | #define FATTR4_WORD0_ACL (1UL << 12) |
| 471 | #define FATTR4_WORD0_ACLSUPPORT (1UL << 13) |
| 472 | #define FATTR4_WORD0_ARCHIVE (1UL << 14) |
| 473 | #define FATTR4_WORD0_CANSETTIME (1UL << 15) |
| 474 | #define FATTR4_WORD0_CASE_INSENSITIVE (1UL << 16) |
| 475 | #define FATTR4_WORD0_CASE_PRESERVING (1UL << 17) |
| 476 | #define FATTR4_WORD0_CHOWN_RESTRICTED (1UL << 18) |
| 477 | #define FATTR4_WORD0_FILEHANDLE (1UL << 19) |
| 478 | #define FATTR4_WORD0_FILEID (1UL << 20) |
| 479 | #define FATTR4_WORD0_FILES_AVAIL (1UL << 21) |
| 480 | #define FATTR4_WORD0_FILES_FREE (1UL << 22) |
| 481 | #define FATTR4_WORD0_FILES_TOTAL (1UL << 23) |
| 482 | #define FATTR4_WORD0_FS_LOCATIONS (1UL << 24) |
| 483 | #define FATTR4_WORD0_HIDDEN (1UL << 25) |
| 484 | #define FATTR4_WORD0_HOMOGENEOUS (1UL << 26) |
| 485 | #define FATTR4_WORD0_MAXFILESIZE (1UL << 27) |
| 486 | #define FATTR4_WORD0_MAXLINK (1UL << 28) |
| 487 | #define FATTR4_WORD0_MAXNAME (1UL << 29) |
| 488 | #define FATTR4_WORD0_MAXREAD (1UL << 30) |
| 489 | #define FATTR4_WORD0_MAXWRITE (1UL << 31) |
| 490 | #define FATTR4_WORD1_MIMETYPE (1UL << 0) |
| 491 | #define FATTR4_WORD1_MODE (1UL << 1) |
| 492 | #define FATTR4_WORD1_NO_TRUNC (1UL << 2) |
| 493 | #define FATTR4_WORD1_NUMLINKS (1UL << 3) |
| 494 | #define FATTR4_WORD1_OWNER (1UL << 4) |
| 495 | #define FATTR4_WORD1_OWNER_GROUP (1UL << 5) |
| 496 | #define FATTR4_WORD1_QUOTA_HARD (1UL << 6) |
| 497 | #define FATTR4_WORD1_QUOTA_SOFT (1UL << 7) |
| 498 | #define FATTR4_WORD1_QUOTA_USED (1UL << 8) |
| 499 | #define FATTR4_WORD1_RAWDEV (1UL << 9) |
| 500 | #define FATTR4_WORD1_SPACE_AVAIL (1UL << 10) |
| 501 | #define FATTR4_WORD1_SPACE_FREE (1UL << 11) |
| 502 | #define FATTR4_WORD1_SPACE_TOTAL (1UL << 12) |
| 503 | #define FATTR4_WORD1_SPACE_USED (1UL << 13) |
| 504 | #define FATTR4_WORD1_SYSTEM (1UL << 14) |
| 505 | #define FATTR4_WORD1_TIME_ACCESS (1UL << 15) |
| 506 | #define FATTR4_WORD1_TIME_ACCESS_SET (1UL << 16) |
| 507 | #define FATTR4_WORD1_TIME_BACKUP (1UL << 17) |
| 508 | #define FATTR4_WORD1_TIME_CREATE (1UL << 18) |
| 509 | #define FATTR4_WORD1_TIME_DELTA (1UL << 19) |
| 510 | #define FATTR4_WORD1_TIME_METADATA (1UL << 20) |
| 511 | #define FATTR4_WORD1_TIME_MODIFY (1UL << 21) |
| 512 | #define FATTR4_WORD1_TIME_MODIFY_SET (1UL << 22) |
| 513 | #define FATTR4_WORD1_MOUNTED_ON_FILEID (1UL << 23) |
Dean Hildebrand | c772567d | 2010-10-20 00:17:55 -0400 | [diff] [blame] | 514 | #define FATTR4_WORD1_FS_LAYOUT_TYPES (1UL << 30) |
| 515 | #define FATTR4_WORD2_LAYOUT_BLKSIZE (1UL << 1) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 516 | |
| 517 | #define NFSPROC4_NULL 0 |
| 518 | #define NFSPROC4_COMPOUND 1 |
Chuck Lever | 764302c | 2009-09-08 19:50:03 -0400 | [diff] [blame] | 519 | #define NFS4_VERSION 4 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 520 | #define NFS4_MINOR_VERSION 0 |
Mike Sager | 44549df | 2009-04-01 09:21:47 -0400 | [diff] [blame] | 521 | |
| 522 | #if defined(CONFIG_NFS_V4_1) |
| 523 | #define NFS4_MAX_MINOR_VERSION 1 |
| 524 | #else |
| 525 | #define NFS4_MAX_MINOR_VERSION 0 |
| 526 | #endif /* CONFIG_NFS_V4_1 */ |
| 527 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 528 | #define NFS4_DEBUG 1 |
| 529 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 530 | /* Index of predefined Linux client operations */ |
| 531 | |
| 532 | enum { |
| 533 | NFSPROC4_CLNT_NULL = 0, /* Unused */ |
| 534 | NFSPROC4_CLNT_READ, |
| 535 | NFSPROC4_CLNT_WRITE, |
| 536 | NFSPROC4_CLNT_COMMIT, |
| 537 | NFSPROC4_CLNT_OPEN, |
| 538 | NFSPROC4_CLNT_OPEN_CONFIRM, |
| 539 | NFSPROC4_CLNT_OPEN_NOATTR, |
| 540 | NFSPROC4_CLNT_OPEN_DOWNGRADE, |
| 541 | NFSPROC4_CLNT_CLOSE, |
| 542 | NFSPROC4_CLNT_SETATTR, |
| 543 | NFSPROC4_CLNT_FSINFO, |
| 544 | NFSPROC4_CLNT_RENEW, |
| 545 | NFSPROC4_CLNT_SETCLIENTID, |
| 546 | NFSPROC4_CLNT_SETCLIENTID_CONFIRM, |
| 547 | NFSPROC4_CLNT_LOCK, |
| 548 | NFSPROC4_CLNT_LOCKT, |
| 549 | NFSPROC4_CLNT_LOCKU, |
| 550 | NFSPROC4_CLNT_ACCESS, |
| 551 | NFSPROC4_CLNT_GETATTR, |
| 552 | NFSPROC4_CLNT_LOOKUP, |
| 553 | NFSPROC4_CLNT_LOOKUP_ROOT, |
| 554 | NFSPROC4_CLNT_REMOVE, |
| 555 | NFSPROC4_CLNT_RENAME, |
| 556 | NFSPROC4_CLNT_LINK, |
| 557 | NFSPROC4_CLNT_SYMLINK, |
| 558 | NFSPROC4_CLNT_CREATE, |
| 559 | NFSPROC4_CLNT_PATHCONF, |
| 560 | NFSPROC4_CLNT_STATFS, |
| 561 | NFSPROC4_CLNT_READLINK, |
| 562 | NFSPROC4_CLNT_READDIR, |
| 563 | NFSPROC4_CLNT_SERVER_CAPS, |
| 564 | NFSPROC4_CLNT_DELEGRETURN, |
J. Bruce Fields | 029d105 | 2005-06-22 17:16:22 +0000 | [diff] [blame] | 565 | NFSPROC4_CLNT_GETACL, |
J. Bruce Fields | 23ec696 | 2005-06-22 17:16:22 +0000 | [diff] [blame] | 566 | NFSPROC4_CLNT_SETACL, |
Trond Myklebust | 683b57b | 2006-06-09 09:34:22 -0400 | [diff] [blame] | 567 | NFSPROC4_CLNT_FS_LOCATIONS, |
Trond Myklebust | d3c7b7c | 2010-07-01 12:49:01 -0400 | [diff] [blame] | 568 | NFSPROC4_CLNT_RELEASE_LOCKOWNER, |
Bryan Schumaker | 5a5ea0d | 2011-03-24 17:12:29 +0000 | [diff] [blame] | 569 | NFSPROC4_CLNT_SECINFO, |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 570 | |
| 571 | /* nfs41 */ |
| 572 | NFSPROC4_CLNT_EXCHANGE_ID, |
| 573 | NFSPROC4_CLNT_CREATE_SESSION, |
| 574 | NFSPROC4_CLNT_DESTROY_SESSION, |
| 575 | NFSPROC4_CLNT_SEQUENCE, |
| 576 | NFSPROC4_CLNT_GET_LEASE_TIME, |
Ricardo Labiaga | 18019753 | 2009-12-05 16:08:40 -0500 | [diff] [blame] | 577 | NFSPROC4_CLNT_RECLAIM_COMPLETE, |
Andy Adamson | b1f69b7 | 2010-10-20 00:18:03 -0400 | [diff] [blame] | 578 | NFSPROC4_CLNT_LAYOUTGET, |
| 579 | NFSPROC4_CLNT_GETDEVICEINFO, |
Andy Adamson | 863a3c6 | 2011-03-23 13:27:54 +0000 | [diff] [blame] | 580 | NFSPROC4_CLNT_LAYOUTCOMMIT, |
Benny Halevy | cbe8260 | 2011-05-22 19:52:37 +0300 | [diff] [blame] | 581 | NFSPROC4_CLNT_LAYOUTRETURN, |
Bryan Schumaker | fca78d6 | 2011-06-02 14:59:07 -0400 | [diff] [blame] | 582 | NFSPROC4_CLNT_SECINFO_NO_NAME, |
Bryan Schumaker | 7d97479 | 2011-06-02 14:59:08 -0400 | [diff] [blame] | 583 | NFSPROC4_CLNT_TEST_STATEID, |
Bryan Schumaker | 9aeda35 | 2011-06-02 14:59:09 -0400 | [diff] [blame] | 584 | NFSPROC4_CLNT_FREE_STATEID, |
Andy Adamson | 7f11d8d | 2011-07-30 20:52:35 -0400 | [diff] [blame] | 585 | NFSPROC4_CLNT_GETDEVICELIST, |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 586 | }; |
| 587 | |
| 588 | /* nfs41 types */ |
| 589 | struct nfs4_sessionid { |
| 590 | unsigned char data[NFS4_MAX_SESSIONID_LEN]; |
| 591 | }; |
| 592 | |
| 593 | /* Create Session Flags */ |
Mi Jinlong | a62573d | 2011-03-23 17:57:07 +0800 | [diff] [blame] | 594 | #define SESSION4_PERSIST 0x001 |
| 595 | #define SESSION4_BACK_CHAN 0x002 |
| 596 | #define SESSION4_RDMA 0x004 |
| 597 | |
| 598 | #define SESSION4_FLAG_MASK_A 0x007 |
Benny Halevy | 18df188 | 2009-04-03 08:27:36 +0300 | [diff] [blame] | 599 | |
| 600 | enum state_protect_how4 { |
| 601 | SP4_NONE = 0, |
| 602 | SP4_MACH_CRED = 1, |
| 603 | SP4_SSV = 2 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 604 | }; |
| 605 | |
Dean Hildebrand | c772567d | 2010-10-20 00:17:55 -0400 | [diff] [blame] | 606 | enum pnfs_layouttype { |
| 607 | LAYOUT_NFSV4_1_FILES = 1, |
| 608 | LAYOUT_OSD2_OBJECTS = 2, |
| 609 | LAYOUT_BLOCK_VOLUME = 3, |
| 610 | }; |
| 611 | |
| 612 | /* used for both layout return and recall */ |
| 613 | enum pnfs_layoutreturn_type { |
| 614 | RETURN_FILE = 1, |
| 615 | RETURN_FSID = 2, |
| 616 | RETURN_ALL = 3 |
| 617 | }; |
| 618 | |
| 619 | enum pnfs_iomode { |
| 620 | IOMODE_READ = 1, |
| 621 | IOMODE_RW = 2, |
| 622 | IOMODE_ANY = 3, |
| 623 | }; |
| 624 | |
| 625 | enum pnfs_notify_deviceid_type4 { |
| 626 | NOTIFY_DEVICEID4_CHANGE = 1 << 1, |
| 627 | NOTIFY_DEVICEID4_DELETE = 1 << 2, |
| 628 | }; |
| 629 | |
| 630 | #define NFL4_UFLG_MASK 0x0000003F |
| 631 | #define NFL4_UFLG_DENSE 0x00000001 |
| 632 | #define NFL4_UFLG_COMMIT_THRU_MDS 0x00000002 |
| 633 | #define NFL4_UFLG_STRIPE_UNIT_SIZE_MASK 0xFFFFFFC0 |
| 634 | |
| 635 | /* Encoded in the loh_body field of type layouthint4 */ |
| 636 | enum filelayout_hint_care4 { |
| 637 | NFLH4_CARE_DENSE = NFL4_UFLG_DENSE, |
| 638 | NFLH4_CARE_COMMIT_THRU_MDS = NFL4_UFLG_COMMIT_THRU_MDS, |
| 639 | NFLH4_CARE_STRIPE_UNIT_SIZE = 0x00000040, |
| 640 | NFLH4_CARE_STRIPE_COUNT = 0x00000080 |
| 641 | }; |
| 642 | |
| 643 | #define NFS4_DEVICEID4_SIZE 16 |
| 644 | |
| 645 | struct nfs4_deviceid { |
| 646 | char data[NFS4_DEVICEID4_SIZE]; |
| 647 | }; |
| 648 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 649 | #endif |
| 650 | #endif |
| 651 | |
| 652 | /* |
| 653 | * Local variables: |
| 654 | * c-basic-offset: 8 |
| 655 | * End: |
| 656 | */ |