]> git.proxmox.com Git - proxmox-backup.git/commit
backup: touch all chunks, even if they exist
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 7 Sep 2020 15:30:36 +0000 (17:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Sep 2020 10:51:03 +0000 (12:51 +0200)
commit068e52686221ab3b41c4213b5747d885ae1fa920
treea5229db3a7df2675594a7c7cc3fbbf5a263a99dd
parenta9767cf7de6d050ab2f3d8baec382c7312c62bca
backup: touch all chunks, even if they exist

We need to update the atime of chunk files if they already exist,
otherwise a concurrently running GC could sweep them away.

This is protected with ChunkStore.mutex, so the fstat/unlink does not
race with touching.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/backup/chunk_store.rs