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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user