[pbs-devel] [PATCH proxmox/proxmox-backup v2] fix #2915: stat when necessary
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 28 15:15:12 CEST 2022
this series implements a fallback to stat'ing files when the
readdir entry does not contain the filetype (since only some
filesystems support that)
changes from v1:
* omit the 'FileStat' parameter for scandir callback (we don't really
need it there)
* add two new helpers to fstatat the file to get the type, and to
extract the type from a FileStat struct
* use the FileStat directly in sweep_unused_chunk
proxmox:
Dominik Csapak (1):
partially fix #2915: proxmox-sys: scandir: stat if file_type is
unknown
proxmox-sys/src/fs/read_dir.rs | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
proxmox-backup:
Dominik Csapak (1):
partially fix #2915: 'stat' in case ReadDirEntry does not contain type
pbs-datastore/src/chunk_store.rs | 23 ++++++----------
pbs-datastore/src/hierarchy.rs | 47 ++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 14 deletions(-)
--
2.30.2
More information about the pbs-devel
mailing list