#include <../include/getsubopt.h>
#endif
-lxc_log_define(lxc_copy_ui, lxc);
-
enum mnttype {
LXC_MNT_BIND,
LXC_MNT_AUFS,
return -1;
}
- INFO("Created %s as %s of %s\n", newname, task ? "snapshot" : "copy", c->name);
-
lxc_container_put(clone);
return 0;
static int do_clone_rename(struct lxc_container *c, char *newname)
{
if (!c->rename(c, newname)) {
- ERROR("Error: Renaming container %s to %s failed\n", c->name, newname);
+ fprintf(stderr, "Error: Renaming container %s to %s failed\n", c->name, newname);
return -1;
}
- INFO("Renamed container %s to %s\n", c->name, newname);
-
return 0;
}
else if (len == 2) /* aufs=src:dest */
m->dest = construct_path(mntarray[1], false);
else
- INFO("Excess elements in mount specification");
+ printf("Excess elements in mount specification\n");
if (!m->dest)
goto err;
m->dest = construct_path(mntarray[1], false);
m->options = strdup(mntarray[2]);
} else {
- INFO("Excess elements in mount specification");
+ printf("Excess elements in mount specification\n");
}
if (!m->dest)
else if (len == 2) /* overlay=src:dest */
m->dest = construct_path(mntarray[1], false);
else
- INFO("Excess elements in mount specification");
+ printf("Excess elements in mount specification\n");
if (!m->dest)
goto err;