Skip to main content

HostVmfsVolume

Struct HostVmfsVolume 

Source
pub struct HostVmfsVolume {
Show 16 fields pub host_file_system_volume_: HostFileSystemVolume, pub block_size_mb: i32, pub block_size: Option<i32>, pub unmap_granularity: Option<i32>, pub unmap_priority: Option<String>, pub unmap_bandwidth_spec: Option<VmfsUnmapBandwidthSpec>, pub max_blocks: i32, pub major_version: i32, pub version: String, pub uuid: String, pub extent: Vec<HostScsiDiskPartition>, pub vmfs_upgradable: bool, pub force_mounted_info: Option<HostForceMountedInfo>, pub ssd: Option<bool>, pub local: Option<bool>, pub scsi_disk_type: Option<String>,
}
Expand description

The VMFS file system.

§How to access

  • HostSystem::config.file_system_volume?.mount_info?[*].volume→HostVmfsVolume
  • Datastore::info→VmfsDatastoreInfo.vmfs?
  • HostStorageSystem::file_system_volume_info.mount_info?[*].volume→HostVmfsVolume
  • HostStorageSystem::format_vmfs()
  • HostStorageSystem::resolve_multiple_unresolved_vmfs_volumes().vmfs?

Fields§

§host_file_system_volume_: HostFileSystemVolume§block_size_mb: i32

Deprecated as of vSphere API 6.5, use HostVmfsVolume.blockSize instead.

Block size of VMFS.

Determines maximum file size. The maximum number of blocks is typically fixed with each specific version of VMFS. To increase the maximum size of a VMFS file, increase the block size.

The minimum block size is 1MB.

§block_size: Option<i32>

Block size of VMFS in KB.

Determines maximum file size. The maximum number of blocks is typically fixed with each specific version of VMFS. To increase the maximum size of a VMFS file, increase the block size.

The minimum block size is 1MB.

§unmap_granularity: Option<i32>

VMFS unmap reclaims unused storage space.

This property determines the granularity of unmap operations. The unit is KB. If not specified, the default value is the same as the block size of VMFS HostVmfsVolume.blockSize. This property cannot be changed after a VMFS volume is created.

§unmap_priority: Option<String>

VMFS unmap reclaims unused storage space.

This property determines the processing rate of unmaps. See HostVmfsVolumeUnmapPriority_enum for supported values. If not specified, the default value is low, which means unmap is processed at low rate. This property can be updated by calling HostStorageSystem.UpdateVmfsUnmapPriority.

§unmap_bandwidth_spec: Option<VmfsUnmapBandwidthSpec>

VMFS unmap bandwidth related specification.

See VmfsUnmapBandwidthSpec for detail.

§max_blocks: i32

Maximum number of blocks.

Determines maximum file size along with blockSize. See information about the blockSize.

§major_version: i32

Major version number of VMFS.

§version: String

Version string.

Contains major and minor version numbers.

§uuid: String

The universally unique identifier assigned to VMFS.

§extent: Vec<HostScsiDiskPartition>

The list of partition names that comprise this disk’s VMFS extents.

This property can be accessed via various enclosing objects. In VirtualCenter, where it can be accessed from multiple hosts, the value of this property may differ according to the context in which it is accessed. When accessed from the VmfsDatastoreInfo object, in VirtualCenter, this property reflects the extent information of any one of the hosts visible to the datastore.

For a VirtualCenter system which manages ESX Server 2.x and ESX Server 3.x hosts, this extent information is only correlatable across hosts if the extents are exposed on the same adapter on all hosts which can access them. To find the extent names for a specific host, this same property should be accessed via the host’s HostFileSystemVolume object, by correlating the uuid of the VMFS datastore in the VmfsDatastoreInfo object to the uuid in the FileSystemVolume object.

For a Virtual Center system which manages only ESX Server hosts with versions 4.0 onwards , this extent information is correlatable across hosts, irrespective of the adapters the extents are exposed on.

§vmfs_upgradable: bool

Can the filesystem be upgraded to a newer version.

See also HostStorageSystem.UpgradeVmfs.

§force_mounted_info: Option<HostForceMountedInfo>

Information about ‘forceMounted’ VmfsVolume.

When the system detects a copy of a VmfsVolume, it will not be auto-mounted on the host and it will be detected as ‘UnresolvedVmfsVolume’. If user decides to ‘forceMount’ the VmfsVolume on the host, forceMountedInfo will be populated. It will not be set for automounted VMFS volumes.

§ssd: Option<bool>

Indicates whether the volume is SSD backed.

If unset, the information whether the volume is SSD backed is unknown.

§local: Option<bool>

Indicates whether the volume is backed by local disk.

If unset, the information of the volume is local-disk backed is unknown.

§scsi_disk_type: Option<String>

The type of disk drives.

See ScsiDiskType_enum for supported types. If unset, the default disk drive type is native512.

Trait Implementations§

Source§

impl Debug for HostVmfsVolume

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for HostVmfsVolume

Source§

type Target = HostFileSystemVolume

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for HostVmfsVolume

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Deserialize for HostVmfsVolume

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl HostFileSystemVolumeTrait for HostVmfsVolume

Source§

fn get_host_file_system_volume(&self) -> &HostFileSystemVolume

Get a reference to the HostFileSystemVolume parent struct
Source§

fn get_host_file_system_volume_mut(&mut self) -> &mut HostFileSystemVolume

Get a mutable reference to the HostFileSystemVolume parent struct
Source§

impl Serialize for HostVmfsVolume

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl VimObjectTrait for HostVmfsVolume

Source§

impl DataObjectTrait for HostVmfsVolume

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,