Commit 34e135b2 by Sidnei da Silva Committed by Serge Hallyn

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: 's avatarSidnei da Silva <sidnei.da.silva@canonical.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 055af165
...@@ -233,9 +233,9 @@ int main(int argc, char *argv[]) ...@@ -233,9 +233,9 @@ int main(int argc, char *argv[])
spec.u.lvm.fssize = my_args.fssize; spec.u.lvm.fssize = my_args.fssize;
} else if (strcmp(my_args.bdevtype, "loop") == 0) { } else if (strcmp(my_args.bdevtype, "loop") == 0) {
if (my_args.fstype) if (my_args.fstype)
spec.u.lvm.fstype = my_args.fstype; spec.u.loop.fstype = my_args.fstype;
if (my_args.fssize) if (my_args.fssize)
spec.u.lvm.fssize = my_args.fssize; spec.u.loop.fssize = my_args.fssize;
} else if (my_args.dir) { } else if (my_args.dir) {
ERROR("--dir is not yet supported"); ERROR("--dir is not yet supported");
exit(1); exit(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