mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-29 13:35:34 +00:00
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 <h.laimer@proxmox.com>
This commit is contained in:
parent
feeace2696
commit
e90baeaaa8
@ -416,7 +416,7 @@ impl DataStoreConfig {
|
|||||||
Some(MaintenanceType::ReadOnly) => { /* always OK */ }
|
Some(MaintenanceType::ReadOnly) => { /* always OK */ }
|
||||||
Some(MaintenanceType::Offline) => { /* always OK */ }
|
Some(MaintenanceType::Offline) => { /* always OK */ }
|
||||||
Some(MaintenanceType::Unmount) => {
|
Some(MaintenanceType::Unmount) => {
|
||||||
bail!("datastore is being unmounted");
|
/* used to reset it after failed unmount, or alternative for aborting unmount task */
|
||||||
}
|
}
|
||||||
Some(MaintenanceType::Delete) => {
|
Some(MaintenanceType::Delete) => {
|
||||||
match new_type {
|
match new_type {
|
||||||
|
Loading…
Reference in New Issue
Block a user