Remove shelling out to mount

Also remove the target from the Mount struct because it should not be
used at all.  The target can be variable and set by a caller, not by the
snapshot drivers.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-01-17 13:26:56 -08:00
parent c0fdda03cc
commit a7a6270f2a
9 changed files with 28 additions and 101 deletions

View file

@ -163,7 +163,7 @@ func TestOverlayfsOverlayRead(t *testing.T) {
t.Error(err)
return
}
if err := containerd.MountFS(mounts, dest); err != nil {
if err := containerd.MountAll(mounts, dest); err != nil {
t.Error(err)
return
}