Struct libzetta::zpool::properties::ZpoolProperties
source · 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
impl ZpoolProperties
sourcepub fn alloc(&self) -> &usize
pub fn alloc(&self) -> &usize
Amount of storage space within the pool that has been physically allocated.
sourcepub fn comment(&self) -> &Option<String>
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.
sourcepub fn dedup_ratio(&self) -> &f64
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.
sourcepub fn expand_size(&self) -> &Option<usize>
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.
sourcepub fn fragmentation(&self) -> &i8
pub fn fragmentation(&self) -> &i8
The amount of fragmentation in the pool. In percents.
sourcepub fn freeing(&self) -> &i64
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.
sourcepub fn alt_root(&self) -> &Option<PathBuf>
pub fn alt_root(&self) -> &Option<PathBuf>
Alternate root directory, can only be set during creation or import.
sourcepub fn auto_expand(&self) -> &bool
pub fn auto_expand(&self) -> &bool
Controls automatic pool expansion when the underlying LUN is grown.
sourcepub fn auto_replace(&self) -> &bool
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”.
sourcepub fn boot_fs(&self) -> &Option<String>
pub fn boot_fs(&self) -> &Option<String>
Identifies the default bootable dataset for the root pool.
sourcepub fn cache_file(&self) -> &CacheType
pub fn cache_file(&self) -> &CacheType
Controls the location of where the pool configuration is cached.
sourcepub fn dedup_ditto(&self) -> &usize
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.
sourcepub fn delegation(&self) -> &bool
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.
Trait Implementations§
source§impl Clone for ZpoolProperties
impl Clone for ZpoolProperties
source§fn clone(&self) -> ZpoolProperties
fn clone(&self) -> ZpoolProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZpoolProperties
impl Debug for ZpoolProperties
source§impl PartialEq<ZpoolProperties> for ZpoolProperties
impl PartialEq<ZpoolProperties> for ZpoolProperties
source§fn eq(&self, other: &ZpoolProperties) -> bool
fn eq(&self, other: &ZpoolProperties) -> bool
self
and other
values to be equal, and is used
by ==
.