5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-05 09:17:59 +03:00
proxmox-backup/src
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
..
acme fixup build with new acme crate 2024-05-27 10:54:03 +02:00
api2 api: disks: directory: fail if mount unit already exists 2024-11-27 19:59:37 +01:00
backup snapshot: add helper function to retrieve verify_state 2024-11-25 10:52:40 +01:00
bin manager: run cargo fmt 2024-11-26 16:24:01 +01:00
config api: add consent api handler and config option 2024-11-25 17:19:32 +01:00
server sync: push: pass full error context when returning error to job 2024-11-27 12:37:03 +01:00
tape backup: remove lazy_static dependency 2024-08-14 12:08:01 +02:00
tools api: disks: only return UUID of partitions if it actually is one 2024-11-25 21:34:22 +01:00
auth_helpers.rs auth: use auth-api when generating keys and generate ec keys 2024-05-22 16:04:21 +02:00
auth.rs auth: add locking to PbsAuthenticator to avoid race conditions 2024-06-03 10:55:02 +02:00
client_helpers.rs provide separate helpers for pub/priv auth keyring access 2023-03-29 14:37:45 +02:00
lib.rs metric collection: move rrd_cache to new metric_collection module 2024-10-15 14:09:41 +02:00
traffic_control_cache.rs backup: remove lazy_static dependency 2024-08-14 12:08:01 +02:00