[pbs-devel] [PATCH proxmox-backup v4 0/3] pbs-api-types: new MaintenanceType::Unmount, implement and use set_maintenance_mode

Dietmar Maurer dietmar at proxmox.com
Mon Apr 22 10:31:27 CEST 2024


Changes in v4:

- re-add comment about unmounting maintenence type
- fix typo in commit message
- avoid compiler warning

Changes in v3:

- do not introduce MaintenanceType::Unmount (we can do that later)
- cleanup commit messages

Changes in v2:

- split patch into smaller ones
- cleanup commit message

Dietmar Maurer (3):
  pbs-api-types: use SchemaDeserializer for maintenance mode
  maintenance: derive Copy for maintenance type and make maintenance
    mode fields public
  api: assert that maintenance mode transitions are valid

 pbs-api-types/src/datastore.rs   | 46 +++++++++++++++++++++++++++-----
 pbs-api-types/src/maintenance.rs |  6 ++---
 pbs-datastore/src/datastore.rs   |  8 ++++--
 src/api2/config/datastore.rs     | 13 ++++++---
 4 files changed, 59 insertions(+), 14 deletions(-)

-- 
2.39.2





More information about the pbs-devel mailing list