Skip to contentSkip to conversation

bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled

PATCH Superseded Integral 1 participant 2 messages Nov 9, 2024 – Nov 19, 2024

lore
Share & tools
lore

Integral

author
#0 lore raw

PATCH 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 77bf6215..9fe4fa1e 100644
@@ -90,9 +90,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");

--
2.47.0

author
#1 lore raw

Hi, Kent

Give you a gentle ping :)

Quoted 27 lines · Integral

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 -1
index 77bf6215..9fe4fa1e 100644
@@ -90,9 +90,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");
--

2.47.0