Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsLikelyNotMountPoint (0.12 sec)

  1. pkg/util/removeall/removeall_test.go

    	"testing"
    
    	utiltesting "k8s.io/client-go/util/testing"
    	"k8s.io/mount-utils"
    )
    
    type fakeMounter struct {
    	mount.FakeMounter
    }
    
    // IsLikelyNotMountPoint overrides mount.FakeMounter.IsLikelyNotMountPoint for our use.
    func (f *fakeMounter) IsLikelyNotMountPoint(file string) (bool, error) {
    	name := filepath.Base(file)
    	if strings.HasPrefix(name, "mount") {
    		return false, nil
    	}
    	if strings.HasPrefix(name, "err") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 20:35:13 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. pkg/volume/nfs/nfs.go

    	return c.TearDownAt(c.GetPath())
    }
    
    func (c *nfsUnmounter) TearDownAt(dir string) error {
    	// Use extensiveMountPointCheck to consult /proc/mounts. We can't use faster
    	// IsLikelyNotMountPoint (lstat()), since there may be root_squash on the
    	// NFS server and kubelet may not be able to do lstat/stat() there.
    	forceUnmounter, ok := c.mounter.(mount.MounterForceUnmounter)
    	if ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top