public inbox for linux-bcachefs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled
@ 2024-11-09 10:25 Integral
  2024-11-19 14:52 ` Integral
  0 siblings, 1 reply; 2+ messages in thread
From: Integral @ 2024-11-09 10:25 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 77bf6215..9fe4fa1e 100644
--- a/c_src/bcachefs.c
+++ b/c_src/bcachefs.c
@@ -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


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

* Re: [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled
  2024-11-09 10:25 [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled Integral
@ 2024-11-19 14:52 ` Integral
  0 siblings, 0 replies; 2+ messages in thread
From: Integral @ 2024-11-19 14:52 UTC (permalink / raw)
  To: kent.overstreet, kent.overstreet, lihongbo22; +Cc: mmpgouride, linux-bcachefs

Hi, Kent

Give you a gentle ping :)


On 11/9/24 6:25 PM, 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>
> ---
>   c_src/bcachefs.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/c_src/bcachefs.c b/c_src/bcachefs.c
> index 77bf6215..9fe4fa1e 100644
> --- a/c_src/bcachefs.c
> +++ b/c_src/bcachefs.c
> @@ -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
>

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

end of thread, other threads:[~2024-11-19 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-09 10:25 [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled Integral
2024-11-19 14:52 ` Integral

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