proxmox-backup/src/api2
Fiona Ebner d3910e1334 api: disks: directory: fail if mount unit already exists
Without this check, if a mount unit is present, but the file system is
not mounted, it will just get overwritten. The unit might belong to an
existing datastore.

There already is a check against a duplicate datastore, but only after
the mount unit is already overwritten and having the add-datastore
flag present is not a precondition to trigger the issue.

The check is done even if the newly created directory datastore is
removable. While in that case, the mount unit is not overwritten, the
conflict for the mount point is still present, so it is nice to fail
early.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-11-27 19:59:37 +01:00
..
access api: enforce minimum character limit of 8 on new passwords 2024-11-25 15:51:47 +01:00
admin api: removable datastore: downgrade device already mounted error to info 2024-11-27 12:44:06 +01:00
backup snapshot: add helper function to retrieve verify_state 2024-11-25 10:52:40 +01:00
config datastore: extract nesting check into helper 2024-11-27 15:25:37 +01:00
node api: disks: directory: fail if mount unit already exists 2024-11-27 19:59:37 +01:00
reader datastore: move ArchiveType to api types 2024-11-22 11:45:43 +01:00
status pbs-api-types: add mount_status field to DataStoreListItem 2024-11-25 21:34:22 +01:00
tape client/server: use dedicated api type for all archive names 2024-11-22 13:47:05 +01:00
types pbs-api-types: move node status types from src/api2/types/mod.rs 2023-09-28 08:13:30 +02:00
helpers.rs api: rustfmt 2022-04-14 13:33:01 +02:00
mod.rs api: push: implement endpoint for sync in push direction 2024-11-21 10:14:53 +01:00
ping.rs api: rustfmt 2022-04-14 13:33:01 +02:00
pull.rs fix #3786: api: add resync-corrupt option to sync jobs 2024-11-25 10:53:26 +01:00
push.rs api: push: implement endpoint for sync in push direction 2024-11-21 10:14:53 +01:00
version.rs version: remove named features 2024-11-21 11:53:49 +01:00