All of lore.kernel.org
 help / color / mirror / Atom feed
From: Integral <integral@archlinuxcn.org>
To: kent.overstreet@gmail.com, kent.overstreet@linux.dev,
	lihongbo22@huawei.com
Cc: mmpgouride@gmail.com, linux-bcachefs@vger.kernel.org,
	integral@archlinuxcn.org
Subject: [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled
Date: Sat,  9 Nov 2024 18:25:37 +0800	[thread overview]
Message-ID: <20241109102536.99885-2-integral@archlinuxcn.org> (raw)

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


             reply	other threads:[~2024-11-09 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-09 10:25 Integral [this message]
2024-11-19 14:52 ` [PATCH] bcachefs-tools: hide FUSE in usage when BCACHEFS_FUSE disabled Integral

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241109102536.99885-2-integral@archlinuxcn.org \
    --to=integral@archlinuxcn.org \
    --cc=kent.overstreet@gmail.com \
    --cc=kent.overstreet@linux.dev \
    --cc=lihongbo22@huawei.com \
    --cc=linux-bcachefs@vger.kernel.org \
    --cc=mmpgouride@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.