Skip to content

Commit

Permalink
run auplink before unmounting aufs
Browse files Browse the repository at this point in the history
  • Loading branch information
unclejack committed Jun 14, 2013
1 parent 452128f commit 2f67a62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ package docker

import (
"fmt"
"github.com/dotcloud/docker/utils"
"os"
"os/exec"
"path/filepath"
"syscall"
"time"
)

func Unmount(target string) error {
if err := exec.Command("auplink", target, "flush").Run(); err != nil {
utils.Debugf("[warning]: couldn't run auplink before unmount: %s", err)
}
if err := syscall.Unmount(target, 0); err != nil {
return err
}
Expand Down

0 comments on commit 2f67a62

Please sign in to comment.