]> git.proxmox.com Git - proxmox-backup.git/commit
fix #3393 (again): pxar/create: try to read xattrs/fcaps/acls by default
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 8 Jun 2021 13:49:43 +0000 (15:49 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 28 Jun 2021 12:04:22 +0000 (14:04 +0200)
commit5667b76381661aa8b3fc6da210d4eded511c31d8
treec344dea9724cf0c5d1c264c7c3c4e6f7229d57b5
parentd9b318a444db599ba3c526e580da4970666b0aab
fix #3393 (again): pxar/create: try to read xattrs/fcaps/acls by default

we have a static list of filesystems and their capabilities regarding
file attributes and fs features (e.g. sockets/fifos/etc) which also
includes xattrs,acls and fcaps

if we did not know a filesystem by its magic number (for example cephfs),
we did not even attempt to read xattrs, etc.

this patch adds those flags by default to unknown filesystems, and
removes them when we encounter EOPNOTSUPP (to remove the number
of syscalls)

with this, we should be able to catch xattrs/acls/fcaps on all
(unknown) fs types that support them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/pxar/create.rs
src/pxar/flags.rs