diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 08:27:30 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 09:14:11 -0900 |
commit | ac1b32acb4ca8c59c0e4911a8d3b27fd72dc54af (patch) | |
tree | e73a6ea5ddb6f3ece6a3e6c069ffa9ecc5e1ee44 /bcache.c | |
parent | a17f7bcec7ed810a247c24e56229af8f43a9a6ae (diff) |
cmd_device_fail
Add a comamnd for setting a device as failed, update bcache sources
Diffstat (limited to 'bcache.c')
-rw-r--r-- | bcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -43,6 +43,7 @@ static void usage(void) "Commands for managing a specific device in a filesystem:\n" " device_show Show information about a formatted device\n" " device_add Add a device to an existing (running) filesystem\n" + " device_fail Mark a device as failed\n" " device_remove Remove a device from an existing (running) filesystem\n" "\n" "Repair:\n" @@ -95,6 +96,8 @@ int main(int argc, char *argv[]) return cmd_device_show(argc, argv); if (!strcmp(cmd, "device_add")) return cmd_device_add(argc, argv); + if (!strcmp(cmd, "device_fail")) + return cmd_device_fail(argc, argv); if (!strcmp(cmd, "device_remove")) return cmd_device_remove(argc, argv); |