public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Hannes Laimer <h.laimer@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATH proxmox-backup] gc: ignore if `lost+find` can't be accessed
Date: Tue, 12 Sep 2023 11:18:49 +0200	[thread overview]
Message-ID: <20230912091849.905183-1-h.laimer@proxmox.com> (raw)

Signed-off-by: Hannes Laimer <h.laimer@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





             reply	other threads:[~2023-09-12  9:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12  9:18 Hannes Laimer [this message]
2023-09-12  9:30 ` [pbs-devel] applied: " Fabian Grünbichler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230912091849.905183-1-h.laimer@proxmox.com \
    --to=h.laimer@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal