pub enum VolumeRequest {
Mount {
outgoing_directory: ServerEnd<DirectoryMarker>,
options: MountOptions,
responder: VolumeMountResponder,
},
Check {
options: CheckOptions,
responder: VolumeCheckResponder,
},
SetLimit {
bytes: u64,
responder: VolumeSetLimitResponder,
},
GetLimit {
responder: VolumeGetLimitResponder,
},
}
Variants§
Mount
Mounts the volume. If the volume is encrypted, options.crypt
should provide all key
access for the given volume. outgoing_directory
will contain the root and other services
exposed by the volume. To lock the volume, call fuchsia.fs.Admin.Shutdown on the returned
handle.
Fields
outgoing_directory: ServerEnd<DirectoryMarker>
options: MountOptions
responder: VolumeMountResponder
Check
Check the volume for consistency. If the volume is encrypted, options.crypt
should
provide all key access for the given volume.
SetLimit
Set the limit in bytes on the volume. Setting it lower than current usage is accepted but will prevent further increases.
GetLimit
Get the allocation limit for the volume. A return value of 0 indicates that there is no limit and the volume can be extended as long as there is available space on the device.
The volume may be larger than this limit if a smaller limit was applied after the volume had already grown to the current size.
The volume limit persists across reboots.
Fields
responder: VolumeGetLimitResponder
Implementations§
Source§impl VolumeRequest
impl VolumeRequest
pub fn into_mount( self, ) -> Option<(ServerEnd<DirectoryMarker>, MountOptions, VolumeMountResponder)>
pub fn into_check(self) -> Option<(CheckOptions, VolumeCheckResponder)>
pub fn into_set_limit(self) -> Option<(u64, VolumeSetLimitResponder)>
pub fn into_get_limit(self) -> Option<VolumeGetLimitResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL