You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
nfs spec describes multiple types of states: open, lock, delegation,
etc. The operations that accepts stateis as arguments should validate
them. For example: CLOSE should accept open-stateid, and reject any
other state types. To reduce bookkeeping on the server side, it makes
sense to encode state type into stateid.
Modification:
- introduce one byte (8 bit) stateid types, which gives as possibility
to encode 256 different states.
- encode type into stateid. The stated is constructed by clientid +
counter + type. Only 24 bits of counter is used, which gives 16777216
states that can be used at any moment (should be enough).
- add create{Open,Lock,Layout,Delegation ...}State methods to NFSv4StateHandler
- update codebase to use the appropriate createXxxState methods.
Result:
Better state handling.
Acked-by: Marina Sahakyan
Target: master
0 commit comments