From e90baeaaa8d7b8f5ca57a091ea852b10a36b04ce Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Tue, 26 Nov 2024 12:43:19 +0100 Subject: [PATCH] api: maintenance: allow setting of maintenance mode if 'unmounting' So it is possible to reset it after a failed unmount, or abort an unmount task by resetting it through the API. Signed-off-by: Hannes Laimer --- 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 4927f372..203e75e3 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 {