]> git.proxmox.com Git - proxmox-backup.git/commit
pxar::fuse: remove readdir implementation
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 15 Jan 2020 12:11:42 +0000 (13:11 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 15 Jan 2020 13:44:53 +0000 (14:44 +0100)
commitef2d7f2f9663f56e4b81e0cf05fed6b71e813a01
tree238c138c3570f26144af3d722587fbc14747f90d
parent3be839c61cb2ca6cf888f334e68c5feb4a2ff331
pxar::fuse: remove readdir implementation

By not implementing readdir but only readdirplus, the FUSE_CAP_READDIRPLUS flag
is set while the FUSE_CAP_READDIRPLUS_AUTO flag is not set.
Thereby the kernel will issue only readdirplus calls.
Documentation at:
https://libfuse.github.io/doxygen/fuse-3_88_80_2include_2fuse__common_8h.html#a9b90333ad08d0e1c2ed0134d9305ee87

As the expensive part for accessing and reading the attributes is seeking and
decoding each directory entry, it is usefull to force readdirplus calls.
By this a struct `EntryParam` is returned for each entry, therebye avoiding a
subsequent lookup call.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
src/pxar/fuse.rs