Struct libzetta::zpool::properties::ZpoolPropertiesWriteBuilder
source · pub struct ZpoolPropertiesWriteBuilder { /* private fields */ }
Expand description
Builder for ZpoolPropertiesWrite
.
Implementations§
source§impl ZpoolPropertiesWriteBuilder
impl ZpoolPropertiesWriteBuilder
sourcepub fn read_only(&mut self, value: bool) -> &mut Self
pub fn read_only(&mut self, value: bool) -> &mut Self
Make zpool readonly. This can only be changed during import.
sourcepub fn auto_expand(&mut self, value: bool) -> &mut Self
pub fn auto_expand(&mut self, value: bool) -> &mut Self
Controls automatic pool expansion when the underlying LUN is grown.
sourcepub fn auto_replace(&mut self, value: bool) -> &mut Self
pub fn auto_replace(&mut self, value: bool) -> &mut Self
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(&mut self, value: Option<String>) -> &mut Self
pub fn boot_fs(&mut self, value: Option<String>) -> &mut Self
Identifies the default bootable dataset for the root pool.
sourcepub fn cache_file(&mut self, value: CacheType) -> &mut Self
pub fn cache_file(&mut self, value: CacheType) -> &mut Self
Controls the location of where the pool configuration is cached.
sourcepub fn comment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn comment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An administrator can provide additional information about a pool using this property.
sourcepub fn delegation(&mut self, value: bool) -> &mut Self
pub fn delegation(&mut self, value: bool) -> &mut Self
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.
sourcepub fn fail_mode(&mut self, value: FailMode) -> &mut Self
pub fn fail_mode(&mut self, value: FailMode) -> &mut Self
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.
sourcepub fn build(
&self
) -> Result<ZpoolPropertiesWrite, ZpoolPropertiesWriteBuilderError>
pub fn build( &self ) -> Result<ZpoolPropertiesWrite, ZpoolPropertiesWriteBuilderError>
source§impl ZpoolPropertiesWriteBuilder
impl ZpoolPropertiesWriteBuilder
sourcepub fn from_props(props: &ZpoolProperties) -> ZpoolPropertiesWriteBuilder
pub fn from_props(props: &ZpoolProperties) -> ZpoolPropertiesWriteBuilder
Construct new builder given existing properties. Useful for updates.
Trait Implementations§
source§impl Clone for ZpoolPropertiesWriteBuilder
impl Clone for ZpoolPropertiesWriteBuilder
source§fn clone(&self) -> ZpoolPropertiesWriteBuilder
fn clone(&self) -> ZpoolPropertiesWriteBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more