struct SliceEntry

Defined at line 435 of file ../../src/storage/fvm/format.h

A Slice Entry represents the allocation of a slice.

Slice Entries are laid out in an array on disk. The index into this array determines the

"physical slice" being accessed, where physical slices consist of all disk space immediately

following the FVM metadata on an FVM partition.

Public Members

uint64_t data

Public Methods

void SliceEntry (uint64_t vpartition, uint64_t vslice)

Defined at line 312 of file ../../src/storage/fvm/format.cc

bool IsAllocated ()

Returns true if this slice is assigned to a partition.

Defined at line 323 of file ../../src/storage/fvm/format.cc

bool IsFree ()

Returns true if this slice is unassigned.

Defined at line 325 of file ../../src/storage/fvm/format.cc

void Release ()

Resets the slice entry, marking it as Free.

Defined at line 321 of file ../../src/storage/fvm/format.cc

uint64_t VPartition ()

Returns the |vpartition| that owns this slice.

Defined at line 333 of file ../../src/storage/fvm/format.cc

uint64_t VSlice ()

Returns the |vslice| of this slice. This represents the relative order of the slices

assigned to |vpartition|. This is, the block device exposed to |partition| sees an array of

all slices assigned to it, sorted by |vslice|.

Defined at line 327 of file ../../src/storage/fvm/format.cc

void Set (uint64_t vpartition, uint64_t vslice)

Sets the contents of the slice entry to |partition| and |slice|.

Defined at line 314 of file ../../src/storage/fvm/format.cc

void SliceEntry ()

Defined at line 436 of file ../../src/storage/fvm/format.h