]> git.hungrycats.org Git - bees/commit
hash: handle $BEESHOME on btrfs too
authorZygo Blaxell <bees@furryterror.org>
Tue, 18 Feb 2025 02:12:29 +0000 (21:12 -0500)
committerZygo Blaxell <bees@furryterror.org>
Tue, 18 Feb 2025 02:18:08 +0000 (21:18 -0500)
commit47243aef1429dd2b3eab253f9cf99559a1108f35
tree8b1ba14af3165d89a040ba1ebfca2570ce4a2e3f
parenta670aa5a711dd3fcbe4ef7ebc7e74426e178a6d9
hash: handle $BEESHOME on btrfs too

The `_nothrow` variants of `do_ioctl` return true when they succeed,
which is the opposite of what `ioctl` does.

Fix the logic so bees can correctly identify its own hash table when
it's on the same filesystem as the target.

Fixes: f6908420adcf3fbafef8bbde8a25f8bac65424b6 ("hash: handle $BEESHOME on non-btrfs")
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-hash.cc