0e20b336e1
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> |
||
---|---|---|
debian | ||
docs | ||
etc | ||
qemu-io | ||
src | ||
tests | ||
www | ||
zstd-sys | ||
.gitignore | ||
Cargo.toml | ||
defines.mk | ||
Makefile | ||
rust-toolchain | ||
rustfmt.toml |