Commit 9f616d84 by Serge Hallyn

Merge pull request #963 from brauner/2016-04-11/lxc_create_best_storage

lxc-create: fix -B best option
parents e2a34839 fb5ab35b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment