[prev in list] [next in list] [prev in thread] [next in thread]
List: lxc-devel
Subject: [lxc-devel] [lxd/master] zfs: Mount if not mounted
From: stgraber on Github <lxc-bot () linuxcontainers ! org>
Date: 2016-05-26 22:16:56
Message-ID: 20160526221656.6BA6D2CAE7 () mailman01 ! srv ! dcmtl ! stgraber ! net
[Download RAW message or body]
[Attachment #2 (text/x-mailbox)]
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 <stgraber@ubuntu.com>
[Attachment #3 (text/plain)]
From 0dc568cd2653c3049376987d08bf3355a627c68d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stéphane Graber?= <stgraber@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 <stgraber@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
}
[Attachment #4 (text/plain)]
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic