Documentation ¶
Index ¶
- type CreateCall
- type CreateReply
- type DirOpArgs
- type DirOpRes
- type Entry
- type Entry2
- type Fattr
- type GetAttrCall
- type GetAttrReply
- type LinkCall
- type LinkReply
- type LookUpCall
- type LookUpReply
- type MkdirCall
- type MkdirReply
- type Nfs2Ftype
- type Nfs2Status
- type Procedure
- type ReadCall
- type ReadDirCall
- type ReadDirReply
- type ReadLinkCall
- type ReadLinkReply
- type ReadReply
- type RemoveCall
- type RemoveReply
- type RenameCall
- type RenameReply
- type RmdirCall
- type RmdirReply
- type Sattr
- type SetAttrCall
- type SetAttrReply
- type StatFsCall
- type StatFsReply
- type SymlinkCall
- type SymlinkReply
- type TimeVal
- type WriteCall
- type WriteReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCall ¶
func (*CreateCall) String ¶
func (self *CreateCall) String() string
type CreateReply ¶
type CreateReply struct { Nfs2Status DirOpRes }
func (*CreateReply) String ¶
func (self *CreateReply) String() string
type DirOpArgs ¶
func (DirOpArgs) FileNameStr ¶
type Fattr ¶
type GetAttrCall ¶
type GetAttrCall struct {
FileHandle []byte `xdr:"limit=32"`
}
func (*GetAttrCall) String ¶
func (self *GetAttrCall) String() string
type GetAttrReply ¶
type GetAttrReply struct { Nfs2Status Fattr }
func (*GetAttrReply) String ¶
func (self *GetAttrReply) String() string
type LinkReply ¶
type LinkReply struct {
Nfs2Status
}
type LookUpCall ¶
type LookUpCall struct {
DirOpArgs
}
func (*LookUpCall) String ¶
func (self *LookUpCall) String() string
type LookUpReply ¶
type LookUpReply struct { Nfs2Status DirOpRes }
func (*LookUpReply) String ¶
func (self *LookUpReply) String() string
type MkdirReply ¶
type MkdirReply struct { Nfs2Status DirOpRes }
func (*MkdirReply) String ¶
func (self *MkdirReply) String() string
type Nfs2Status ¶
type Nfs2Status uint32
const ( NFS2StatusOK Nfs2Status = iota NFS2StatusPerm NFS2StatusNoEnt NFS2StatusIO NFS2StatusNXIO NFS2StatusAccess NFS2StatusExist NFS2StatusNoDev NFS2StatusNotDir NFS2StatusIsDir NFS2StatusFBig NFS2StatusNoSPC NFS2StatusROFS NFS2StatusTooLong NFS2StatusNotEmpty NFS2StatusDQuot NFS2StatusStale NFS2StatusWFlush )
func (Nfs2Status) String ¶
func (s Nfs2Status) String() string
type Procedure ¶
type Procedure uint32
Procedure is the valid RPC calls for the nfs service.
const ( NFS2ProcedureNull Procedure = iota NFS2ProcedureGetAttr NFS2ProcedureSetAttr NFS2ProcedureRoot // 无用 NFS2ProcedureLookUp NFS2ProcedureReadlink NFS2ProcedureRead NFS2ProcedureWriteCache // 无用 NFS2ProcedureWrite NFS2ProcedureCreate NFS2ProcedureRemove NFS2ProcedureRename NFS2ProcedureLink NFS2ProcedureSymlink NFS2ProcedureMkDir NFS2ProcedureRmDir NFS2ProcedureReadDir NFS2ProcedureStatFs )
NfsProcedure Codes
type ReadCall ¶
type ReadDirCall ¶
func (*ReadDirCall) String ¶
func (self *ReadDirCall) String() string
type ReadDirReply ¶
type ReadDirReply struct { Nfs2Status Entries []*Entry }
func (*ReadDirReply) String ¶
func (self *ReadDirReply) String() string
type ReadLinkCall ¶
type ReadLinkCall struct {
FileHandle []byte `xdr:"limit=32"`
}
func (*ReadLinkCall) String ¶
func (self *ReadLinkCall) String() string
type ReadLinkReply ¶
type ReadLinkReply struct { Nfs2Status FilePath string }
func (*ReadLinkReply) String ¶
func (self *ReadLinkReply) String() string
type ReadReply ¶
type ReadReply struct { Nfs2Status Attr Fattr Data []byte }
type RemoveCall ¶
type RemoveCall struct {
DirOpArgs
}
func (*RemoveCall) String ¶
func (self *RemoveCall) String() string
type RemoveReply ¶
type RemoveReply struct {
Nfs2Status
}
func (*RemoveReply) String ¶
func (self *RemoveReply) String() string
type RenameCall ¶
func (*RenameCall) String ¶
func (self *RenameCall) String() string
type RenameReply ¶
type RenameReply struct {
Nfs2Status
}
func (*RenameReply) String ¶
func (self *RenameReply) String() string
type RmdirReply ¶
type RmdirReply struct {
Nfs2Status
}
func (*RmdirReply) String ¶
func (self *RmdirReply) String() string
type Sattr ¶
type SetAttrCall ¶
func (*SetAttrCall) String ¶
func (self *SetAttrCall) String() string
type SetAttrReply ¶
type SetAttrReply struct { Nfs2Status Fattr }
func (*SetAttrReply) String ¶
func (self *SetAttrReply) String() string
type StatFsCall ¶
type StatFsCall struct {
FileHandle []byte `xdr:"limit=32"`
}
func (*StatFsCall) String ¶
func (self *StatFsCall) String() string
type StatFsReply ¶
type StatFsReply struct { Nfs2Status TSize uint32 //用字节表示的最优化的传输尺寸。这是服务器在READ 和 WRITE请求中的 最想要的数据字节数。 BSize uint32 //文件系统用字节表示的块尺寸。. Blocks uint32 //文件系统中 "bsize"块的总数。 BFree uint32 //文件系统中自由的“bsize”块的数目。 BAvail uint32 //无特权用户可用的"bsize"块的数目。 }
func (*StatFsReply) String ¶
func (self *StatFsReply) String() string
type SymlinkCall ¶
func (*SymlinkCall) String ¶
func (self *SymlinkCall) String() string
type SymlinkReply ¶
type SymlinkReply struct {
Nfs2Status
}
func (*SymlinkReply) String ¶
func (self *SymlinkReply) String() string
type WriteCall ¶
type WriteReply ¶
type WriteReply struct { Nfs2Status Attr Fattr }
func (*WriteReply) String ¶
func (self *WriteReply) String() string
Click to show internal directories.
Click to hide internal directories.