From 930646e8dd31cc32f155d83e8302e84bde581025 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sat, 27 Jan 2024 03:19:28 +0100 Subject: [PATCH] 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 --- bch_bindgen/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bch_bindgen/build.rs b/bch_bindgen/build.rs index 70f0307..c9a90fc 100644 --- a/bch_bindgen/build.rs +++ b/bch_bindgen/build.rs @@ -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") -- 2.39.5