]> git.proxmox.com Git - proxmox-backup.git/commit
api: assert that maintenance mode transitions are valid
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 22 Apr 2024 08:31:30 +0000 (10:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 10:19:22 +0000 (12:19 +0200)
commit50c0246a89e7c9b389f98d0fb2c822b834c9a75f
tree9bdeaecb858a7f79ef3e6d94c134a6821b5a89e5
parent7767c7cfd531ffa83eec445803b0a07b7b59f4be
api: assert that maintenance mode transitions are valid

Maintenance mode Delete locks the datastore. It must not be possible to go
back to normal modes, because the datastore may be in undefined state.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
pbs-api-types/src/datastore.rs
pbs-datastore/src/datastore.rs
src/api2/config/datastore.rs