Google is committed to advancing racial equity for Black communities. See how.

fuchsia.minfs

PROTOCOLS

Minfs

Defined in fuchsia.minfs/minfs.fidl

GetAllocatedRegions

Retrieve information about allocated regions on the filesystem.

Request

NameType

Response

NameType
status zx/status
regions handle<vmo>?
count uint64

GetMetrics

Acquires metrics about the currently running filesystem.

Request

NameType

Response

NameType
status zx/status
metrics Metrics?

GetMountState

Get mount state.

Request

NameType

Response

NameType
status zx/status
mount_state MountState?

ToggleMetrics

Toggle the metrics collection system on or off.

Request

NameType
enable bool

Response

NameType
status zx/status

STRUCTS

BlockRegion

Defined in fuchsia.minfs/minfs.fidl

Describes a contiguous run of allocated blocks.

NameTypeDescriptionDefault
offset uint64 No default
length uint64 No default

Metrics

Defined in fuchsia.minfs/minfs.fidl

Describes metrics about the running Minfs instance.

NameTypeDescriptionDefault
fs_metrics fuchsia.storage.metrics/FsMetrics No default
initialized_vmos uint64

Minfs initializes entire VMOs at once. The following fields track this information.

No default
init_dnum_count uint32

Top-level direct blocks only

No default
init_inum_count uint32

Top-level indirect blocks only

No default
init_dinum_count uint32 No default
init_user_data_size uint64 No default
init_user_data_ticks uint64 No default
vnodes_opened_cache_hit uint64

Minfs looks up Vnodes by ino internally (using "VnodeGet"). The following fields track this information.

No default

MountState

Defined in fuchsia.minfs/minfs.fidl

NameTypeDescriptionDefault
readonly_after_initialization bool

True if the fileystem is operational in readonly state. There may have been writes during mount or during replaying journal.

No default
collect_metrics bool

True if the mounted filesystem is collecting metrics.

No default
verbose bool

True if the mounted filesystem is in verbose mode.

No default
repair_filesystem bool

True if the journalled writes were allowed during mount.

No default
use_journal bool

True if the journaling is enabled.

No default