Add support for mounts on Darwin

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
This commit is contained in:
Marat Radchenko
2023-07-09 16:34:12 +03:00
parent 0789790f07
commit 2799b28e61
10 changed files with 200 additions and 171 deletions

View File

@@ -19,12 +19,13 @@
package os
import (
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/mount"
)
// Mount will call unix.Mount to mount the file.
func (RealOS) Mount(source string, target string, fstype string, flags uintptr, data string) error {
return mount.ErrNotImplementOnUnix
return errdefs.ErrNotImplemented
}
// Unmount will call Unmount to unmount the file.