From: Sidnei da Silva Date: Mon, 21 Oct 2013 21:22:58 +0000 (-0200) Subject: Store fssize and fstype in the right struct. X-Git-Tag: lxc-1.0.0.alpha3~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e135b2389b2fa0a9b27899d1f5d562c3da825a;p=thirdparty%2Flxc.git Store fssize and fstype in the right struct. When using the -Bloop option, fstype and fssize arguments were copied into the lvm struct of bdev specs instead of the loop struct. Signed-off-by: Sidnei da Silva Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxc_create.c b/src/lxc/lxc_create.c index 91f0e6c46..f831da4c6 100644 --- a/src/lxc/lxc_create.c +++ b/src/lxc/lxc_create.c @@ -233,9 +233,9 @@ int main(int argc, char *argv[]) spec.u.lvm.fssize = my_args.fssize; } else if (strcmp(my_args.bdevtype, "loop") == 0) { if (my_args.fstype) - spec.u.lvm.fstype = my_args.fstype; + spec.u.loop.fstype = my_args.fstype; if (my_args.fssize) - spec.u.lvm.fssize = my_args.fssize; + spec.u.loop.fssize = my_args.fssize; } else if (my_args.dir) { ERROR("--dir is not yet supported"); exit(1);