mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-07-27 07:17:27 +00:00
client: pxar: warn user and ignore stale file handles on file open
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@proxmox.com>
This commit is contained in:
parent
102ab18146
commit
efb49d8abe
@ -484,6 +484,10 @@ impl Archiver {
|
|||||||
log::warn!("failed to open file: {:?}: access denied", file_name);
|
log::warn!("failed to open file: {:?}: access denied", file_name);
|
||||||
Ok(None)
|
Ok(None)
|
||||||
}
|
}
|
||||||
|
Err(Errno::ESTALE) => {
|
||||||
|
self.report_stale_file_handle(None);
|
||||||
|
Ok(None)
|
||||||
|
}
|
||||||
Err(Errno::EPERM) if !noatime.is_empty() => {
|
Err(Errno::EPERM) if !noatime.is_empty() => {
|
||||||
// Retry without O_NOATIME:
|
// Retry without O_NOATIME:
|
||||||
noatime = OFlag::empty();
|
noatime = OFlag::empty();
|
||||||
|
Loading…
Reference in New Issue
Block a user