[lxc-devel] [patch 5a/6] [draft] extend lxc_conf with multifstab list

Andrian Nord nightnord at gmail.com
Tue Nov 17 23:28:42 UTC 2009


This is separated version of original patch updated for new git, with
missing part of multi-fstab support.

Signed-off-by: Andrian Nord <NightNord at gmail.com>

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 9d4285d..9fe3a31 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -816,7 +684,6 @@ out:
 int lxc_conf_init(const char *name, struct lxc_conf *conf)
 {
 	conf->rootfs = NULL;
-	conf->fstab = NULL;
 	conf->utsname = NULL;
 
 	conf->name = strdup(name);
@@ -830,6 +697,7 @@ int lxc_conf_init(const char *name, struct lxc_conf *conf)
 	conf->console[0] = '\0';
 	lxc_list_init(&conf->cgroup);
 	lxc_list_init(&conf->network);
+	lxc_list_init(&conf->fstab_files);
 	lxc_list_init(&conf->mount_list);
 	return 0;
 }
diff --git a/src/lxc/conf.h b/src/lxc/conf.h
index cf1b1f0..96ec178 100644
--- a/src/lxc/conf.h
+++ b/src/lxc/conf.h
@@ -132,13 +132,13 @@ struct lxc_tty_info {
  */
 struct lxc_conf {
 	char *rootfs;
-	char *fstab;
 	char *name;
 	int tty;
 	int pts;
 	struct utsname *utsname;
 	struct lxc_list cgroup;
 	struct lxc_list network;
+	struct lxc_list fstab_files;
 	struct lxc_list mount_list;
 	struct lxc_tty_info tty_info;
 	char console[MAXPATHLEN];




More information about the lxc-devel mailing list