pub struct PveRootfsConfig {
pub acl: Option<PveBoolean>,
pub idmap: Option<String>,
pub mountoptions: Option<String>,
pub quota: Option<PveBoolean>,
pub replicate: Option<PveBoolean>,
pub ro: Option<PveBoolean>,
pub shared: Option<PveBoolean>,
pub size: Option<String>,
pub volume: String,
}Fields§
§acl: Option<PveBoolean>Explicitly enable or disable ACL support.
idmap: Option<String>Customize UID/GID mappings that override the container’s lxc.idmap for this mount point. Accepts a semicolon-separated list of type:container:disk:range-size entries. type is u for UID or g for GID. container is the first ID as seen inside the container. disk is the first corresponding ID on the underlying filesystem. range-size is the number of consecutive IDs to map. Unmapped IDs fall back to the container’s lxc.idmap. Example 1: u:123:456:1 maps UID 123 in the container to UID 456 on the disk. Files owned by UID 456 on the disk will appear as UID 123 inside the container. Example 2: g:100:50:5 maps 5 consecutive GIDs, such that GIDs 100-104 in the container are mapped to GIDs 50-54 on the disk. Example 3: passthrough identity-maps all UIDs and GIDs, meaning IDs inside the container will match the IDs on the disk.
mountoptions: Option<String>Extra mount options for rootfs/mps.
quota: Option<PveBoolean>Enable user quotas inside the container (not supported with zfs subvolumes)
replicate: Option<PveBoolean>Will include this volume to a storage replica job.
ro: Option<PveBoolean>Read-only mount point
Mark this non-volume mount point as available on all nodes. WARNING: This option does not share the mount point automatically, it assumes it is shared already!
size: Option<String>Volume size (read only value).
volume: StringVolume, device or directory to mount into the container.
Implementations§
Source§impl PveRootfsConfig
impl PveRootfsConfig
pub fn new(volume: String) -> PveRootfsConfig
Source§impl PveRootfsConfig
impl PveRootfsConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveRootfsConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveRootfsConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveRootfsConfig
impl Clone for PveRootfsConfig
Source§fn clone(&self) -> PveRootfsConfig
fn clone(&self) -> PveRootfsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveRootfsConfig
impl Debug for PveRootfsConfig
Source§impl Default for PveRootfsConfig
impl Default for PveRootfsConfig
Source§fn default() -> PveRootfsConfig
fn default() -> PveRootfsConfig
Source§impl<'de> Deserialize<'de> for PveRootfsConfig
impl<'de> Deserialize<'de> for PveRootfsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PveRootfsConfig
impl PartialEq for PveRootfsConfig
Source§fn eq(&self, other: &PveRootfsConfig) -> bool
fn eq(&self, other: &PveRootfsConfig) -> bool
self and other values to be equal, and is used by ==.