Documentation ¶
Index ¶
- type AllocTxn
- func (atxn *AllocTxn) AllocBlock() common.Bnum
- func (atxn *AllocTxn) AllocINum() common.Inum
- func (atxn *AllocTxn) AssertValidBlock(blkno common.Bnum)
- func (atxn *AllocTxn) FreeBlock(blkno common.Bnum)
- func (atxn *AllocTxn) FreeINum(inum common.Inum)
- func (atxn *AllocTxn) Id() *jrnl.Op
- func (atxn *AllocTxn) PostAbort()
- func (atxn *AllocTxn) PostCommit()
- func (atxn *AllocTxn) PreCommit()
- func (atxn *AllocTxn) ReadBlock(blkno common.Bnum) *buf.Buf
- func (atxn *AllocTxn) WriteBits(nums []uint64, blk uint64, alloc bool)
- func (atxn *AllocTxn) ZeroBlock(blkno common.Bnum)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocTxn ¶
type AllocTxn struct { Super *super.FsSuper Op *jrnl.Op Balloc *alloc.Alloc Ialloc *alloc.Alloc // contains filtered or unexported fields }
func (*AllocTxn) AllocBlock ¶
func (*AllocTxn) AssertValidBlock ¶
func (*AllocTxn) PostAbort ¶
func (atxn *AllocTxn) PostAbort()
Abort: free allocated inums and bnums. Nothing to do for freed ones, because in-memory state hasn't been updated by freeINum()/freeBlock().
func (*AllocTxn) PostCommit ¶
func (atxn *AllocTxn) PostCommit()
On-disk bitmap has been updated; update in-memory state for free bits
Click to show internal directories.
Click to hide internal directories.