[pbs-devel] [PATH proxmox-backup] gc: ignore if `lost+find` can't be accessed
Hannes Laimer
h.laimer at proxmox.com
Tue Sep 12 11:18:49 CEST 2023
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
pbs-datastore/src/datastore.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbs-datastore/src/datastore.rs b/pbs-datastore/src/datastore.rs
index 3c68b919..0cb8f4c2 100644
--- a/pbs-datastore/src/datastore.rs
+++ b/pbs-datastore/src/datastore.rs
@@ -892,7 +892,7 @@ impl DataStore {
(Some(inner), None) => bail!("unexpected error on datastore traversal: {inner}"),
};
if inner.kind() == io::ErrorKind::PermissionDenied {
- if err.depth() == 0 && path.ends_with("lost+found") {
+ if err.depth() <= 1 && path.ends_with("lost+found") {
// allow skipping ext4 fsck-directory on EPERM only, otherwise we might prune
// too many chunks. E.g., if users messed up with owner/perms on a rsync
return Ok(());
--
2.39.2
More information about the pbs-devel
mailing list