The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2053
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) === Closes #1888 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 0dc568cd2653c3049376987d08bf3355a627c68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Thu, 26 May 2016 18:12:43 -0400 Subject: [PATCH] zfs: Mount if not mounted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #1888 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/storage_zfs.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lxd/storage_zfs.go b/lxd/storage_zfs.go index 8386ed8..d138918 100644 --- a/lxd/storage_zfs.go +++ b/lxd/storage_zfs.go @@ -79,6 +79,13 @@ func (s *storageZfs) Init(config map[string]interface{}) (storage, error) { // Things we don't need to care about func (s *storageZfs) ContainerStart(container container) error { + fs := fmt.Sprintf("containers/%s", container.Name()) + + // Just in case the container filesystem got unmounted + if !shared.IsMountPoint(shared.VarPath(fs)) { + s.zfsMount(fs) + } + return nil }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel