[][src]Struct libzetta::zpool::properties::ZpoolProperties

pub struct ZpoolProperties { /* fields omitted */ }

All pre-defined properties of Zpool - both immutable and mutable. Majority of this documentation lifted from manual page.

Methods

impl ZpoolProperties[src]

pub fn alloc(&self) -> &usize[src]

Amount of storage space within the pool that has been physically allocated.

pub fn capacity(&self) -> &u8[src]

Percentage of pool space used. Percentage.

pub fn comment(&self) -> &Option<String>[src]

A text string consisting of printable ASCII characters that will be stored such that it is available even if the pool becomes faulted. An administrator can provide additional information about a pool using this property.

pub fn dedup_ratio(&self) -> &f64[src]

The deduplication ratio specified for a pool, expressed as a multiplier. For example, a dedupratio value of 1.76 indicates that 1.76 units of data were stored but only 1 unit of disk space was actually consumed. See zfs(8) for a description of the deduplication feature.

pub fn expand_size(&self) -> &Option<usize>[src]

Amount of uninitialized space within the pool or device that can be used to increase the total capacity of the pool. Uninitialized space consists of any space on an EFI labeled vdev, which has not been brought online (i.e. zpool online -e). This space occurs when a LUN is dynamically expanded.

pub fn fragmentation(&self) -> &i8[src]

The amount of fragmentation in the pool. In percents.

pub fn free(&self) -> &i64[src]

Number of blocks within the pool that are not allocated.

pub fn freeing(&self) -> &i64[src]

After a file system or snapshot is destroyed, the space it was using is returned to the pool asynchronously. freeing is the amount of space remaining to be reclaimed. Over time freeing will decrease while free increases.

pub fn guid(&self) -> &u64[src]

A unique identifier for the pool.

pub fn health(&self) -> &Health[src]

The current health of the pool.

pub fn size(&self) -> &usize[src]

Total size of the storage pool.

pub fn leaked(&self) -> &usize[src]

Leaked space?

pub fn alt_root(&self) -> &Option<PathBuf>[src]

Alternate root directory, can only be set during creation or import.

pub fn read_only(&self) -> &bool[src]

Pool is read only

pub fn auto_expand(&self) -> &bool[src]

Controls automatic pool expansion when the underlying LUN is grown.

pub fn auto_replace(&self) -> &bool[src]

Controls automatic device replacement. If set to "on", any new device, found in the same physical location as a device that previously belonged to the pool, is automatically formatted and replaced. The default behavior is "off".

pub fn boot_fs(&self) -> &Option<String>[src]

Identifies the default bootable dataset for the root pool.

pub fn cache_file(&self) -> &CacheType[src]

Controls the location of where the pool configuration is cached.

pub fn dedup_ditto(&self) -> &usize[src]

Threshold for the number of block ditto copies. If the reference count for a deduplicated block increases above this number, a new ditto copy of this block is automatically stored. Default setting is 0 which causes no ditto copies to be created for deduplicated blocks. The minimum legal nonzero setting is 100.

pub fn delegation(&self) -> &bool[src]

Controls whether a non-privileged user is granted access based on the dataset permissions defined on the dataset. See zfs(8) for more information on ZFS delegated administration.

pub fn fail_mode(&self) -> &FailMode[src]

Controls the system behavior in the event of catastrophic pool failure. This condition is typically a result of a loss of connectivity to the underlying storage device(s) or a failure of all devices within the pool.

Trait Implementations

impl Clone for ZpoolProperties[src]

impl Debug for ZpoolProperties[src]

impl PartialEq<ZpoolProperties> for ZpoolProperties[src]

impl StructuralPartialEq for ZpoolProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.