]> git.proxmox.com Git - proxmox-backup.git/commit
src/pxar/fuse.rs: impl lookup callback for fuse
authorChristian Ebner <c.ebner@proxmox.com>
Mon, 9 Sep 2019 16:27:26 +0000 (18:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Sep 2019 08:54:23 +0000 (10:54 +0200)
commitb00689254a4c5bf13acafd2d3e40a72e7a20ee0f
tree6c71f6b0b5a6b4d0c6fbe34ef928b7e3f8e3c10a
parent1443927c02e0d04ac3d879f8c8d822a9d1074ff1
src/pxar/fuse.rs: impl lookup callback for fuse

The lookup call checks if the given filename is found in the directory referenced
by the i-node by calclulating the filenames hash and looking it up in the
directories goodbye table.
If found, the entries parameters are returned.
In order to be able to lookup the parent offset by a given file offset in the
readdir callback, this also stores the corresponding values in a HashMap.

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