[pbs-devel] [PATCH proxmox-backup 03/26] api-types: add "removable" field to DataStoreConfig
Hannes Laimer
h.laimer at proxmox.com
Tue Jul 5 15:08:11 CEST 2022
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
pbs-api-types/src/datastore.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
index 70b639ea..965e3795 100644
--- a/pbs-api-types/src/datastore.rs
+++ b/pbs-api-types/src/datastore.rs
@@ -235,6 +235,11 @@ pub const DATASTORE_TUNING_STRING_SCHEMA: Schema = StringSchema::new("Datastore
format: &ApiStringFormat::PropertyString(&MaintenanceMode::API_SCHEMA),
type: String,
},
+ removable: {
+ optional: true,
+ default: false,
+ type: bool,
+ }
}
)]
#[derive(Serialize, Deserialize, Updater)]
@@ -278,6 +283,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 datastore is removable
+ #[updater(skip)]
+ pub removable: bool,
}
impl DataStoreConfig {
@@ -294,6 +303,7 @@ impl DataStoreConfig {
notify: None,
tuning: None,
maintenance_mode: None,
+ removable: false,
}
}
--
2.30.2
More information about the pbs-devel
mailing list