From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 2/2] client: pxar: add debug output for exclude pattern matches
Date: Thu, 26 Sep 2024 14:34:37 +0200 [thread overview]
Message-ID: <20240926123437.192228-2-c.ebner@proxmox.com> (raw)
In-Reply-To: <20240926123437.192228-1-c.ebner@proxmox.com>
Log the path of directory entries matched by an exclude pattern in
order to more conveniently debug possible issues.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
pbs-client/src/pxar/create.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index 6129f4a44..c0c492f8d 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -635,7 +635,10 @@ impl Archiver {
});
match match_result {
- Ok(Some(MatchType::Exclude)) => continue,
+ Ok(Some(MatchType::Exclude)) => {
+ log::debug!("matched by exclude pattern '{full_path:?}'");
+ continue;
+ }
Ok(_) => (),
Err(err) if err.not_found() => continue,
Err(err) => {
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2024-09-26 12:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-26 12:34 [pbs-devel] [PATCH proxmox-backup 1/2] client: pxar: perform match pattern check only once Christian Ebner
2024-09-26 12:34 ` Christian Ebner [this message]
2024-11-12 20:25 ` [pbs-devel] applied: " Thomas Lamprecht
2024-11-13 8:23 ` Christian Ebner
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=20240926123437.192228-2-c.ebner@proxmox.com \
--to=c.ebner@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.