Unverified Commit 85a540f6 by Christian Brauner Committed by Stéphane Graber

confile: config_rootfs_backend()

parent ef821d5a
...@@ -1946,12 +1946,14 @@ static int config_rootfs_options(const char *key, const char *value, ...@@ -1946,12 +1946,14 @@ static int config_rootfs_options(const char *key, const char *value,
} }
static int config_rootfs_backend(const char *key, const char *value, static int config_rootfs_backend(const char *key, const char *value,
struct lxc_conf *lxc_conf) struct lxc_conf *lxc_conf)
{ {
if (strlen(value) == 0) { if (config_value_empty(value)) {
free(lxc_conf->rootfs.bdev_type); free(lxc_conf->rootfs.bdev_type);
lxc_conf->rootfs.bdev_type = NULL; lxc_conf->rootfs.bdev_type = NULL;
return 0;
} }
if (!is_valid_bdev_type(value)) { if (!is_valid_bdev_type(value)) {
ERROR("Bad rootfs.backend: '%s'", value); ERROR("Bad rootfs.backend: '%s'", value);
return -1; return -1;
......
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