pub struct ZpoolProperties { /* private fields */ }
Expand description

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

Implementations§

source§

impl ZpoolProperties

source

pub fn alloc(&self) -> &usize

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

source

pub fn capacity(&self) -> &u8

Percentage of pool space used. Percentage.

source

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

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.

source

pub fn dedup_ratio(&self) -> &f64

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.

source

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

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.

source

pub fn fragmentation(&self) -> &i8

The amount of fragmentation in the pool. In percents.

source

pub fn free(&self) -> &i64

Number of blocks within the pool that are not allocated.

source

pub fn freeing(&self) -> &i64

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.

source

pub fn guid(&self) -> &u64

A unique identifier for the pool.

source

pub fn health(&self) -> &Health

The current health of the pool.

source

pub fn size(&self) -> &usize

Total size of the storage pool.

source

pub fn leaked(&self) -> &usize

Leaked space?

source

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

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

source

pub fn read_only(&self) -> &bool

Pool is read only

source

pub fn auto_expand(&self) -> &bool

Controls automatic pool expansion when the underlying LUN is grown.

source

pub fn auto_replace(&self) -> &bool

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”.

source

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

Identifies the default bootable dataset for the root pool.

source

pub fn cache_file(&self) -> &CacheType

Controls the location of where the pool configuration is cached.

source

pub fn dedup_ditto(&self) -> &usize

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.

source

pub fn delegation(&self) -> &bool

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.

source

pub fn fail_mode(&self) -> &FailMode

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§

source§

impl Clone for ZpoolProperties

source§

fn clone(&self) -> ZpoolProperties

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ZpoolProperties

source§

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

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

impl PartialEq<ZpoolProperties> for ZpoolProperties

source§

fn eq(&self, other: &ZpoolProperties) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ZpoolProperties

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,