NFS4 Operation Errors

Parent Previous Next

NFS4: Operation Errors

Scan Type: Errors, Severity: High

Column value nfs.opcode: operation number

Column value nfs.nfsstat4: returned result  






Network File System (NFS) Version 4 Protocol


https://www.rfc-editor.org/rfc/rfc7530


For the NFSv4 RPC program, there are two traditional RPC procedures: NULL and COMPOUND.  All other functionality is defined as a set of operations, and these operations are defined in normal XDR/RPC syntax and semantics.  However, these operations are encapsulated within the COMPOUND procedure.  This requires that the client combine one or more of the NFSv4 operations into a single request.



NFSv4 Procedures

Procedure 0: NULL - No Operation

Procedure 1: COMPOUND - COMPOUND Operations


NFSv4 Operations

Operation 3: ACCESS - Check Access Rights

Operation 4: CLOSE - Close File

Operation 5: COMMIT - Commit Cached Data

Operation 6: CREATE - Create a Non-regular File Object

Operation 7: DELEGPURGE - Purge Delegations Awaiting Recovery

Operation 8: DELEGRETURN - Return Delegation

Operation 9: GETATTR - Get Attributes

Operation 10: GETFH - Get Current Filehandle

Operation 11: LINK - Create Link to a File

Operation 12: LOCK - Create Lock

Operation 13: LOCKT - Test for Lock

Operation 14: LOCKU - Unlock File

Operation 15: LOOKUP - Look Up Filename

Operation 16: LOOKUPP - Look Up Parent Directory

Operation 17: NVERIFY - Verify Difference in Attributes

Operation 18: OPEN - Open a Regular File

Operation 19: OPENATTR - Open Named Attribute Directory

Operation 20: OPEN_CONFIRM - Confirm Open

Operation 21: OPEN_DOWNGRADE - Reduce Open File Access

Operation 22: PUTFH - Set Current Filehandle

Operation 23: PUTPUBFH - Set Public Filehandle

Operation 24: PUTROOTFH - Set Root Filehandle

Operation 25: READ - Read from File

Operation 26: READDIR - Read Directory

Operation 27: READLINK - Read Symbolic Link

Operation 28: REMOVE - Remove File System Object

Operation 29: RENAME - Rename Directory Entry

Operation 30: RENEW - Renew a Lease

Operation 31: RESTOREFH - Restore Saved Filehandle

Operation 32: SAVEFH - Save Current Filehandle

Operation 33: SECINFO - Obtain Available Security

Operation 34: SETATTR - Set Attributes

Operation 35: SETCLIENTID - Negotiate Client ID

Operation 36: SETCLIENTID_CONFIRM - Confirm Client ID

Operation 37: VERIFY - Verify Same Attributes

Operation 38: WRITE - Write to File

Operation 39: RELEASE_LOCKOWNER - Release Lock-Owner State

Operation 10044: ILLEGAL - Illegal Operation


Error Values


NFS error numbers are assigned to failed operations within a COMPOUND or CB_COMPOUND request.  A COMPOUND request contains a number of NFS operations that have their results encoded in sequence in a COMPOUND reply. The results of successful operations will consist of an NFS4_OK status followed by the encoded results of the operation.  If an NFS operation fails, an error status will be entered in the reply, and the COMPOUND request will be terminated.


Error Definitions


      +-----------------------------+--------+-------------------+

      | Error                       | Number | Description       |

      +-----------------------------+--------+-------------------+

      | NFS4_OK                      | 0      | Section 13.1.3.1  |

      | NFS4ERR_ACCESS               | 13     | Section 13.1.6.1  |

      | NFS4ERR_ADMIN_REVOKED       | 10047  | Section 13.1.5.1  |

      | NFS4ERR_ATTRNOTSUPP         | 10032  | Section 13.1.11.1 |

      | NFS4ERR_BADCHAR             | 10040  | Section 13.1.7.1  |

      | NFS4ERR_BADHANDLE           | 10001  | Section 13.1.2.1  |

      | NFS4ERR_BADNAME             | 10041  | Section 13.1.7.2  |

      | NFS4ERR_BADOWNER            | 10039  | Section 13.1.11.2 |

      | NFS4ERR_BADTYPE             | 10007  | Section 13.1.4.1  |

      | NFS4ERR_BADXDR              | 10036  | Section 13.1.1.1  |

      | NFS4ERR_BAD_COOKIE          | 10003  | Section 13.1.1.2  |

      | NFS4ERR_BAD_RANGE           | 10042  | Section 13.1.8.1  |

      | NFS4ERR_BAD_SEQID           | 10026  | Section 13.1.8.2  |

      | NFS4ERR_BAD_STATEID         | 10025  | Section 13.1.5.2  |

      | NFS4ERR_CB_PATH_DOWN        | 10048  | Section 13.1.12.1 |

      | NFS4ERR_CLID_INUSE          | 10017  | Section 13.1.10.1 |

      | NFS4ERR_DEADLOCK            | 10045  | Section 13.1.8.3  |

      | NFS4ERR_DELAY               | 10008  | Section 13.1.1.3  |

      | NFS4ERR_DENIED              | 10010  | Section 13.1.8.4  |

      | NFS4ERR_DQUOT               | 69     | Section 13.1.4.2  |

      | NFS4ERR_EXIST               | 17     | Section 13.1.4.3  |

      | NFS4ERR_EXPIRED             | 10011  | Section 13.1.5.3  |

      | NFS4ERR_FBIG                | 27     | Section 13.1.4.4  |

      | NFS4ERR_FHEXPIRED           | 10014  | Section 13.1.2.2  |

      | NFS4ERR_FILE_OPEN           | 10046  | Section 13.1.4.5  |

      | NFS4ERR_GRACE               | 10013  | Section 13.1.9.1  |

      | NFS4ERR_INVAL               | 22     | Section 13.1.1.4  |

      | NFS4ERR_IO                  | 5      | Section 13.1.4.6  |

      | NFS4ERR_ISDIR               | 21     | Section 13.1.2.3  |

      | NFS4ERR_LEASE_MOVED         | 10031  | Section 13.1.5.4  |

      | NFS4ERR_LOCKED              | 10012  | Section 13.1.8.5  |

      | NFS4ERR_LOCKS_HELD          | 10037  | Section 13.1.8.6  |

      | NFS4ERR_LOCK_NOTSUPP        | 10043  | Section 13.1.8.7  |

      | NFS4ERR_LOCK_RANGE          | 10028  | Section 13.1.8.8  |

      | NFS4ERR_MINOR_VERS_MISMATCH | 10021  | Section 13.1.3.2  |

      | NFS4ERR_MLINK               | 31     | Section 13.1.4.7  |

      | NFS4ERR_MOVED               | 10019  | Section 13.1.2.4  |

      | NFS4ERR_NAMETOOLONG         | 63     | Section 13.1.7.3  |

      | NFS4ERR_NOENT               | 2      | Section 13.1.4.8  |

      | NFS4ERR_NOFILEHANDLE        | 10020  | Section 13.1.2.5  |

      | NFS4ERR_NOSPC               | 28     | Section 13.1.4.9  |

      | NFS4ERR_NOTDIR              | 20     | Section 13.1.2.6  |

      | NFS4ERR_NOTEMPTY            | 66     | Section 13.1.4.10 |

      | NFS4ERR_NOTSUPP             | 10004  | Section 13.1.1.5  |

      | NFS4ERR_NOT_SAME            | 10027  | Section 13.1.11.3 |

      | NFS4ERR_NO_GRACE            | 10033  | Section 13.1.9.2  |

      | NFS4ERR_NXIO                | 6      | Section 13.1.4.11 |

      | NFS4ERR_OLD_STATEID         | 10024  | Section 13.1.5.5  |

      | NFS4ERR_OPENMODE            | 10038  | Section 13.1.8.9  |

      | NFS4ERR_OP_ILLEGAL          | 10044  | Section 13.1.3.3  |

      | NFS4ERR_PERM                | 1      | Section 13.1.6.2  |

      | NFS4ERR_RECLAIM_BAD         | 10034  | Section 13.1.9.3  |

      | NFS4ERR_RECLAIM_CONFLICT    | 10035  | Section 13.1.9.4  |

      | NFS4ERR_RESOURCE            | 10018  | Section 13.1.3.4  |

      | NFS4ERR_RESTOREFH           | 10030  | Section 13.1.4.12 |

      | NFS4ERR_ROFS                | 30     | Section 13.1.4.13 |

      | NFS4ERR_SAME                | 10009  | Section 13.1.11.4 |

      | NFS4ERR_SERVERFAULT         | 10006  | Section 13.1.1.6  |

      | NFS4ERR_SHARE_DENIED        | 10015  | Section 13.1.8.10 |

      | NFS4ERR_STALE               | 70     | Section 13.1.2.7  |

      | NFS4ERR_STALE_CLIENTID      | 10022  | Section 13.1.10.2 |

      | NFS4ERR_STALE_STATEID       | 10023  | Section 13.1.5.6  |

      | NFS4ERR_SYMLINK             | 10029  | Section 13.1.2.8  |

      | NFS4ERR_TOOSMALL            | 10005  | Section 13.1.1.7  |

      | NFS4ERR_WRONGSEC            | 10016  | Section 13.1.6.3  |

      | NFS4ERR_XDEV                | 18     | Section 13.1.4.14 |

      +-----------------------------+--------+-------------------+




Network File System (NFS) Version 4 Minor Version 1 Protocol

https://www.rfc-editor.org/rfc/rfc8881


NFSv4.1 Procedures

Procedure 0: NULL - No Operation

Procedure 1: COMPOUND - COMPOUND Operations


NFSv4.1 Operations

Operation 3: ACCESS - Check Access Rights

Operation 4: CLOSE - Close File

Operation 5: COMMIT - Commit Cached Data

Operation 6: CREATE - Create a Non-Regular File Object

Operation 7: DELEGPURGE - Purge Delegations Awaiting Recovery

Operation 8: DELEGRETURN - Return Delegation

Operation 9: GETATTR - Get Attributes

Operation 10: GETFH - Get Current Filehandle

Operation 11: LINK - Create Link to a File

Operation 12: LOCK - Create Lock

Operation 13: LOCKT - Test for Lock

Operation 14: LOCKU - Unlock File

Operation 15: LOOKUP - Lookup Filename

Operation 16: LOOKUPP - Lookup Parent Directory

Operation 17: NVERIFY - Verify Difference in Attributes

Operation 18: OPEN - Open a Regular File

Operation 19: OPENATTR - Open Named Attribute Directory

Operation 21: OPEN_DOWNGRADE - Reduce Open File Access

Operation 22: PUTFH - Set Current Filehandle

Operation 23: PUTPUBFH - Set Public Filehandle

Operation 24: PUTROOTFH - Set Root Filehandle

Operation 25: READ - Read from File

Operation 26: READDIR - Read Directory

Operation 27: READLINK - Read Symbolic Link

Operation 28: REMOVE - Remove File System Object

Operation 29: RENAME - Rename Directory Entry

Operation 31: RESTOREFH - Restore Saved Filehandle

Operation 32: SAVEFH - Save Current Filehandle

Operation 33: SECINFO - Obtain Available Security

Operation 34: SETATTR - Set Attributes

Operation 37: VERIFY - Verify Same Attributes

Operation 38: WRITE - Write to File

Operation 40: BACKCHANNEL_CTL - Backchannel Control

Operation 41: BIND_CONN_TO_SESSION - Associate Connection with Session

Operation 42: EXCHANGE_ID - Instantiate Client ID

Operation 43: CREATE_SESSION - Create New Session and Confirm Client ID

Operation 44: DESTROY_SESSION - Destroy a Session

Operation 45: FREE_STATEID - Free Stateid with No Locks

Operation 46: GET_DIR_DELEGATION - Get a Directory Delegation

Operation 47: GETDEVICEINFO - Get Device Information

Operation 48: GETDEVICELIST - Get All Device Mappings for a File System

Operation 49: LAYOUTCOMMIT - Commit Writes Made Using a Layout

Operation 50: LAYOUTGET - Get Layout Information

Operation 51: LAYOUTRETURN - Release Layout Information

Operation 52: SECINFO_NO_NAME - Get Security on Unnamed Object

Operation 53: SEQUENCE - Supply Per-Procedure Sequencing and Control

Operation 54: SET_SSV - Update SSV for a Client ID

Operation 55: TEST_STATEID - Test Stateids for Validity

Operation 56: WANT_DELEGATION - Request Delegation

Operation 57: DESTROY_CLIENTID - Destroy a Client ID

Operation 58: RECLAIM_COMPLETE - Indicates Reclaims Finished

Operation 10044: ILLEGAL - Illegal Operation


Error Definitions


Error        Number        Description

NFS4_OK        0        Section 15.1.3.1

NFS4ERR_ACCESS        13        Section 15.1.6.1

NFS4ERR_ATTRNOTSUPP        10032        Section 15.1.15.1

NFS4ERR_ADMIN_REVOKED        10047        Section 15.1.5.1

NFS4ERR_BACK_CHAN_BUSY        10057        Section 15.1.12.1

NFS4ERR_BADCHAR        10040        Section 15.1.7.1

NFS4ERR_BADHANDLE        10001        Section 15.1.2.1

NFS4ERR_BADIOMODE        10049        Section 15.1.10.1

NFS4ERR_BADLAYOUT        10050        Section 15.1.10.2

NFS4ERR_BADNAME        10041        Section 15.1.7.2

NFS4ERR_BADOWNER        10039        Section 15.1.15.2

NFS4ERR_BADSESSION        10052        Section 15.1.11.1

NFS4ERR_BADSLOT        10053        Section 15.1.11.2

NFS4ERR_BADTYPE        10007        Section 15.1.4.1

NFS4ERR_BADXDR        10036        Section 15.1.1.1

NFS4ERR_BAD_COOKIE        10003        Section 15.1.1.2

NFS4ERR_BAD_HIGH_SLOT        10077        Section 15.1.11.3

NFS4ERR_BAD_RANGE        10042        Section 15.1.8.1

NFS4ERR_BAD_SEQID        10026        Section 15.1.16.1

NFS4ERR_BAD_SESSION_DIGEST        10051        Section 15.1.12.2

NFS4ERR_BAD_STATEID        10025        Section 15.1.5.2

NFS4ERR_CB_PATH_DOWN        10048        Section 15.1.11.4

NFS4ERR_CLID_INUSE        10017        Section 15.1.13.2

NFS4ERR_CLIENTID_BUSY        10074        Section 15.1.13.1

NFS4ERR_COMPLETE_ALREADY        10054        Section 15.1.9.1

NFS4ERR_CONN_NOT_BOUND_TO_SESSION        10055        Section 15.1.11.6

NFS4ERR_DEADLOCK        10045        Section 15.1.8.2

NFS4ERR_DEADSESSION        10078        Section 15.1.11.5

NFS4ERR_DELAY        10008        Section 15.1.1.3

NFS4ERR_DELEG_ALREADY_WANTED        10056        Section 15.1.14.1

NFS4ERR_DELEG_REVOKED        10087        Section 15.1.5.3

NFS4ERR_DENIED        10010        Section 15.1.8.3

NFS4ERR_DIRDELEG_UNAVAIL        10084        Section 15.1.14.2

NFS4ERR_DQUOT        69        Section 15.1.4.2

NFS4ERR_ENCR_ALG_UNSUPP        10079        Section 15.1.13.3

NFS4ERR_EXIST        17        Section 15.1.4.3

NFS4ERR_EXPIRED        10011        Section 15.1.5.4

NFS4ERR_FBIG        27        Section 15.1.4.4

NFS4ERR_FHEXPIRED        10014        Section 15.1.2.2

NFS4ERR_FILE_OPEN        10046        Section 15.1.4.5

NFS4ERR_GRACE        10013        Section 15.1.9.2

NFS4ERR_HASH_ALG_UNSUPP        10072        Section 15.1.13.4

NFS4ERR_INVAL        22        Section 15.1.1.4

NFS4ERR_IO        5        Section 15.1.4.6

NFS4ERR_ISDIR        21        Section 15.1.2.3

NFS4ERR_LAYOUTTRYLATER        10058        Section 15.1.10.3

NFS4ERR_LAYOUTUNAVAILABLE        10059        Section 15.1.10.4

NFS4ERR_LEASE_MOVED        10031        Section 15.1.16.2

NFS4ERR_LOCKED        10012        Section 15.1.8.4

NFS4ERR_LOCKS_HELD        10037        Section 15.1.8.5

NFS4ERR_LOCK_NOTSUPP        10043        Section 15.1.8.6

NFS4ERR_LOCK_RANGE        10028        Section 15.1.8.7

NFS4ERR_MINOR_VERS_MISMATCH        10021        Section 15.1.3.2

NFS4ERR_MLINK        31        Section 15.1.4.7

NFS4ERR_MOVED        10019        Section 15.1.2.4

NFS4ERR_NAMETOOLONG        63        Section 15.1.7.3

NFS4ERR_NOENT        2        Section 15.1.4.8

NFS4ERR_NOFILEHANDLE        10020        Section 15.1.2.5

NFS4ERR_NOMATCHING_LAYOUT        10060        Section 15.1.10.5

NFS4ERR_NOSPC        28        Section 15.1.4.9

NFS4ERR_NOTDIR        20        Section 15.1.2.6

NFS4ERR_NOTEMPTY        66        Section 15.1.4.10

NFS4ERR_NOTSUPP        10004        Section 15.1.1.5

NFS4ERR_NOT_ONLY_OP        10081        Section 15.1.3.3

NFS4ERR_NOT_SAME        10027        Section 15.1.15.3

NFS4ERR_NO_GRACE        10033        Section 15.1.9.3

NFS4ERR_NXIO        6        Section 15.1.16.3

NFS4ERR_OLD_STATEID        10024        Section 15.1.5.5

NFS4ERR_OPENMODE        10038        Section 15.1.8.8

NFS4ERR_OP_ILLEGAL        10044        Section 15.1.3.4

NFS4ERR_OP_NOT_IN_SESSION        10071        Section 15.1.3.5

NFS4ERR_PERM        1        Section 15.1.6.2

NFS4ERR_PNFS_IO_HOLE        10075        Section 15.1.10.6

NFS4ERR_PNFS_NO_LAYOUT        10080        Section 15.1.10.7

NFS4ERR_RECALLCONFLICT        10061        Section 15.1.14.3

NFS4ERR_RECLAIM_BAD        10034        Section 15.1.9.4

NFS4ERR_RECLAIM_CONFLICT        10035        Section 15.1.9.5

NFS4ERR_REJECT_DELEG        10085        Section 15.1.14.4

NFS4ERR_REP_TOO_BIG        10066        Section 15.1.3.6

NFS4ERR_REP_TOO_BIG_TO_CACHE        10067        Section 15.1.3.7

NFS4ERR_REQ_TOO_BIG        10065        Section 15.1.3.8

NFS4ERR_RESTOREFH        10030        Section 15.1.16.4

NFS4ERR_RETRY_UNCACHED_REP        10068        Section 15.1.3.9

NFS4ERR_RETURNCONFLICT        10086        Section 15.1.10.8

NFS4ERR_ROFS        30        Section 15.1.4.11

NFS4ERR_SAME        10009        Section 15.1.15.4

NFS4ERR_SHARE_DENIED        10015        Section 15.1.8.9

NFS4ERR_SEQUENCE_POS        10064        Section 15.1.3.10

NFS4ERR_SEQ_FALSE_RETRY        10076        Section 15.1.11.7

NFS4ERR_SEQ_MISORDERED        10063        Section 15.1.11.8

NFS4ERR_SERVERFAULT        10006        Section 15.1.1.6

NFS4ERR_STALE        70        Section 15.1.2.7

NFS4ERR_STALE_CLIENTID        10022        Section 15.1.13.5

NFS4ERR_STALE_STATEID        10023        Section 15.1.16.5

NFS4ERR_SYMLINK        10029        Section 15.1.2.8

NFS4ERR_TOOSMALL        10005        Section 15.1.1.7

NFS4ERR_TOO_MANY_OPS        10070        Section 15.1.3.11

NFS4ERR_UNKNOWN_LAYOUTTYPE        10062        Section 15.1.10.9

NFS4ERR_UNSAFE_COMPOUND        10069        Section 15.1.3.12

NFS4ERR_WRONGSEC        10016        Section 15.1.6.3

NFS4ERR_WRONG_CRED        10082        Section 15.1.6.4

NFS4ERR_WRONG_TYPE        10083        Section 15.1.2.9

NFS4ERR_XDEV        18        Section 15.1.4.12

www.traceinside.com