2
0
mirror of git://github.com/lxc/lxc synced 2025-09-05 05:59:34 +00:00

lxc-create: fix -B best option

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
This commit is contained in:
Christian Brauner
2016-04-11 17:13:16 +02:00
parent aa5470485e
commit fb5ab35bfa

View File

@@ -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);
}