]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
feat(bindgen): expose `bcache_fs_(open|close)` to Rust side
authorRyan Lahfa <bcachefs@lahfa.xyz>
Sat, 27 Jan 2024 02:19:28 +0000 (03:19 +0100)
committerRyan Lahfa <bcachefs@lahfa.xyz>
Sat, 27 Jan 2024 03:20:47 +0000 (04:20 +0100)
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>
bch_bindgen/build.rs

index 70f03076afbd5444d2e3f57dce02ecb319b0d3d0..c9a90fcab25da4cefeb805bbd65a6caedac8abbc 100644 (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")