Go to file
Christian Ebner 0e20b336e1 pxar: fuse: avoid possible hash collision in lookup by additional checking against filename
The hash of the filename in the goodbye table items allows to quickly compare to
a hashed filename.
Unfortunately, a matching hash is no garantee for matching filenames as hash
collisions are possible.
This patch fixes such possible collisions by further checking the filenames once
a matching hash has been found.
This introduces no significant extra cost (except for the filename comparison)
for cases with matching hashes, as the lookup call has to seek and read the file
attributes (including the filename) anyway.
In cases with hash collision, the next matching item is read and treaded
analogously (what means we need at least one extra seek).
As collisions should be not that frequent, this should be an acceptable penalty.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-09-16 10:22:22 +02:00
debian d/control: depend on libfuse3-dev 2019-08-13 12:29:00 +02:00
docs docs/backup-protocol.rst: add backup protocol docs 2019-06-04 17:33:12 +02:00
etc use service Type=notify 2019-04-25 11:01:33 +00:00
qemu-io add qemu-io crate, AioContext reactor helper 2019-05-16 11:59:55 +02:00
src pxar: fuse: avoid possible hash collision in lookup by additional checking against filename 2019-09-16 10:22:22 +02:00
tests tests/worker-task-abort.rs: switch to async 2019-09-02 15:21:26 +02:00
www GUI: fix borders 2019-04-11 12:18:04 +02:00
zstd-sys bump zstd-sys version 2019-09-02 11:40:22 +02:00
.gitignore add Cargo.lock 2019-09-02 15:21:56 +02:00
Cargo.toml update hyper & h2 to alpha releases on crates.io 2019-09-06 10:17:36 +02:00
Makefile buildsys: add 'make lint' 2019-09-11 13:59:58 +02:00
defines.mk buildsys: defer some variable expansions 2019-08-21 12:26:10 +02:00
rust-toolchain use nightly for now 2019-06-07 13:14:03 +02:00
rustfmt.toml import rustfmt.toml 2019-08-22 13:44:57 +02:00