mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
bcacheadm: Handle missing arg in rm-dev
Signed-off-by: Jacob Malevich <jam@daterainc.com> Issue DAT-1978 Change-Id: Iec1252f39bb1931ec4544b56b7db24c43253b8cd
This commit is contained in:
parent
2859e5d780
commit
ffb068c2b4
@ -476,6 +476,11 @@ int bcache_rm_device(NihCommand *command, char *const *args)
|
||||
{
|
||||
char *err;
|
||||
|
||||
if (!args[0]) {
|
||||
printf("Must provide a device name\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
err = remove_device(args[0], force_remove);
|
||||
if (err) {
|
||||
printf("bcache_rm_devices error: %s\n", err);
|
||||
|
Loading…
Reference in New Issue
Block a user