Documentation ¶
Index ¶
- Constants
- type FsState
- type FsTxn
- func (op *FsTxn) Abort() bool
- func (op *FsTxn) AllocInode(kind nfstypes.Ftype3) *inode.Inode
- func (op *FsTxn) Commit() bool
- func (op *FsTxn) CommitData() bool
- func (op *FsTxn) CommitFh() bool
- func (op *FsTxn) CommitUnstable() bool
- func (op *FsTxn) GetInodeFh(fh3 nfstypes.Nfs_fh3) *inode.Inode
- func (op *FsTxn) GetInodeInum(inum common.Inum) *inode.Inode
- func (op *FsTxn) GetInodeInumFree(inum common.Inum) *inode.Inode
- func (op *FsTxn) GetInodeLocked(inum common.Inum) *inode.Inode
- func (op *FsTxn) GetInodeUnlocked(inum common.Inum) *inode.Inode
- func (op *FsTxn) LockInode(inum common.Inum) *cache.Cslot
- func (op *FsTxn) OwnInum(inum common.Inum) bool
- func (op *FsTxn) ReleaseInode(ip *inode.Inode)
Constants ¶
View Source
const ICACHESZ uint64 = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsState ¶
type FsTxn ¶
func (*FsTxn) Abort ¶
An aborted transaction may free an inode, which results in dirty buffers that need to be written to log. So, call commit.
func (*FsTxn) CommitData ¶
Commit data, but will also commit everything else, since we don't support log-by-pass writes.
func (*FsTxn) CommitFh ¶
Flush log. We don't have to flush data from other file handles, but that is only an option if we do log-by-pass writes.
func (*FsTxn) CommitUnstable ¶
Commit transaction, but don't write to stable storage
func (*FsTxn) GetInodeUnlocked ¶
Assumes caller already has inode locked
func (*FsTxn) ReleaseInode ¶
Click to show internal directories.
Click to hide internal directories.