diff options
| author | Ryan Lahfa <bcachefs@lahfa.xyz> | 2024-01-27 03:19:28 +0100 |
|---|---|---|
| committer | Ryan Lahfa <bcachefs@lahfa.xyz> | 2024-01-27 04:20:47 +0100 |
| commit | 930646e8dd31cc32f155d83e8302e84bde581025 (patch) | |
| tree | 0c8ae8575d04400b1eb4b1404f744db9c7a9a9a1 | |
| parent | 11d2a45bc0d61f93e9aeea905606332f03d3e1c6 (diff) | |
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>
| -rw-r--r-- | bch_bindgen/build.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bch_bindgen/build.rs b/bch_bindgen/build.rs index 70f03076..c9a90fca 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") |
