1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Display helpers for NFS protocol elements 4 * 5 * Author: Chuck Lever <chuck.lever@oracle.com> 6 * 7 * Copyright (c) 2020, Oracle and/or its affiliates. 8 */ 9 10 #include <linux/nfs.h> 11 #include <linux/nfs4.h> 12 #include <uapi/linux/nfs.h> 13 14 TRACE_DEFINE_ENUM(NFS_OK); 15 TRACE_DEFINE_ENUM(NFSERR_PERM); 16 TRACE_DEFINE_ENUM(NFSERR_NOENT); 17 TRACE_DEFINE_ENUM(NFSERR_IO); 18 TRACE_DEFINE_ENUM(NFSERR_NXIO); 19 TRACE_DEFINE_ENUM(NFSERR_EAGAIN); 20 TRACE_DEFINE_ENUM(NFSERR_ACCES); 21 TRACE_DEFINE_ENUM(NFSERR_EXIST); 22 TRACE_DEFINE_ENUM(NFSERR_XDEV); 23 TRACE_DEFINE_ENUM(NFSERR_NODEV); 24 TRACE_DEFINE_ENUM(NFSERR_NOTDIR); 25 TRACE_DEFINE_ENUM(NFSERR_ISDIR); 26 TRACE_DEFINE_ENUM(NFSERR_INVAL); 27 TRACE_DEFINE_ENUM(NFSERR_FBIG); 28 TRACE_DEFINE_ENUM(NFSERR_NOSPC); 29 TRACE_DEFINE_ENUM(NFSERR_ROFS); 30 TRACE_DEFINE_ENUM(NFSERR_MLINK); 31 TRACE_DEFINE_ENUM(NFSERR_NAMETOOLONG); 32 TRACE_DEFINE_ENUM(NFSERR_NOTEMPTY); 33 TRACE_DEFINE_ENUM(NFSERR_DQUOT); 34 TRACE_DEFINE_ENUM(NFSERR_STALE); 35 TRACE_DEFINE_ENUM(NFSERR_REMOTE); 36 TRACE_DEFINE_ENUM(NFSERR_WFLUSH); 37 TRACE_DEFINE_ENUM(NFSERR_BADHANDLE); 38 TRACE_DEFINE_ENUM(NFSERR_NOT_SYNC); 39 TRACE_DEFINE_ENUM(NFSERR_BAD_COOKIE); 40 TRACE_DEFINE_ENUM(NFSERR_NOTSUPP); 41 TRACE_DEFINE_ENUM(NFSERR_TOOSMALL); 42 TRACE_DEFINE_ENUM(NFSERR_SERVERFAULT); 43 TRACE_DEFINE_ENUM(NFSERR_BADTYPE); 44 TRACE_DEFINE_ENUM(NFSERR_JUKEBOX); 45 46 #define show_nfs_status(x) \ 47 __print_symbolic(x, \ 48 { NFS_OK, "OK" }, \ 49 { NFSERR_PERM, "PERM" }, \ 50 { NFSERR_NOENT, "NOENT" }, \ 51 { NFSERR_IO, "IO" }, \ 52 { NFSERR_NXIO, "NXIO" }, \ 53 { ECHILD, "CHILD" }, \ 54 { NFSERR_EAGAIN, "AGAIN" }, \ 55 { NFSERR_ACCES, "ACCES" }, \ 56 { NFSERR_EXIST, "EXIST" }, \ 57 { NFSERR_XDEV, "XDEV" }, \ 58 { NFSERR_NODEV, "NODEV" }, \ 59 { NFSERR_NOTDIR, "NOTDIR" }, \ 60 { NFSERR_ISDIR, "ISDIR" }, \ 61 { NFSERR_INVAL, "INVAL" }, \ 62 { NFSERR_FBIG, "FBIG" }, \ 63 { NFSERR_NOSPC, "NOSPC" }, \ 64 { NFSERR_ROFS, "ROFS" }, \ 65 { NFSERR_MLINK, "MLINK" }, \ 66 { NFSERR_NAMETOOLONG, "NAMETOOLONG" }, \ 67 { NFSERR_NOTEMPTY, "NOTEMPTY" }, \ 68 { NFSERR_DQUOT, "DQUOT" }, \ 69 { NFSERR_STALE, "STALE" }, \ 70 { NFSERR_REMOTE, "REMOTE" }, \ 71 { NFSERR_WFLUSH, "WFLUSH" }, \ 72 { NFSERR_BADHANDLE, "BADHANDLE" }, \ 73 { NFSERR_NOT_SYNC, "NOTSYNC" }, \ 74 { NFSERR_BAD_COOKIE, "BADCOOKIE" }, \ 75 { NFSERR_NOTSUPP, "NOTSUPP" }, \ 76 { NFSERR_TOOSMALL, "TOOSMALL" }, \ 77 { NFSERR_SERVERFAULT, "REMOTEIO" }, \ 78 { NFSERR_BADTYPE, "BADTYPE" }, \ 79 { NFSERR_JUKEBOX, "JUKEBOX" }) 80 81 TRACE_DEFINE_ENUM(NFS_UNSTABLE); 82 TRACE_DEFINE_ENUM(NFS_DATA_SYNC); 83 TRACE_DEFINE_ENUM(NFS_FILE_SYNC); 84 85 #define show_nfs_stable_how(x) \ 86 __print_symbolic(x, \ 87 { NFS_UNSTABLE, "UNSTABLE" }, \ 88 { NFS_DATA_SYNC, "DATA_SYNC" }, \ 89 { NFS_FILE_SYNC, "FILE_SYNC" }) 90 91 TRACE_DEFINE_ENUM(NFS4_OK); 92 TRACE_DEFINE_ENUM(NFS4ERR_ACCESS); 93 TRACE_DEFINE_ENUM(NFS4ERR_ATTRNOTSUPP); 94 TRACE_DEFINE_ENUM(NFS4ERR_ADMIN_REVOKED); 95 TRACE_DEFINE_ENUM(NFS4ERR_BACK_CHAN_BUSY); 96 TRACE_DEFINE_ENUM(NFS4ERR_BADCHAR); 97 TRACE_DEFINE_ENUM(NFS4ERR_BADHANDLE); 98 TRACE_DEFINE_ENUM(NFS4ERR_BADIOMODE); 99 TRACE_DEFINE_ENUM(NFS4ERR_BADLAYOUT); 100 TRACE_DEFINE_ENUM(NFS4ERR_BADLABEL); 101 TRACE_DEFINE_ENUM(NFS4ERR_BADNAME); 102 TRACE_DEFINE_ENUM(NFS4ERR_BADOWNER); 103 TRACE_DEFINE_ENUM(NFS4ERR_BADSESSION); 104 TRACE_DEFINE_ENUM(NFS4ERR_BADSLOT); 105 TRACE_DEFINE_ENUM(NFS4ERR_BADTYPE); 106 TRACE_DEFINE_ENUM(NFS4ERR_BADXDR); 107 TRACE_DEFINE_ENUM(NFS4ERR_BAD_COOKIE); 108 TRACE_DEFINE_ENUM(NFS4ERR_BAD_HIGH_SLOT); 109 TRACE_DEFINE_ENUM(NFS4ERR_BAD_RANGE); 110 TRACE_DEFINE_ENUM(NFS4ERR_BAD_SEQID); 111 TRACE_DEFINE_ENUM(NFS4ERR_BAD_SESSION_DIGEST); 112 TRACE_DEFINE_ENUM(NFS4ERR_BAD_STATEID); 113 TRACE_DEFINE_ENUM(NFS4ERR_CB_PATH_DOWN); 114 TRACE_DEFINE_ENUM(NFS4ERR_CLID_INUSE); 115 TRACE_DEFINE_ENUM(NFS4ERR_CLIENTID_BUSY); 116 TRACE_DEFINE_ENUM(NFS4ERR_COMPLETE_ALREADY); 117 TRACE_DEFINE_ENUM(NFS4ERR_CONN_NOT_BOUND_TO_SESSION); 118 TRACE_DEFINE_ENUM(NFS4ERR_DEADLOCK); 119 TRACE_DEFINE_ENUM(NFS4ERR_DEADSESSION); 120 TRACE_DEFINE_ENUM(NFS4ERR_DELAY); 121 TRACE_DEFINE_ENUM(NFS4ERR_DELEG_ALREADY_WANTED); 122 TRACE_DEFINE_ENUM(NFS4ERR_DELEG_REVOKED); 123 TRACE_DEFINE_ENUM(NFS4ERR_DENIED); 124 TRACE_DEFINE_ENUM(NFS4ERR_DIRDELEG_UNAVAIL); 125 TRACE_DEFINE_ENUM(NFS4ERR_DQUOT); 126 TRACE_DEFINE_ENUM(NFS4ERR_ENCR_ALG_UNSUPP); 127 TRACE_DEFINE_ENUM(NFS4ERR_EXIST); 128 TRACE_DEFINE_ENUM(NFS4ERR_EXPIRED); 129 TRACE_DEFINE_ENUM(NFS4ERR_FBIG); 130 TRACE_DEFINE_ENUM(NFS4ERR_FHEXPIRED); 131 TRACE_DEFINE_ENUM(NFS4ERR_FILE_OPEN); 132 TRACE_DEFINE_ENUM(NFS4ERR_GRACE); 133 TRACE_DEFINE_ENUM(NFS4ERR_HASH_ALG_UNSUPP); 134 TRACE_DEFINE_ENUM(NFS4ERR_INVAL); 135 TRACE_DEFINE_ENUM(NFS4ERR_IO); 136 TRACE_DEFINE_ENUM(NFS4ERR_ISDIR); 137 TRACE_DEFINE_ENUM(NFS4ERR_LAYOUTTRYLATER); 138 TRACE_DEFINE_ENUM(NFS4ERR_LAYOUTUNAVAILABLE); 139 TRACE_DEFINE_ENUM(NFS4ERR_LEASE_MOVED); 140 TRACE_DEFINE_ENUM(NFS4ERR_LOCKED); 141 TRACE_DEFINE_ENUM(NFS4ERR_LOCKS_HELD); 142 TRACE_DEFINE_ENUM(NFS4ERR_LOCK_RANGE); 143 TRACE_DEFINE_ENUM(NFS4ERR_MINOR_VERS_MISMATCH); 144 TRACE_DEFINE_ENUM(NFS4ERR_MLINK); 145 TRACE_DEFINE_ENUM(NFS4ERR_MOVED); 146 TRACE_DEFINE_ENUM(NFS4ERR_NAMETOOLONG); 147 TRACE_DEFINE_ENUM(NFS4ERR_NOENT); 148 TRACE_DEFINE_ENUM(NFS4ERR_NOFILEHANDLE); 149 TRACE_DEFINE_ENUM(NFS4ERR_NOMATCHING_LAYOUT); 150 TRACE_DEFINE_ENUM(NFS4ERR_NOSPC); 151 TRACE_DEFINE_ENUM(NFS4ERR_NOTDIR); 152 TRACE_DEFINE_ENUM(NFS4ERR_NOTEMPTY); 153 TRACE_DEFINE_ENUM(NFS4ERR_NOTSUPP); 154 TRACE_DEFINE_ENUM(NFS4ERR_NOT_ONLY_OP); 155 TRACE_DEFINE_ENUM(NFS4ERR_NOT_SAME); 156 TRACE_DEFINE_ENUM(NFS4ERR_NO_GRACE); 157 TRACE_DEFINE_ENUM(NFS4ERR_NXIO); 158 TRACE_DEFINE_ENUM(NFS4ERR_OLD_STATEID); 159 TRACE_DEFINE_ENUM(NFS4ERR_OPENMODE); 160 TRACE_DEFINE_ENUM(NFS4ERR_OP_ILLEGAL); 161 TRACE_DEFINE_ENUM(NFS4ERR_OP_NOT_IN_SESSION); 162 TRACE_DEFINE_ENUM(NFS4ERR_PERM); 163 TRACE_DEFINE_ENUM(NFS4ERR_PNFS_IO_HOLE); 164 TRACE_DEFINE_ENUM(NFS4ERR_PNFS_NO_LAYOUT); 165 TRACE_DEFINE_ENUM(NFS4ERR_RECALLCONFLICT); 166 TRACE_DEFINE_ENUM(NFS4ERR_RECLAIM_BAD); 167 TRACE_DEFINE_ENUM(NFS4ERR_RECLAIM_CONFLICT); 168 TRACE_DEFINE_ENUM(NFS4ERR_REJECT_DELEG); 169 TRACE_DEFINE_ENUM(NFS4ERR_REP_TOO_BIG); 170 TRACE_DEFINE_ENUM(NFS4ERR_REP_TOO_BIG_TO_CACHE); 171 TRACE_DEFINE_ENUM(NFS4ERR_REQ_TOO_BIG); 172 TRACE_DEFINE_ENUM(NFS4ERR_RESOURCE); 173 TRACE_DEFINE_ENUM(NFS4ERR_RESTOREFH); 174 TRACE_DEFINE_ENUM(NFS4ERR_RETRY_UNCACHED_REP); 175 TRACE_DEFINE_ENUM(NFS4ERR_RETURNCONFLICT); 176 TRACE_DEFINE_ENUM(NFS4ERR_ROFS); 177 TRACE_DEFINE_ENUM(NFS4ERR_SAME); 178 TRACE_DEFINE_ENUM(NFS4ERR_SHARE_DENIED); 179 TRACE_DEFINE_ENUM(NFS4ERR_SEQUENCE_POS); 180 TRACE_DEFINE_ENUM(NFS4ERR_SEQ_FALSE_RETRY); 181 TRACE_DEFINE_ENUM(NFS4ERR_SEQ_MISORDERED); 182 TRACE_DEFINE_ENUM(NFS4ERR_SERVERFAULT); 183 TRACE_DEFINE_ENUM(NFS4ERR_STALE); 184 TRACE_DEFINE_ENUM(NFS4ERR_STALE_CLIENTID); 185 TRACE_DEFINE_ENUM(NFS4ERR_STALE_STATEID); 186 TRACE_DEFINE_ENUM(NFS4ERR_SYMLINK); 187 TRACE_DEFINE_ENUM(NFS4ERR_TOOSMALL); 188 TRACE_DEFINE_ENUM(NFS4ERR_TOO_MANY_OPS); 189 TRACE_DEFINE_ENUM(NFS4ERR_UNKNOWN_LAYOUTTYPE); 190 TRACE_DEFINE_ENUM(NFS4ERR_UNSAFE_COMPOUND); 191 TRACE_DEFINE_ENUM(NFS4ERR_WRONGSEC); 192 TRACE_DEFINE_ENUM(NFS4ERR_WRONG_CRED); 193 TRACE_DEFINE_ENUM(NFS4ERR_WRONG_TYPE); 194 TRACE_DEFINE_ENUM(NFS4ERR_XDEV); 195 196 TRACE_DEFINE_ENUM(NFS4ERR_RESET_TO_MDS); 197 TRACE_DEFINE_ENUM(NFS4ERR_RESET_TO_PNFS); 198 199 #define show_nfs4_status(x) \ 200 __print_symbolic(x, \ 201 { NFS4_OK, "OK" }, \ 202 { EPERM, "EPERM" }, \ 203 { ENOENT, "ENOENT" }, \ 204 { EIO, "EIO" }, \ 205 { ENXIO, "ENXIO" }, \ 206 { EACCES, "EACCES" }, \ 207 { EEXIST, "EEXIST" }, \ 208 { EXDEV, "EXDEV" }, \ 209 { ENOTDIR, "ENOTDIR" }, \ 210 { EISDIR, "EISDIR" }, \ 211 { EFBIG, "EFBIG" }, \ 212 { ENOSPC, "ENOSPC" }, \ 213 { EROFS, "EROFS" }, \ 214 { EMLINK, "EMLINK" }, \ 215 { ENAMETOOLONG, "ENAMETOOLONG" }, \ 216 { ENOTEMPTY, "ENOTEMPTY" }, \ 217 { EDQUOT, "EDQUOT" }, \ 218 { ESTALE, "ESTALE" }, \ 219 { EBADHANDLE, "EBADHANDLE" }, \ 220 { EBADCOOKIE, "EBADCOOKIE" }, \ 221 { ENOTSUPP, "ENOTSUPP" }, \ 222 { ETOOSMALL, "ETOOSMALL" }, \ 223 { EREMOTEIO, "EREMOTEIO" }, \ 224 { EBADTYPE, "EBADTYPE" }, \ 225 { EAGAIN, "EAGAIN" }, \ 226 { ELOOP, "ELOOP" }, \ 227 { EOPNOTSUPP, "EOPNOTSUPP" }, \ 228 { EDEADLK, "EDEADLK" }, \ 229 { ENOMEM, "ENOMEM" }, \ 230 { EKEYEXPIRED, "EKEYEXPIRED" }, \ 231 { ETIMEDOUT, "ETIMEDOUT" }, \ 232 { ERESTARTSYS, "ERESTARTSYS" }, \ 233 { ECONNREFUSED, "ECONNREFUSED" }, \ 234 { ECONNRESET, "ECONNRESET" }, \ 235 { ENETUNREACH, "ENETUNREACH" }, \ 236 { EHOSTUNREACH, "EHOSTUNREACH" }, \ 237 { EHOSTDOWN, "EHOSTDOWN" }, \ 238 { EPIPE, "EPIPE" }, \ 239 { EPFNOSUPPORT, "EPFNOSUPPORT" }, \ 240 { EINVAL, "EINVAL" }, \ 241 { EPROTONOSUPPORT, "EPROTONOSUPPORT" }, \ 242 { NFS4ERR_ACCESS, "ACCESS" }, \ 243 { NFS4ERR_ATTRNOTSUPP, "ATTRNOTSUPP" }, \ 244 { NFS4ERR_ADMIN_REVOKED, "ADMIN_REVOKED" }, \ 245 { NFS4ERR_BACK_CHAN_BUSY, "BACK_CHAN_BUSY" }, \ 246 { NFS4ERR_BADCHAR, "BADCHAR" }, \ 247 { NFS4ERR_BADHANDLE, "BADHANDLE" }, \ 248 { NFS4ERR_BADIOMODE, "BADIOMODE" }, \ 249 { NFS4ERR_BADLAYOUT, "BADLAYOUT" }, \ 250 { NFS4ERR_BADLABEL, "BADLABEL" }, \ 251 { NFS4ERR_BADNAME, "BADNAME" }, \ 252 { NFS4ERR_BADOWNER, "BADOWNER" }, \ 253 { NFS4ERR_BADSESSION, "BADSESSION" }, \ 254 { NFS4ERR_BADSLOT, "BADSLOT" }, \ 255 { NFS4ERR_BADTYPE, "BADTYPE" }, \ 256 { NFS4ERR_BADXDR, "BADXDR" }, \ 257 { NFS4ERR_BAD_COOKIE, "BAD_COOKIE" }, \ 258 { NFS4ERR_BAD_HIGH_SLOT, "BAD_HIGH_SLOT" }, \ 259 { NFS4ERR_BAD_RANGE, "BAD_RANGE" }, \ 260 { NFS4ERR_BAD_SEQID, "BAD_SEQID" }, \ 261 { NFS4ERR_BAD_SESSION_DIGEST, "BAD_SESSION_DIGEST" }, \ 262 { NFS4ERR_BAD_STATEID, "BAD_STATEID" }, \ 263 { NFS4ERR_CB_PATH_DOWN, "CB_PATH_DOWN" }, \ 264 { NFS4ERR_CLID_INUSE, "CLID_INUSE" }, \ 265 { NFS4ERR_CLIENTID_BUSY, "CLIENTID_BUSY" }, \ 266 { NFS4ERR_COMPLETE_ALREADY, "COMPLETE_ALREADY" }, \ 267 { NFS4ERR_CONN_NOT_BOUND_TO_SESSION, "CONN_NOT_BOUND_TO_SESSION" }, \ 268 { NFS4ERR_DEADLOCK, "DEADLOCK" }, \ 269 { NFS4ERR_DEADSESSION, "DEAD_SESSION" }, \ 270 { NFS4ERR_DELAY, "DELAY" }, \ 271 { NFS4ERR_DELEG_ALREADY_WANTED, "DELEG_ALREADY_WANTED" }, \ 272 { NFS4ERR_DELEG_REVOKED, "DELEG_REVOKED" }, \ 273 { NFS4ERR_DENIED, "DENIED" }, \ 274 { NFS4ERR_DIRDELEG_UNAVAIL, "DIRDELEG_UNAVAIL" }, \ 275 { NFS4ERR_DQUOT, "DQUOT" }, \ 276 { NFS4ERR_ENCR_ALG_UNSUPP, "ENCR_ALG_UNSUPP" }, \ 277 { NFS4ERR_EXIST, "EXIST" }, \ 278 { NFS4ERR_EXPIRED, "EXPIRED" }, \ 279 { NFS4ERR_FBIG, "FBIG" }, \ 280 { NFS4ERR_FHEXPIRED, "FHEXPIRED" }, \ 281 { NFS4ERR_FILE_OPEN, "FILE_OPEN" }, \ 282 { NFS4ERR_GRACE, "GRACE" }, \ 283 { NFS4ERR_HASH_ALG_UNSUPP, "HASH_ALG_UNSUPP" }, \ 284 { NFS4ERR_INVAL, "INVAL" }, \ 285 { NFS4ERR_IO, "IO" }, \ 286 { NFS4ERR_ISDIR, "ISDIR" }, \ 287 { NFS4ERR_LAYOUTTRYLATER, "LAYOUTTRYLATER" }, \ 288 { NFS4ERR_LAYOUTUNAVAILABLE, "LAYOUTUNAVAILABLE" }, \ 289 { NFS4ERR_LEASE_MOVED, "LEASE_MOVED" }, \ 290 { NFS4ERR_LOCKED, "LOCKED" }, \ 291 { NFS4ERR_LOCKS_HELD, "LOCKS_HELD" }, \ 292 { NFS4ERR_LOCK_RANGE, "LOCK_RANGE" }, \ 293 { NFS4ERR_MINOR_VERS_MISMATCH, "MINOR_VERS_MISMATCH" }, \ 294 { NFS4ERR_MLINK, "MLINK" }, \ 295 { NFS4ERR_MOVED, "MOVED" }, \ 296 { NFS4ERR_NAMETOOLONG, "NAMETOOLONG" }, \ 297 { NFS4ERR_NOENT, "NOENT" }, \ 298 { NFS4ERR_NOFILEHANDLE, "NOFILEHANDLE" }, \ 299 { NFS4ERR_NOMATCHING_LAYOUT, "NOMATCHING_LAYOUT" }, \ 300 { NFS4ERR_NOSPC, "NOSPC" }, \ 301 { NFS4ERR_NOTDIR, "NOTDIR" }, \ 302 { NFS4ERR_NOTEMPTY, "NOTEMPTY" }, \ 303 { NFS4ERR_NOTSUPP, "NOTSUPP" }, \ 304 { NFS4ERR_NOT_ONLY_OP, "NOT_ONLY_OP" }, \ 305 { NFS4ERR_NOT_SAME, "NOT_SAME" }, \ 306 { NFS4ERR_NO_GRACE, "NO_GRACE" }, \ 307 { NFS4ERR_NXIO, "NXIO" }, \ 308 { NFS4ERR_OLD_STATEID, "OLD_STATEID" }, \ 309 { NFS4ERR_OPENMODE, "OPENMODE" }, \ 310 { NFS4ERR_OP_ILLEGAL, "OP_ILLEGAL" }, \ 311 { NFS4ERR_OP_NOT_IN_SESSION, "OP_NOT_IN_SESSION" }, \ 312 { NFS4ERR_PERM, "PERM" }, \ 313 { NFS4ERR_PNFS_IO_HOLE, "PNFS_IO_HOLE" }, \ 314 { NFS4ERR_PNFS_NO_LAYOUT, "PNFS_NO_LAYOUT" }, \ 315 { NFS4ERR_RECALLCONFLICT, "RECALLCONFLICT" }, \ 316 { NFS4ERR_RECLAIM_BAD, "RECLAIM_BAD" }, \ 317 { NFS4ERR_RECLAIM_CONFLICT, "RECLAIM_CONFLICT" }, \ 318 { NFS4ERR_REJECT_DELEG, "REJECT_DELEG" }, \ 319 { NFS4ERR_REP_TOO_BIG, "REP_TOO_BIG" }, \ 320 { NFS4ERR_REP_TOO_BIG_TO_CACHE, "REP_TOO_BIG_TO_CACHE" }, \ 321 { NFS4ERR_REQ_TOO_BIG, "REQ_TOO_BIG" }, \ 322 { NFS4ERR_RESOURCE, "RESOURCE" }, \ 323 { NFS4ERR_RESTOREFH, "RESTOREFH" }, \ 324 { NFS4ERR_RETRY_UNCACHED_REP, "RETRY_UNCACHED_REP" }, \ 325 { NFS4ERR_RETURNCONFLICT, "RETURNCONFLICT" }, \ 326 { NFS4ERR_ROFS, "ROFS" }, \ 327 { NFS4ERR_SAME, "SAME" }, \ 328 { NFS4ERR_SHARE_DENIED, "SHARE_DENIED" }, \ 329 { NFS4ERR_SEQUENCE_POS, "SEQUENCE_POS" }, \ 330 { NFS4ERR_SEQ_FALSE_RETRY, "SEQ_FALSE_RETRY" }, \ 331 { NFS4ERR_SEQ_MISORDERED, "SEQ_MISORDERED" }, \ 332 { NFS4ERR_SERVERFAULT, "SERVERFAULT" }, \ 333 { NFS4ERR_STALE, "STALE" }, \ 334 { NFS4ERR_STALE_CLIENTID, "STALE_CLIENTID" }, \ 335 { NFS4ERR_STALE_STATEID, "STALE_STATEID" }, \ 336 { NFS4ERR_SYMLINK, "SYMLINK" }, \ 337 { NFS4ERR_TOOSMALL, "TOOSMALL" }, \ 338 { NFS4ERR_TOO_MANY_OPS, "TOO_MANY_OPS" }, \ 339 { NFS4ERR_UNKNOWN_LAYOUTTYPE, "UNKNOWN_LAYOUTTYPE" }, \ 340 { NFS4ERR_UNSAFE_COMPOUND, "UNSAFE_COMPOUND" }, \ 341 { NFS4ERR_WRONGSEC, "WRONGSEC" }, \ 342 { NFS4ERR_WRONG_CRED, "WRONG_CRED" }, \ 343 { NFS4ERR_WRONG_TYPE, "WRONG_TYPE" }, \ 344 { NFS4ERR_XDEV, "XDEV" }, \ 345 /* ***** Internal to Linux NFS client ***** */ \ 346 { NFS4ERR_RESET_TO_MDS, "RESET_TO_MDS" }, \ 347 { NFS4ERR_RESET_TO_PNFS, "RESET_TO_PNFS" }) 348 349 #define show_nfs4_verifier(x) \ 350 __print_hex_str(x, NFS4_VERIFIER_SIZE) 351 352 TRACE_DEFINE_ENUM(IOMODE_READ); 353 TRACE_DEFINE_ENUM(IOMODE_RW); 354 TRACE_DEFINE_ENUM(IOMODE_ANY); 355 356 #define show_pnfs_layout_iomode(x) \ 357 __print_symbolic(x, \ 358 { IOMODE_READ, "READ" }, \ 359 { IOMODE_RW, "RW" }, \ 360 { IOMODE_ANY, "ANY" }) 361 362 #define show_rca_mask(x) \ 363 __print_flags(x, "|", \ 364 { BIT(RCA4_TYPE_MASK_RDATA_DLG), "RDATA_DLG" }, \ 365 { BIT(RCA4_TYPE_MASK_WDATA_DLG), "WDATA_DLG" }, \ 366 { BIT(RCA4_TYPE_MASK_DIR_DLG), "DIR_DLG" }, \ 367 { BIT(RCA4_TYPE_MASK_FILE_LAYOUT), "FILE_LAYOUT" }, \ 368 { BIT(RCA4_TYPE_MASK_BLK_LAYOUT), "BLK_LAYOUT" }, \ 369 { BIT(RCA4_TYPE_MASK_OBJ_LAYOUT_MIN), "OBJ_LAYOUT_MIN" }, \ 370 { BIT(RCA4_TYPE_MASK_OBJ_LAYOUT_MAX), "OBJ_LAYOUT_MAX" }, \ 371 { BIT(RCA4_TYPE_MASK_OTHER_LAYOUT_MIN), "OTHER_LAYOUT_MIN" }, \ 372 { BIT(RCA4_TYPE_MASK_OTHER_LAYOUT_MAX), "OTHER_LAYOUT_MAX" }) 373 374 #define show_nfs4_seq4_status(x) \ 375 __print_flags(x, "|", \ 376 { SEQ4_STATUS_CB_PATH_DOWN, "CB_PATH_DOWN" }, \ 377 { SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING, "CB_GSS_CONTEXTS_EXPIRING" }, \ 378 { SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED, "CB_GSS_CONTEXTS_EXPIRED" }, \ 379 { SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED, "EXPIRED_ALL_STATE_REVOKED" }, \ 380 { SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED, "EXPIRED_SOME_STATE_REVOKED" }, \ 381 { SEQ4_STATUS_ADMIN_STATE_REVOKED, "ADMIN_STATE_REVOKED" }, \ 382 { SEQ4_STATUS_RECALLABLE_STATE_REVOKED, "RECALLABLE_STATE_REVOKED" }, \ 383 { SEQ4_STATUS_LEASE_MOVED, "LEASE_MOVED" }, \ 384 { SEQ4_STATUS_RESTART_RECLAIM_NEEDED, "RESTART_RECLAIM_NEEDED" }, \ 385 { SEQ4_STATUS_CB_PATH_DOWN_SESSION, "CB_PATH_DOWN_SESSION" }, \ 386 { SEQ4_STATUS_BACKCHANNEL_FAULT, "BACKCHANNEL_FAULT" }) 387 388 TRACE_DEFINE_ENUM(OP_CB_GETATTR); 389 TRACE_DEFINE_ENUM(OP_CB_RECALL); 390 TRACE_DEFINE_ENUM(OP_CB_LAYOUTRECALL); 391 TRACE_DEFINE_ENUM(OP_CB_NOTIFY); 392 TRACE_DEFINE_ENUM(OP_CB_PUSH_DELEG); 393 TRACE_DEFINE_ENUM(OP_CB_RECALL_ANY); 394 TRACE_DEFINE_ENUM(OP_CB_RECALLABLE_OBJ_AVAIL); 395 TRACE_DEFINE_ENUM(OP_CB_RECALL_SLOT); 396 TRACE_DEFINE_ENUM(OP_CB_SEQUENCE); 397 TRACE_DEFINE_ENUM(OP_CB_WANTS_CANCELLED); 398 TRACE_DEFINE_ENUM(OP_CB_NOTIFY_LOCK); 399 TRACE_DEFINE_ENUM(OP_CB_NOTIFY_DEVICEID); 400 TRACE_DEFINE_ENUM(OP_CB_OFFLOAD); 401 TRACE_DEFINE_ENUM(OP_CB_ILLEGAL); 402 403 #define show_nfs4_cb_op(x) \ 404 __print_symbolic(x, \ 405 { 0, "CB_NULL" }, \ 406 { 1, "CB_COMPOUND" }, \ 407 { OP_CB_GETATTR, "CB_GETATTR" }, \ 408 { OP_CB_RECALL, "CB_RECALL" }, \ 409 { OP_CB_LAYOUTRECALL, "CB_LAYOUTRECALL" }, \ 410 { OP_CB_NOTIFY, "CB_NOTIFY" }, \ 411 { OP_CB_PUSH_DELEG, "CB_PUSH_DELEG" }, \ 412 { OP_CB_RECALL_ANY, "CB_RECALL_ANY" }, \ 413 { OP_CB_RECALLABLE_OBJ_AVAIL, "CB_RECALLABLE_OBJ_AVAIL" }, \ 414 { OP_CB_RECALL_SLOT, "CB_RECALL_SLOT" }, \ 415 { OP_CB_SEQUENCE, "CB_SEQUENCE" }, \ 416 { OP_CB_WANTS_CANCELLED, "CB_WANTS_CANCELLED" }, \ 417 { OP_CB_NOTIFY_LOCK, "CB_NOTIFY_LOCK" }, \ 418 { OP_CB_NOTIFY_DEVICEID, "CB_NOTIFY_DEVICEID" }, \ 419 { OP_CB_OFFLOAD, "CB_OFFLOAD" }, \ 420 { OP_CB_ILLEGAL, "CB_ILLEGAL" }) 421
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.