nfs

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const NUM_NFS_OPS = 22

Variables

This section is empty.

Functions

func Ls3

func Ls3(dip *inode.Inode, op *fstxn.FsTxn, start nfstypes.Cookie3, dircount, maxcount nfstypes.Count3) nfstypes.Dirlistplus3

func Parallel

func Parallel(nthread int, disksz uint64,
	f func(clnt *NfsClient, dirfh nfstypes.Nfs_fh3) int) int

Run parallel clients executing f(), each in their own directory

func Readdir3

func Readdir3(dip *inode.Inode, op *fstxn.FsTxn,
	start nfstypes.Cookie3, count nfstypes.Count3) nfstypes.Dirlist3

Types

type Nfs

type Nfs struct {

	// support unstable writes
	Unstable bool
	// contains filtered or unexported fields
}

func MakeNfs

func MakeNfs(d disk.Disk) *Nfs

func (*Nfs) Crash

func (nfs *Nfs) Crash()

Terminates shrinker thread immediately

func (*Nfs) MOUNTPROC3_DUMP

func (nfs *Nfs) MOUNTPROC3_DUMP() nfstypes.Mountopt3

func (*Nfs) MOUNTPROC3_EXPORT

func (nfs *Nfs) MOUNTPROC3_EXPORT() nfstypes.Exportsopt3

func (*Nfs) MOUNTPROC3_MNT

func (nfs *Nfs) MOUNTPROC3_MNT(args nfstypes.Dirpath3) nfstypes.Mountres3

func (*Nfs) MOUNTPROC3_NULL

func (nfs *Nfs) MOUNTPROC3_NULL()

func (*Nfs) MOUNTPROC3_UMNT

func (nfs *Nfs) MOUNTPROC3_UMNT(args nfstypes.Dirpath3)

func (*Nfs) MOUNTPROC3_UMNTALL

func (nfs *Nfs) MOUNTPROC3_UMNTALL()

func (*Nfs) NFSPROC3_ACCESS

func (nfs *Nfs) NFSPROC3_ACCESS(args nfstypes.ACCESS3args) nfstypes.ACCESS3res

func (*Nfs) NFSPROC3_COMMIT

func (nfs *Nfs) NFSPROC3_COMMIT(args nfstypes.COMMIT3args) nfstypes.COMMIT3res

RFC: forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.

func (*Nfs) NFSPROC3_CREATE

func (nfs *Nfs) NFSPROC3_CREATE(args nfstypes.CREATE3args) nfstypes.CREATE3res

func (*Nfs) NFSPROC3_FSINFO

func (nfs *Nfs) NFSPROC3_FSINFO(args nfstypes.FSINFO3args) nfstypes.FSINFO3res

func (*Nfs) NFSPROC3_FSSTAT

func (nfs *Nfs) NFSPROC3_FSSTAT(args nfstypes.FSSTAT3args) nfstypes.FSSTAT3res

func (*Nfs) NFSPROC3_GETATTR

func (nfs *Nfs) NFSPROC3_GETATTR(args nfstypes.GETATTR3args) nfstypes.GETATTR3res
func (nfs *Nfs) NFSPROC3_LINK(args nfstypes.LINK3args) nfstypes.LINK3res

func (*Nfs) NFSPROC3_LOOKUP

func (nfs *Nfs) NFSPROC3_LOOKUP(args nfstypes.LOOKUP3args) nfstypes.LOOKUP3res

Lookup must lock child inode to find gen number

func (*Nfs) NFSPROC3_MKDIR

func (nfs *Nfs) NFSPROC3_MKDIR(args nfstypes.MKDIR3args) nfstypes.MKDIR3res

func (*Nfs) NFSPROC3_MKNOD

func (nfs *Nfs) NFSPROC3_MKNOD(args nfstypes.MKNOD3args) nfstypes.MKNOD3res

func (*Nfs) NFSPROC3_NULL

func (nfs *Nfs) NFSPROC3_NULL()

func (*Nfs) NFSPROC3_PATHCONF

func (nfs *Nfs) NFSPROC3_PATHCONF(args nfstypes.PATHCONF3args) nfstypes.PATHCONF3res

func (*Nfs) NFSPROC3_READ

func (nfs *Nfs) NFSPROC3_READ(args nfstypes.READ3args) nfstypes.READ3res

func (*Nfs) NFSPROC3_READDIR

func (nfs *Nfs) NFSPROC3_READDIR(args nfstypes.READDIR3args) nfstypes.READDIR3res

func (*Nfs) NFSPROC3_READDIRPLUS

func (nfs *Nfs) NFSPROC3_READDIRPLUS(args nfstypes.READDIRPLUS3args) nfstypes.READDIRPLUS3res
func (nfs *Nfs) NFSPROC3_READLINK(args nfstypes.READLINK3args) nfstypes.READLINK3res

func (*Nfs) NFSPROC3_REMOVE

func (nfs *Nfs) NFSPROC3_REMOVE(args nfstypes.REMOVE3args) nfstypes.REMOVE3res

func (*Nfs) NFSPROC3_RENAME

func (nfs *Nfs) NFSPROC3_RENAME(args nfstypes.RENAME3args) nfstypes.RENAME3res

func (*Nfs) NFSPROC3_RMDIR

func (nfs *Nfs) NFSPROC3_RMDIR(args nfstypes.RMDIR3args) nfstypes.RMDIR3res

func (*Nfs) NFSPROC3_SETATTR

func (nfs *Nfs) NFSPROC3_SETATTR(args nfstypes.SETATTR3args) nfstypes.SETATTR3res
func (nfs *Nfs) NFSPROC3_SYMLINK(args nfstypes.SYMLINK3args) nfstypes.SYMLINK3res

func (*Nfs) NFSPROC3_WRITE

func (nfs *Nfs) NFSPROC3_WRITE(args nfstypes.WRITE3args) nfstypes.WRITE3res

XXX Mtime

func (*Nfs) ResetOpStats added in v0.6.1

func (nfs *Nfs) ResetOpStats()

func (*Nfs) ShutdownNfs

func (nfs *Nfs) ShutdownNfs()

func (*Nfs) WriteOpStats

func (nfs *Nfs) WriteOpStats(w io.Writer)

type NfsClient

type NfsClient struct {
	// contains filtered or unexported fields
}

func MkNfsClient

func MkNfsClient(sz uint64) *NfsClient

func (*NfsClient) CommitOp

func (clnt *NfsClient) CommitOp(fh nfstypes.Nfs_fh3, cnt uint64) *nfstypes.COMMIT3res

func (*NfsClient) Crash

func (clnt *NfsClient) Crash()

func (*NfsClient) CreateOp

func (clnt *NfsClient) CreateOp(fh nfstypes.Nfs_fh3, name string) nfstypes.CREATE3res

func (*NfsClient) GetattrOp

func (clnt *NfsClient) GetattrOp(fh nfstypes.Nfs_fh3) *nfstypes.GETATTR3res

func (*NfsClient) LookupOp

func (clnt *NfsClient) LookupOp(fh nfstypes.Nfs_fh3, name string) *nfstypes.LOOKUP3res

func (*NfsClient) MkDirOp

func (clnt *NfsClient) MkDirOp(dir nfstypes.Nfs_fh3, name string) nfstypes.MKDIR3res

func (*NfsClient) ReadDirPlusOp

func (clnt *NfsClient) ReadDirPlusOp(dir nfstypes.Nfs_fh3, cnt uint64) nfstypes.READDIRPLUS3res

func (*NfsClient) ReadLinkOp

func (clnt *NfsClient) ReadLinkOp(fh nfstypes.Nfs_fh3) nfstypes.READLINK3res

func (*NfsClient) ReadOp

func (clnt *NfsClient) ReadOp(fh nfstypes.Nfs_fh3, off uint64, sz uint64) *nfstypes.READ3res

func (*NfsClient) RemoveOp

func (clnt *NfsClient) RemoveOp(dir nfstypes.Nfs_fh3, name string) nfstypes.REMOVE3res

func (*NfsClient) RenameOp

func (clnt *NfsClient) RenameOp(fhfrom nfstypes.Nfs_fh3, from string,
	fhto nfstypes.Nfs_fh3, to string) nfstypes.Nfsstat3

func (*NfsClient) RmDirOp

func (clnt *NfsClient) RmDirOp(dir nfstypes.Nfs_fh3, name string) nfstypes.RMDIR3res

func (*NfsClient) SetattrOp

func (clnt *NfsClient) SetattrOp(fh nfstypes.Nfs_fh3, sz uint64) nfstypes.SETATTR3res

func (*NfsClient) Shutdown

func (clnt *NfsClient) Shutdown()

func (*NfsClient) SymLinkOp

func (clnt *NfsClient) SymLinkOp(dir nfstypes.Nfs_fh3, name string, path nfstypes.Nfspath3) nfstypes.SYMLINK3res

func (*NfsClient) WriteOp

func (clnt *NfsClient) WriteOp(fh nfstypes.Nfs_fh3, off uint64, data []byte, how nfstypes.Stable_how) *nfstypes.WRITE3res

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL