The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3027
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: Christian Brauner <christian.brau...@ubuntu.com>
From febabcf79315c85d98065767e8e9c191a1f34aa6 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Mon, 6 Mar 2017 21:44:30 +0100 Subject: [PATCH] patches: use MNT_DETACH for lvm Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- lxd/patches.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lxd/patches.go b/lxd/patches.go index e51443c..6af6dde 100644 --- a/lxd/patches.go +++ b/lxd/patches.go @@ -918,7 +918,7 @@ func upgradeFromStorageTypeLvm(name string, d *Daemon, defaultPoolName string, d // Unmount the logical volume. oldContainerMntPoint := shared.VarPath("containers", ct) if shared.IsMountPoint(oldContainerMntPoint) { - err := tryUnmount(oldContainerMntPoint, 0) + err := tryUnmount(oldContainerMntPoint, syscall.MNT_DETACH) if err != nil { return err } @@ -1021,7 +1021,7 @@ func upgradeFromStorageTypeLvm(name string, d *Daemon, defaultPoolName string, d // Unmount the logical volume. oldSnapshotMntPoint := shared.VarPath("snapshots", cs) if shared.IsMountPoint(oldSnapshotMntPoint) { - err := tryUnmount(oldSnapshotMntPoint, 0) + err := tryUnmount(oldSnapshotMntPoint, syscall.MNT_DETACH) if err != nil { return err } @@ -1109,7 +1109,7 @@ func upgradeFromStorageTypeLvm(name string, d *Daemon, defaultPoolName string, d // Unmount the logical volume. oldImageMntPoint := shared.VarPath("images", img+".lv") if shared.IsMountPoint(oldImageMntPoint) { - err := tryUnmount(oldImageMntPoint, 0) + err := tryUnmount(oldImageMntPoint, syscall.MNT_DETACH) if err != nil { return err }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel