summaryrefslogtreecommitdiff
path: root/src/rust_to_c.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-08-01 18:33:22 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-08-01 18:35:33 -0400
commit6eda7d18318ad48e4e49515ed55f20230b670ed9 (patch)
treed342e6b708ffe152fa8bf3ac1f2c79fa4ea581ef /src/rust_to_c.h
parentc97bc37ae8a7849df1c5edd14f25b0bd8bd913dd (diff)
get_or_split_cmdline_devs() now scans for component devices
Fix accidental splitbrain issues caused by writing to only some of a filesystem's devices: now, all subcommands that take member devices will scan for all members before opening. Fixes: https://github.com/koverstreet/bcachefs/issues/924 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'src/rust_to_c.h')
-rw-r--r--src/rust_to_c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rust_to_c.h b/src/rust_to_c.h
new file mode 100644
index 00000000..4f23e1dd
--- /dev/null
+++ b/src/rust_to_c.h
@@ -0,0 +1,6 @@
+#ifndef _BCACHEFS_TOOLS_RUST_TO_C_H
+#define _BCACHEFS_TOOLS_RUST_TO_C_H
+
+char *bch2_scan_devices(char *);
+
+#endif /* _BCACHEFS_TOOLS_RUST_TO_C_H */