[pbs-devel] [PATCH proxmox-backup 1/5] api: mainatenance: allow setting of maintenance mode if 'unmounting'
Hannes Laimer
h.laimer at proxmox.com
Tue Nov 26 12:43:19 CET 2024
So it is possible to reset it after a failed unmount, or abort an
unmount task by restting it through the API.
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
pbs-api-types/src/datastore.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
index 4927f3724..203e75e38 100644
--- a/pbs-api-types/src/datastore.rs
+++ b/pbs-api-types/src/datastore.rs
@@ -416,7 +416,7 @@ impl DataStoreConfig {
Some(MaintenanceType::ReadOnly) => { /* always OK */ }
Some(MaintenanceType::Offline) => { /* always OK */ }
Some(MaintenanceType::Unmount) => {
- bail!("datastore is being unmounted");
+ /* used to reset it after failed unmount, or alternative for aborting unmount task */
}
Some(MaintenanceType::Delete) => {
match new_type {
--
2.39.5
More information about the pbs-devel
mailing list