The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/go-lxc/pull/70
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 0800e17ae9b3ada734eba5ba009d2123dcd06d37 Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Thu, 3 Nov 2016 17:24:08 +0000 Subject: [PATCH] c/r: make sure container is running before doing a dump Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- container.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/container.go b/container.go index d44315a..e794252 100644 --- a/container.go +++ b/container.go @@ -1556,6 +1556,13 @@ func (c *Container) Migrate(cmd uint, opts MigrateOptions) error { return err } + if (cmd != MIGRATE_RESTORE) { + if err := c.makeSure(isRunning); err != nil { + return err + } + } + + cdirectory := C.CString(opts.Directory) defer C.free(unsafe.Pointer(cdirectory))
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel