static int config_rootfs(const char *, const char *, struct lxc_conf *);
static int config_rootfs_mount(const char *, const char *, struct lxc_conf *);
static int config_rootfs_options(const char *, const char *, struct lxc_conf *);
-static int config_rootfs_bdev(const char *, const char *, struct lxc_conf *);
+static int config_rootfs_bdev_type(const char *, const char *, struct lxc_conf *);
static int config_pivotdir(const char *, const char *, struct lxc_conf *);
static int config_utsname(const char *, const char *, struct lxc_conf *);
static int config_hook(const char *, const char *, struct lxc_conf *lxc_conf);
{ "lxc.mount", config_fstab },
{ "lxc.rootfs.mount", config_rootfs_mount },
{ "lxc.rootfs.options", config_rootfs_options },
- { "lxc.rootfs.bdev", config_rootfs_bdev },
+ { "lxc.rootfs.bdev", config_rootfs_bdev_type },
{ "lxc.rootfs", config_rootfs },
{ "lxc.pivotdir", config_pivotdir },
{ "lxc.utsname", config_utsname },
return config_string_item(&lxc_conf->rootfs.options, value);
}
-static int config_rootfs_bdev(const char *key, const char *value,
+static int config_rootfs_bdev_type(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
if (!is_valid_bdev_type(value)) {
return -1;
}
- return config_string_item(&lxc_conf->rootfs.bdev, value);
+ return config_string_item(&lxc_conf->rootfs.bdev_type, value);
}
static int config_pivotdir(const char *key, const char *value,