NLM4(3)

NAME
packet.nfs.nlm4 - NLMv4 decoding module

CLASSES

  class FREE_ALL4args(baseobj.BaseObj)
struct FREE_ALL4args {
    string name<MAXNAMELEN>;
    int32  state;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class NLM4args(packet.utils.RPCload)
union switch NLM4args (nlm_proc4 procedure) {
    case const.NLMPROC4_NULL:
        void;
    case const.NLMPROC4_TEST:
        TEST4args optest;
    case const.NLMPROC4_LOCK:
        LOCK4args oplock;
    case const.NLMPROC4_CANCEL:
        CANCEL4args opcancel;
    case const.NLMPROC4_UNLOCK:
        UNLOCK4args opunlock;
    case const.NLMPROC4_GRANTED:
        GRANTED4args opgranted;
    case const.NLMPROC4_TEST_MSG:
        TEST_MSG4args optest_msg;
    case const.NLMPROC4_LOCK_MSG:
        LOCK_MSG4args oplock_msg;
    case const.NLMPROC4_CANCEL_MSG:
        CANCEL_MSG4args opcancel_msg;
    case const.NLMPROC4_UNLOCK_MSG:
        UNLOCK_MSG4args opunlock_msg;
    case const.NLMPROC4_GRANTED_MSG:
        GRANTED_MSG4args opgranted_msg;
    case const.NLMPROC4_TEST_RES:
        TEST_RES4args optest_res;
    case const.NLMPROC4_LOCK_RES:
        LOCK_RES4args oplock_res;
    case const.NLMPROC4_CANCEL_RES:
        CANCEL_RES4args opcancel_res;
    case const.NLMPROC4_UNLOCK_RES:
        UNLOCK_RES4args opunlock_res;
    case const.NLMPROC4_GRANTED_RES:
        GRANTED_RES4args opgranted_res;
    case const.NLMPROC4_SHARE:
        SHARE4args opshare;
    case const.NLMPROC4_UNSHARE:
        UNSHARE4args opunshare;
    case const.NLMPROC4_NM_LOCK:
        NM_LOCK4args opnm_lock;
    case const.NLMPROC4_FREE_ALL:
        FREE_ALL4args opfree_all;
};

Methods defined here:
---------------------

__init__(self, unpack, procedure)

  class NLM4res(packet.utils.RPCload)
union switch NLM4res (nlm_proc4 procedure) {
    case const.NLMPROC4_NULL:
        void;
    case const.NLMPROC4_TEST:
        TEST4res optest;
    case const.NLMPROC4_LOCK:
        LOCK4res oplock;
    case const.NLMPROC4_CANCEL:
        CANCEL4res opcancel;
    case const.NLMPROC4_UNLOCK:
        UNLOCK4res opunlock;
    case const.NLMPROC4_GRANTED:
        GRANTED4res opgranted;
    case const.NLMPROC4_TEST_MSG:
        void;
    case const.NLMPROC4_LOCK_MSG:
        void;
    case const.NLMPROC4_CANCEL_MSG:
        void;
    case const.NLMPROC4_UNLOCK_MSG:
        void;
    case const.NLMPROC4_GRANTED_MSG:
        void;
    case const.NLMPROC4_TEST_RES:
        void;
    case const.NLMPROC4_LOCK_RES:
        void;
    case const.NLMPROC4_CANCEL_RES:
        void;
    case const.NLMPROC4_UNLOCK_RES:
        void;
    case const.NLMPROC4_GRANTED_RES:
        void;
    case const.NLMPROC4_SHARE:
        SHARE4res opshare;
    case const.NLMPROC4_UNSHARE:
        UNSHARE4res opunshare;
    case const.NLMPROC4_NM_LOCK:
        NM_LOCK4res opnm_lock;
    case const.NLMPROC4_FREE_ALL:
        void;
};

Methods defined here:
---------------------

__init__(self, unpack, procedure)

  class fsh4_access(packet.utils.Enum)
enum fsh4_access

  class fsh4_mode(packet.utils.Enum)
enum fsh4_mode

  class nfs_bool(packet.utils.Enum)
enum nfs_bool

  class nlm4_cancargs(baseobj.BaseObj)
struct nlm4_cancargs {
    netobj    cookie;
    bool      block;
    bool      exclusive;
    nlm4_lock locker;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_holder(baseobj.BaseObj)
struct nlm4_holder {
    bool   exclusive;
    int32  svid;
    strobj oh;
    uint64 offset;
    uint64 length;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_lock(baseobj.BaseObj)
struct nlm4_lock {
    string owner<LM_MAXSTRLEN>;
    nlm_fh fh;
    strobj oh;
    int32  svid;
    uint64 offset;
    uint64 length;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_lockargs(baseobj.BaseObj)
struct nlm4_lockargs {
    netobj    cookie;
    bool      block;
    bool      exclusive;
    nlm4_lock locker;
    bool      reclaim;    /* used for recovering locks */
    int       state;      /* specify local status monitor state */
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_res(baseobj.BaseObj)
struct nlm4_res {
    netobj     cookie;
    nlm4_stats status;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_share(baseobj.BaseObj)
struct nlm4_share {
    string      owner<LM_MAXSTRLEN>;
    nlm_fh      fh;
    strobj      oh;
    fsh4_mode   mode;
    fsh4_access access;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_shareargs(baseobj.BaseObj)
struct nlm4_shareargs {
    netobj     cookie;
    nlm4_share share;
    bool       reclaim;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_shareres(baseobj.BaseObj)
struct nlm4_shareres {
    netobj     cookie;
    nlm4_stats status;
    int        sequence;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_stats(packet.utils.Enum)
enum nlm4_stats

  class nlm4_testargs(baseobj.BaseObj)
struct nlm4_testargs {
    netobj    cookie;
    bool      exclusive;
    nlm4_lock locker;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_testres(baseobj.BaseObj)
struct nlm4_testres {
    netobj        cookie;
    nlm4_testrply stat;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_testrply(baseobj.BaseObj)
union switch nlm4_testrply (nlm4_stats status) {
    case const.NLM4_DENIED:
        nlm4_holder denied;
    default:
        void;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm4_unlockargs(baseobj.BaseObj)
struct nlm4_unlockargs {
    netobj    cookie;
    nlm4_lock locker;
};

Methods defined here:
---------------------

__init__(self, unpack)

  class nlm_proc4(packet.utils.Enum)
enum nlm_proc4

FUNCTIONS

  netobj(unpack)

  nlm_fh(unpack)

  strobj(unpack)

SEE ALSO
baseobj(3), packet.unpack(3), packet.utils(3)

BUGS
No known bugs.

AUTHOR
Jorge Mora (mora@netapp.com)