feat(bindgen): expose bcache_fs_(open|close) to Rust side

This function allows to obtain a handle to send various `ioctl`s to the underlying bcachefs filesystem.
We need also its counterpart to clean up.

Signed-off-by: Ryan Lahfa <bcachefs@lahfa.xyz>
This commit is contained in:
Ryan Lahfa 2024-01-27 03:19:28 +01:00
parent 11d2a45bc0
commit 930646e8dd

View File

@ -53,6 +53,8 @@ fn main() {
.allowlist_function("cmd_.*")
.allowlist_function(".*_cmds")
.allowlist_function(".*bch2_.*")
.allowlist_function("bcache_fs_open")
.allowlist_function("bcache_fs_close")
.allowlist_function("bio_.*")
.allowlist_function("derive_passphrase")
.allowlist_function("request_key")