Linux bcachefs list
 help / color / mirror / Atom feed
* [PATCH resend] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled
@ 2025-03-28  2:42 Integral
  2025-03-28 15:12 ` Kent Overstreet
  0 siblings, 1 reply; 2+ messages in thread
From: Integral @ 2025-03-28  2:42 UTC (permalink / raw)
  To: kent.overstreet, kent.overstreet, lihongbo22
  Cc: mmpgouride, linux-bcachefs, integral

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

Signed-off-by: Integral <integral@archlinuxcn.org>
---
 c_src/bcachefs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/c_src/bcachefs.c b/c_src/bcachefs.c
index aed9c261..f2a1449e 100644
--- a/c_src/bcachefs.c
+++ b/c_src/bcachefs.c
@@ -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");
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH resend] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled
  2025-03-28  2:42 [PATCH resend] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled Integral
@ 2025-03-28 15:12 ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2025-03-28 15:12 UTC (permalink / raw)
  To: Integral; +Cc: kent.overstreet, lihongbo22, mmpgouride, linux-bcachefs

On Fri, Mar 28, 2025 at 10:42:22AM +0800, Integral wrote:
> When BCACHEFS_FUSE is disabled or not defined, FUSE section shouldn't
> be displayed in bcachefs usage (--help).
> 
> Signed-off-by: Integral <integral@archlinuxcn.org>

Thanks, applied

> ---
>  c_src/bcachefs.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/c_src/bcachefs.c b/c_src/bcachefs.c
> index aed9c261..f2a1449e 100644
> --- a/c_src/bcachefs.c
> +++ b/c_src/bcachefs.c
> @@ -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");
> -- 
> 2.49.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-28 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28  2:42 [PATCH resend] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled Integral
2025-03-28 15:12 ` Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox