Merge pull request #10658 from darwin-containers/reorganize-mount-unmount

Reorganize mount/unmount code so it is easier to add Darwin-specific implementation
This commit is contained in:
Akihiro Suda
2024-09-03 01:51:24 +00:00
committed by GitHub
13 changed files with 200 additions and 221 deletions

View File

@@ -20,11 +20,12 @@ package os
import (
"github.com/containerd/containerd/v2/core/mount"
"github.com/containerd/errdefs"
)
// 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.