Skip to content

Commit

Permalink
lxc-create: fix -B best option
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
  • Loading branch information
Christian Brauner committed Apr 11, 2016
1 parent aa54704 commit fb5ab35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lxc/lxc_create.c
Expand Up @@ -241,7 +241,9 @@ int main(int argc, char *argv[])
my_args.bdevtype = "dir";

// Final check whether the user gave use a valid bdev type.
if (!is_valid_bdev_type(my_args.bdevtype) && strcmp(my_args.bdevtype, "_unset")) {
if (strcmp(my_args.bdevtype, "best") &&
strcmp(my_args.bdevtype, "_unset") &&
!is_valid_bdev_type(my_args.bdevtype)) {
fprintf(stderr, "%s is not a valid backing storage type.\n", my_args.bdevtype);
exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit fb5ab35

Please sign in to comment.