[pbs-devel] [PATCH proxmox-backup v3 02/24] pbs-api-types: add backing-device to DataStoreConfig

Dietmar Maurer dietmar at proxmox.com
Thu Apr 11 12:04:44 CEST 2024


> +        "backing-device": {
> +            description: "The UUID of the device for removable datastores.",
> +            optional: true,
> +            type: String,
> +        }
>      }
>  )]
>  #[derive(Serialize, Deserialize, Updater, Clone, PartialEq)]
> @@ -316,6 +321,10 @@ pub struct DataStoreConfig {
>      /// Maintenance mode, type is either 'offline' or 'read-only', message should be enclosed in "
>      #[serde(skip_serializing_if = "Option::is_none")]
>      pub maintenance_mode: Option<String>,
> +
> +    /// The UUID of the device(for removable datastores)

I guess we also want:

#[updater(skip)]


> +    #[serde(skip_serializing_if = "Option::is_none")]
> +    pub backing_device: Option<String>,
>  }




More information about the pbs-devel mailing list