github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/daemon/snapshotter/mount_default.go (about)

     1  //go:build !windows
     2  
     3  package snapshotter
     4  
     5  import (
     6  	"github.com/containerd/containerd/mount"
     7  	"github.com/Prakhar-Agarwal-byte/moby/daemon/graphdriver"
     8  	"golang.org/x/sys/unix"
     9  )
    10  
    11  func checker() graphdriver.Checker {
    12  	return graphdriver.NewDefaultChecker()
    13  }
    14  
    15  func unmount(target string) error {
    16  	return mount.Unmount(target, unix.MNT_DETACH)
    17  }