confile: add clearer for lxc.mount.auto

parent b4fa13cd
...@@ -117,6 +117,7 @@ static int clr_config_mount(const char *, struct lxc_conf *); ...@@ -117,6 +117,7 @@ static int clr_config_mount(const char *, struct lxc_conf *);
static int set_config_mount_auto(const char *, const char *, struct lxc_conf *); static int set_config_mount_auto(const char *, const char *, struct lxc_conf *);
static int get_config_mount_auto(const char *, char *, int, struct lxc_conf *); static int get_config_mount_auto(const char *, char *, int, struct lxc_conf *);
static int clr_config_mount_auto(const char *, struct lxc_conf *);
static int set_config_fstab(const char *, const char *, struct lxc_conf *); static int set_config_fstab(const char *, const char *, struct lxc_conf *);
static int get_config_fstab(const char *, char *, int, struct lxc_conf *); static int get_config_fstab(const char *, char *, int, struct lxc_conf *);
...@@ -239,7 +240,7 @@ static struct lxc_config_t config[] = { ...@@ -239,7 +240,7 @@ static struct lxc_config_t config[] = {
{ "lxc.loglevel", set_config_loglevel, get_config_loglevel, clr_config_loglevel, }, { "lxc.loglevel", set_config_loglevel, get_config_loglevel, clr_config_loglevel, },
{ "lxc.logfile", set_config_logfile, get_config_logfile, clr_config_logfile, }, { "lxc.logfile", set_config_logfile, get_config_logfile, clr_config_logfile, },
{ "lxc.mount.entry", set_config_mount, get_config_mount, clr_config_mount, }, { "lxc.mount.entry", set_config_mount, get_config_mount, clr_config_mount, },
{ "lxc.mount.auto", set_config_mount_auto, get_config_mount_auto, NULL }, { "lxc.mount.auto", set_config_mount_auto, get_config_mount_auto, clr_config_mount_auto, },
{ "lxc.mount", set_config_fstab, get_config_fstab, NULL }, { "lxc.mount", set_config_fstab, get_config_fstab, NULL },
{ "lxc.rootfs.mount", set_config_rootfs_mount, get_config_rootfs_mount, NULL }, { "lxc.rootfs.mount", set_config_rootfs_mount, get_config_rootfs_mount, NULL },
{ "lxc.rootfs.options", set_config_rootfs_options, get_config_rootfs_options, NULL }, { "lxc.rootfs.options", set_config_rootfs_options, get_config_rootfs_options, NULL },
...@@ -2755,9 +2756,6 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key) ...@@ -2755,9 +2756,6 @@ int lxc_clear_config_item(struct lxc_conf *c, const char *key)
} else if (strcmp(key, "lxc.cap.keep") == 0) { } else if (strcmp(key, "lxc.cap.keep") == 0) {
ret = lxc_clear_config_keepcaps(c); ret = lxc_clear_config_keepcaps(c);
} else if (strcmp(key, "lxc.mount.auto") == 0) {
ret = lxc_clear_automounts(c);
} else if (strncmp(key, "lxc.hook", 8) == 0) { } else if (strncmp(key, "lxc.hook", 8) == 0) {
ret = lxc_clear_hooks(c, key); ret = lxc_clear_hooks(c, key);
...@@ -4130,3 +4128,8 @@ static inline int clr_config_mount(const char *key, struct lxc_conf *c) ...@@ -4130,3 +4128,8 @@ static inline int clr_config_mount(const char *key, struct lxc_conf *c)
{ {
return lxc_clear_mount_entries(c); return lxc_clear_mount_entries(c);
} }
static inline int clr_config_mount_auto(const char *key, struct lxc_conf *c)
{
return lxc_clear_automounts(c);
}
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