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

pub struct ZpoolPropertiesWrite { /* fields omitted */ }

Available properties for write at run time. This doesn't include properties that are writable only during creation/import of zpool. See zpool(8) for more information.

use libzetta::zpool::{CacheType, ZpoolPropertiesWriteBuilder};

let props = ZpoolPropertiesWriteBuilder::default().build().unwrap();

assert!(!props.auto_expand());
assert!(props.boot_fs().is_none());
assert_eq!(props.cache_file(), &CacheType::Default);

let props = ZpoolPropertiesWriteBuilder::default().build();
assert!(props.is_ok());

Methods

impl ZpoolPropertiesWrite[src]

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

Make zpool readonly. This can only be changed during import.

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 comment(&self) -> &String[src]

An administrator can provide additional information about a pool using this property.

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.

impl ZpoolPropertiesWrite[src]

pub fn builder() -> ZpoolPropertiesWriteBuilder[src]

A preferred way to create this structure.

Trait Implementations

impl Clone for ZpoolPropertiesWrite[src]

impl Debug for ZpoolPropertiesWrite[src]

impl Eq for ZpoolPropertiesWrite[src]

impl PartialEq<ZpoolPropertiesWrite> for ZpoolPropertiesWrite[src]

impl StructuralEq for ZpoolPropertiesWrite[src]

impl StructuralPartialEq for ZpoolPropertiesWrite[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.