Skip to content

Commit

Permalink
btrfs-progs: device add: update --nodiscard spec to take no argument
Browse files Browse the repository at this point in the history
By mistake in the original commit 992fd23 ("btrfs-progs: add
nodiscard option to device add") the --nodiscard could take an optional
parameter but this was not intended. This is also not documented so
there's little chance somebody would actually use it like that.

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed Jan 30, 2025
1 parent 44bd0f6 commit e162294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static int cmd_device_add(const struct cmd_struct *cmd,
int c;
enum { GETOPT_VAL_ENQUEUE = GETOPT_VAL_FIRST };
static const struct option long_options[] = {
{ "nodiscard", optional_argument, NULL, 'K'},
{ "nodiscard", no_argument, NULL, 'K' },
{ "force", no_argument, NULL, 'f'},
{ "enqueue", no_argument, NULL, GETOPT_VAL_ENQUEUE},
{ NULL, 0, NULL, 0}
Expand Down

0 comments on commit e162294

Please sign in to comment.