proxmox-backup/pbs-datastore
Gabriel Goller 7b7ceb0c68 fix #4823: datastore: ignore vanished files when walking directory
When walking through a datastore on a GC run, it can
happen that the snapshot is deleted, and then walked over.
For example:
- read dir entry for group
- walk entries (snapshots)
- snapshot X is removed/pruned
- walking reaches snapshot X, but ENOENT
Previously we bailed here, now we just ignore it.
Backups that are just created (and a atomic rename from
tmpdir happens, which might triggers a ENOENT error) are
not a problem here, the GC handles them separately.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
(cherry picked from commit 9d1ba51de7)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-10 12:19:46 +01:00
..
examples pbs-datastore: clippy fixes 2023-05-17 17:43:17 +02:00
src fix #4823: datastore: ignore vanished files when walking directory 2023-11-10 12:19:46 +01:00
Cargo.toml move pbs_config::key_config to pbs-key-config 2022-12-12 14:19:52 +01:00