[pbs-devel] [PATCH proxmox-backup 3/4] client: pxar: warn user and ignore stale file handles on file open
Christian Ebner
c.ebner at proxmox.com
Tue Nov 5 15:01:52 CET 2024
Do not fail hard if a file open fails because of a stale file handle.
Warn the user and ignore the file, just like the client already does
in case of missing privileges to access the file.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
pbs-client/src/pxar/create.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index 8685e8d42..2a844922c 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -484,6 +484,10 @@ impl Archiver {
log::warn!("failed to open file: {:?}: access denied", file_name);
Ok(None)
}
+ Err(Errno::ESTALE) => {
+ log::warn!("failed to open file: {file_name:?}: stale file handle");
+ Ok(None)
+ }
Err(Errno::EPERM) if !noatime.is_empty() => {
// Retry without O_NOATIME:
noatime = OFlag::empty();
--
2.39.5
More information about the pbs-devel
mailing list