proxmox-backup/src
Christian Ebner 4e1676a432 api: datastore: fix cache store creation when reusing s3 backend
Commit 3cc3c10d ("datastore: mark store as in-use by setting marker
on s3 backend") introduced the marker object on datastores used by
another instance. The check was however flawed as it made the local
chunk store creation dependent on the s3 client instantiation.

Therefore, instead factor out the DatastoreBackendType determination,
use that for the check and never assume the local cache store to
be pre-existing.

Also, since contents from the s3 store are refreshed anyway, local
contents in the cache store will be removed, except chunks which
are now cleaned up on create.

Fixes: 3cc3c10d ("datastore: mark store as in-use by setting marker on s3 backend")
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Link: https://lore.proxmox.com/20250724080233.282783-1-c.ebner@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-24 11:25:57 +02:00
..
acme update main lib to proxmox-base64 2025-06-16 13:59:37 +02:00
api2 api: datastore: fix cache store creation when reusing s3 backend 2025-07-24 11:25:57 +02:00
backup verify: implement chunk verification for stores with s3 backend 2025-07-22 21:43:43 +02:00
bin bin: manager: run uuid_mount/mount tasks on the proxy 2025-07-22 21:43:43 +02:00
config update main lib to proxmox-base64 2025-06-16 13:59:37 +02:00
server api: backup: add no-cache flag to bypass local datastore cache 2025-07-22 21:43:43 +02:00
tape tape: forbid operations on a s3 datastore 2025-07-23 20:34:57 +02:00
tools clippy/fmt: tree wide drop of clone for types implementing copy 2025-03-20 14:48:31 +01:00
auth_helpers.rs update main lib to proxmox-base64 2025-06-16 13:59:37 +02:00
auth.rs auth: doc: Explicitly set namespace for UserInfomation 2024-12-04 14:40:42 +01: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