class RPCB(rpchelp.Struct): # rpcb r_prog: int = rpchelp.rpc_field(rpchelp.r_uint) r_vers: int = rpchelp.rpc_field(rpchelp.r_uint) r_netid: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) r_addr: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) r_owner: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class RPCBEntry(rpchelp.Struct): # rpcb_entry r_maddr: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) r_nc_netid: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) r_nc_semantics: int = rpchelp.rpc_field(rpchelp.r_uint) r_nc_protofmly: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) r_nc_proto: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class RPCBsAddrList(rpchelp.LinkedList): # rpcbs_addrlist prog: int = rpchelp.rpc_field(rpchelp.r_uint) vers: int = rpchelp.rpc_field(rpchelp.r_uint) success: int = rpchelp.rpc_field(rpchelp.r_int) failure: int = rpchelp.rpc_field(rpchelp.r_int) netid: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class WRITE3Args(rpchelp.Struct): # WRITE3args file_handle: bytes = rpchelp.rpc_field(NFSFh3) offset: int = rpchelp.rpc_field(Offset3) count: int = rpchelp.rpc_field(Count3) stable: typing.Union[StableHow, int] = rpchelp.rpc_field(StableHow) data: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class RPCBsRmtcallList(rpchelp.LinkedList): # rpcbs_rmtcalllist prog: int = rpchelp.rpc_field(rpchelp.r_uint) vers: int = rpchelp.rpc_field(rpchelp.r_uint) proc: int = rpchelp.rpc_field(rpchelp.r_uint) success: int = rpchelp.rpc_field(rpchelp.r_int) failure: int = rpchelp.rpc_field(rpchelp.r_int) indirect: int = rpchelp.rpc_field(rpchelp.r_int) netid: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
NFSERR_NOTEMPTY = 66 NFSERR_DQUOT = 69 NFSERR_STALE = 70 NFSERR_WFLUSH = 99 NFNON = 0 NFREG = 1 NFDIR = 2 NFBLK = 3 NFCHR = 4 NFLNK = 5 MAXDATA = 8192 MAXPATHLEN = 1024 MAXNAMLEN = 255 COOKIESIZE = 4 FHSIZE = 32 NFSData = rpchelp.Opaque(rpchelp.LengthType.VAR, MAXDATA) class Stat(rpchelp.Enum): # stat NFS_OK = 0 NFSERR_PERM = 1 NFSERR_NOENT = 2 NFSERR_IO = 5 NFSERR_NXIO = 6 NFSERR_ACCES = 13 NFSERR_EXIST = 17 NFSERR_NODEV = 19 NFSERR_NOTDIR = 20 NFSERR_ISDIR = 21 NFSERR_FBIG = 27 NFSERR_NOSPC = 28
class RPCBRmtcallRes(rpchelp.Struct): # rpcb_rmtcallres addr: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None)) results: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class RPCBRmtcallArgs(rpchelp.Struct): # rpcb_rmtcallargs prog: int = rpchelp.rpc_field(rpchelp.r_uint) vers: int = rpchelp.rpc_field(rpchelp.r_uint) proc: int = rpchelp.rpc_field(rpchelp.r_uint) args: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class Netbuf(rpchelp.Struct): # netbuf maxlen: int = rpchelp.rpc_field(rpchelp.r_uint) buf: bytes = rpchelp.rpc_field(rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class AuthsysParms(rpchelp.Struct): # authsys_parms stamp: int = rpchelp.rpc_field(rpchelp.r_uint) machinename: bytes = rpchelp.rpc_field(rpchelp.Opaque(rpchelp.LengthType.VAR, 255)) uid: int = rpchelp.rpc_field(rpchelp.r_uint) gid: int = rpchelp.rpc_field(rpchelp.r_uint) gids: typing.List[int] = rpchelp.rpc_field(rpchelp.Array(rpchelp.r_uint, rpchelp.LengthType.VAR, 16))
class OpaqueAuth(rpchelp.Struct): # opaque_auth flavor: typing.Union[AuthFlavor, int] = rpchelp.rpc_field(AuthFlavor) body: bytes = rpchelp.rpc_field(rpchelp.Opaque(rpchelp.LengthType.VAR, 400))
class CallResult(rpchelp.Struct): # call_result port: int = rpchelp.rpc_field(rpchelp.r_uint) res: bytes = rpchelp.rpc_field(rpchelp.Opaque(rpchelp.LengthType.VAR, None))
class READ3ResOK(rpchelp.Struct): # READ3resok file_attributes: typing.Optional[FAttr3] = rpchelp.rpc_field(PostOpAttr) count: int = rpchelp.rpc_field(Count3) eof: bool = rpchelp.rpc_field(rpchelp.r_bool) data: bytes = rpchelp.rpc_field( rpchelp.Opaque(rpchelp.LengthType.VAR, None))
MNT3ERR_IO = 5 MNT3ERR_ACCES = 13 MNT3ERR_NOTDIR = 20 MNT3ERR_INVAL = 22 MNT3ERR_NAMETOOLONG = 63 MNT3ERR_NOTSUPP = 10004 MNT3ERR_SERVERFAULT = 10006 NFS3_FHSIZE = 64 NFS3_COOKIEVERFSIZE = 8 NFS3_CREATEVERFSIZE = 8 NFS3_WRITEVERFSIZE = 8 Uint64 = rpchelp.r_uhyper Int64 = rpchelp.r_hyper Uint32 = rpchelp.r_uint Int32 = rpchelp.r_int Filename3 = rpchelp.Opaque(rpchelp.LengthType.VAR, None) NFSPath3 = rpchelp.Opaque(rpchelp.LengthType.VAR, None) Fileid3 = Uint64 Cookie3 = Uint64 Cookieverf3 = rpchelp.Opaque(rpchelp.LengthType.FIXED, NFS3_COOKIEVERFSIZE) Createverf3 = rpchelp.Opaque(rpchelp.LengthType.FIXED, NFS3_CREATEVERFSIZE) Writeverf3 = rpchelp.Opaque(rpchelp.LengthType.FIXED, NFS3_WRITEVERFSIZE) Uid3 = Uint32 Gid3 = Uint32 Size3 = Uint64 Offset3 = Uint64 Mode3 = Uint32 Count3 = Uint32 class NFSStat3(rpchelp.Enum): # nfsstat3