summaryrefslogtreecommitdiff
path: root/bch_bindgen
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-08-02 11:54:09 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-08-02 12:41:32 -0400
commite3ddcea0dd3dd08d59e142b5d23ff744d0dcfac2 (patch)
tree50ca554329c7f04df88c63c2e82d7a0dcc4a159f /bch_bindgen
parent4174fe0baec06b880aad2d5997f79764fbd8cef5 (diff)
cmd_show_super: Look up and print names of member devicesHEADmaster
bch2_sb_to_text_with_names(): print device paths and models of each member. Fixes: https://github.com/koverstreet/bcachefs/issues/801 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'bch_bindgen')
-rw-r--r--bch_bindgen/build.rs1
-rw-r--r--bch_bindgen/src/libbcachefs_wrapper.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/bch_bindgen/build.rs b/bch_bindgen/build.rs
index 22d702b2..b9f7eb65 100644
--- a/bch_bindgen/build.rs
+++ b/bch_bindgen/build.rs
@@ -85,6 +85,7 @@ fn main() {
.opaque_type("gc_stripe")
.opaque_type("open_bucket.*")
.opaque_type("replicas_delta_list")
+ .allowlist_type("sb_names")
.no_copy("btree_trans")
.no_copy("printbuf")
.no_partialeq("bkey")
diff --git a/bch_bindgen/src/libbcachefs_wrapper.h b/bch_bindgen/src/libbcachefs_wrapper.h
index 128592c3..be9656f9 100644
--- a/bch_bindgen/src/libbcachefs_wrapper.h
+++ b/bch_bindgen/src/libbcachefs_wrapper.h
@@ -13,6 +13,7 @@
#include "include/linux/blkdev.h"
#include "cmds.h"
#include "raid/raid.h"
+#include "src/rust_to_c.h"
/* Fix753 is a workaround for https://github.com/rust-lang/rust-bindgen/issues/753
* Functional macro are not expanded with bindgen, e.g. ioctl are automatically ignored