summaryrefslogtreecommitdiff
path: root/cmd_device.c
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2021-10-31 22:30:13 -0600
committerBrett Holman <bholman.devel@gmail.com>2021-11-01 08:12:35 -0600
commit9a649545a3263f2a6f85d724e8bcfbd6aeedcdaf (patch)
treeb018a3c051586915fd38d85a87d071e0c83fe90a /cmd_device.c
parent0da2d968eb7d78417693347597ce091a515f646b (diff)
Add more specific subcommand usage messages
The device, data, fs, and subvolume subcommands currently print out a generic usage message. Make these more specific. Signed-off-by: Brett Holman <bholman.devel@gmail.com>
Diffstat (limited to 'cmd_device.c')
-rw-r--r--cmd_device.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd_device.c b/cmd_device.c
index 87d85074..1d91ecdd 100644
--- a/cmd_device.c
+++ b/cmd_device.c
@@ -21,6 +21,25 @@
#include "libbcachefs/opts.h"
#include "tools-util.h"
+int device_usage(void)
+{
+ puts("bcachefs device - manage devices within a running filesystem\n"
+ "Usage: bcachefs device <CMD> [OPTION]\n"
+ "\n"
+ "Commands:\n"
+ " add add a new device to an existing filesystem\n"
+ " remove remove a device from an existing filesystem\n"
+ " online re-add an existing member to a filesystem\n"
+ " offline take a device offline, without removing it\n"
+ " evacuate migrate data off a specific device\n"
+ " set-state mark a device as failed\n"
+ " resize resize filesystem on a device\n"
+ " resize-journal resize journal on a device\n"
+ "\n"
+ "Report bugs to <linux-bcachefs@vger.kernel.org>");
+ return 0;
+}
+
static void device_add_usage(void)
{
puts("bcachefs device add - add a device to an existing filesystem\n"