1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver/aufs/mount.go

18 lines
410 B
Go
Raw Normal View History

// +build linux
package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs"
import (
2013-06-04 21:30:47 +03:00
"os/exec"
"github.com/docker/docker/pkg/mount"
)
// Unmount the target specified.
func Unmount(target string) error {
2013-06-04 21:30:47 +03:00
if err := exec.Command("auplink", target, "flush").Run(); err != nil {
logger.WithError(err).Warnf("Couldn't run auplink before unmount %s", target)
2013-06-04 21:30:47 +03:00
}
return mount.Unmount(target)
}