mirror of
git://github.com/lxc/lxc
synced 2025-09-03 12:09:34 +00:00
snapshot test: make sure that external snapshot was really created
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
committed by
Stéphane Graber
parent
ce7aee4d91
commit
e60e630c4a
@@ -126,6 +126,12 @@ int main(int argc, char *argv[])
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c2 = lxc_container_new(RESTNAME, NULL);
|
||||||
|
if (!c2 || !c2->is_defined(c2)) {
|
||||||
|
fprintf(stderr, "%s: %d: external snapshot restore failed\n", __FILE__, __LINE__);
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
lxc_container_put(c2);
|
||||||
|
|
||||||
c2 = c->clone(c, MYNAME2, NULL, LXC_CLONE_SNAPSHOT, "overlayfs", NULL, 0, NULL);
|
c2 = c->clone(c, MYNAME2, NULL, LXC_CLONE_SNAPSHOT, "overlayfs", NULL, 0, NULL);
|
||||||
if (!c2) {
|
if (!c2) {
|
||||||
|
Reference in New Issue
Block a user