docker/graphdriver/aufs/mount.go

18 строки
351 B
Go
Исходник Обычный вид История

package aufs
import (
2013-06-04 22:30:47 +04:00
"github.com/dotcloud/docker/utils"
"os/exec"
"syscall"
)
func Unmount(target string) error {
2013-06-04 22:30:47 +04:00
if err := exec.Command("auplink", target, "flush").Run(); err != nil {
utils.Errorf("[warning]: couldn't run auplink before unmount: %s", err)
2013-06-04 22:30:47 +04:00
}
if err := syscall.Unmount(target, 0); err != nil {
return err
}
2013-11-08 22:17:51 +04:00
return nil
}