simple

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkRootFh3

func MkRootFh3() nfstypes.Nfs_fh3

func Mkfs

func Mkfs(d disk.Disk) *obj.Log

func NFSPROC3_GETATTR_internal

func NFSPROC3_GETATTR_internal(args nfstypes.GETATTR3args, reply *nfstypes.GETATTR3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_GETATTR_wp

func NFSPROC3_GETATTR_wp(args nfstypes.GETATTR3args, reply *nfstypes.GETATTR3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_READ_internal

func NFSPROC3_READ_internal(args nfstypes.READ3args, reply *nfstypes.READ3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_READ_wp

func NFSPROC3_READ_wp(args nfstypes.READ3args, reply *nfstypes.READ3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_SETATTR_internal

func NFSPROC3_SETATTR_internal(args nfstypes.SETATTR3args, reply *nfstypes.SETATTR3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_SETATTR_wp

func NFSPROC3_SETATTR_wp(args nfstypes.SETATTR3args, reply *nfstypes.SETATTR3res, inum common.Inum, op *jrnl.Op) bool

func NFSPROC3_WRITE_internal

func NFSPROC3_WRITE_internal(args nfstypes.WRITE3args, reply *nfstypes.WRITE3res, inum common.Inum, op *jrnl.Op)

func NFSPROC3_WRITE_wp

func NFSPROC3_WRITE_wp(args nfstypes.WRITE3args, reply *nfstypes.WRITE3res, inum common.Inum, op *jrnl.Op) bool

func RecoverExample

func RecoverExample(d disk.Disk)

Types

type Fh

type Fh struct {
	Ino common.Inum
}

func MakeFh

func MakeFh(fh3 nfstypes.Nfs_fh3) Fh

func (Fh) MakeFh3

func (fh Fh) MakeFh3() nfstypes.Nfs_fh3

type Inode

type Inode struct {
	Inum common.Inum
	Size uint64 // 0 to 4KB
	Data common.Bnum
}

func Decode

func Decode(buf *buf.Buf, inum common.Inum) *Inode

func ReadInode

func ReadInode(op *jrnl.Op, inum common.Inum) *Inode

func (*Inode) Encode

func (ip *Inode) Encode() []byte

func (*Inode) MkFattr

func (ip *Inode) MkFattr() nfstypes.Fattr3

func (*Inode) Read

func (ip *Inode) Read(op *jrnl.Op, offset uint64,
	bytesToRead uint64) ([]byte, bool)

Returns number of bytes read and eof

func (*Inode) Write

func (ip *Inode) Write(op *jrnl.Op, offset uint64, count uint64,
	dataBuf []byte) (uint64, bool)

Returns number of bytes written and error

func (*Inode) WriteInode

func (ip *Inode) WriteInode(op *jrnl.Op)

type Nfs

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

func MakeNfs

func MakeNfs(d disk.Disk) *Nfs

func Recover

func Recover(d disk.Disk) *Nfs

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

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

Jump to

Keyboard shortcuts

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