Skip to contentSkip to conversation

bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled

PATCH RESEND Applied Integral 2 participants 2 messages Mar 28, 2025

lore
Share & tools
lore

Integral

author
#0 lore raw

PATCH RESEND 1/1 bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled

When BCACHEFS_FUSE is disabled or not defined, FUSE section shouldn't be displayed in bcachefs usage (--help).

---
 c_src/bcachefs.c | 2 ++
 1 file changed, 2 insertions(+)
c_src/bcachefs.c +2 -0
index aed9c261..f2a1449e 100644
@@ -93,9 +93,11 @@ void bcachefs_usage(void)
 	     "  list                     List filesystem metadata in textual form\n"
 	     "  list_journal             List contents of journal\n"
 	     "\n"
+#ifdef BCACHEFS_FUSE
 	     "FUSE:\n"
 	     "  fusemount                Mount a filesystem via FUSE\n"
 	     "\n"
+#endif
 	     "Miscellaneous:\n"
          "  completions              Generate shell completions\n"
 	     "  version                  Display the version of the invoked bcachefs tool\n");
Signature · 1 line
2.49.0
#1 lore raw
Quoted 4 lines · Integral

When BCACHEFS_FUSE is disabled or not defined, FUSE section shouldn't be displayed in bcachefs usage (--help).

Thanks, applied

Quoted 23 lines
---
 c_src/bcachefs.c | 2 ++
 1 file changed, 2 insertions(+)
c_src/bcachefs.c +2 -0
index aed9c261..f2a1449e 100644
@@ -93,9 +93,11 @@ void bcachefs_usage(void)
 	     "  list                     List filesystem metadata in textual form\n"
 	     "  list_journal             List contents of journal\n"
 	     "\n"
+#ifdef BCACHEFS_FUSE
 	     "FUSE:\n"
 	     "  fusemount                Mount a filesystem via FUSE\n"
 	     "\n"
+#endif
 	     "Miscellaneous:\n"
          "  completions              Generate shell completions\n"
 	     "  version                  Display the version of the invoked bcachefs tool\n");
Signature · 1 line
2.49.0