Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for SetCounter (0.12 sec)

  1. pkg/volume/hostpath/host_path.go

    	}
    	return &hostPathMounter{
    		hostPath:      &hostPath{path: path, pathType: pathType},
    		readOnly:      readOnly,
    		mounter:       plugin.host.GetMounter(plugin.GetPluginName()),
    		hu:            kvh.GetHostUtil(),
    		noTypeChecker: plugin.noTypeChecker,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block.go

    	// At this point it contains only "data/vol_data.json" and empty "dev/".
    	volumeDir := getVolumePluginDir(m.specName, m.plugin.host)
    	mounter := m.plugin.host.GetMounter(m.plugin.GetPluginName())
    	if err := removeall.RemoveAllOneFilesystem(mounter, volumeDir); err != nil {
    		return err
    	}
    
    	return nil
    }
    
    // UnmapPodDevice unmaps the block device path.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_mounter.go

    			return true
    		}
    	}
    	return false
    }
    
    // isDirMounted returns the !notMounted result from IsLikelyNotMountPoint check
    func isDirMounted(plug *csiPlugin, dir string) (bool, error) {
    	mounter := plug.host.GetMounter(plug.GetPluginName())
    	notMnt, err := mounter.IsLikelyNotMountPoint(dir)
    	if err != nil && !os.IsNotExist(err) {
    		klog.Error(log("isDirMounted IsLikelyNotMountPoint test failed for dir [%v]", dir))
    		return false, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
  4. pkg/volume/csi/csi_plugin.go

    }
    
    func (p *csiPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error) {
    	return p.NewDetacher()
    }
    
    func (p *csiPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error) {
    	m := p.host.GetMounter(p.GetPluginName())
    	return m.GetMountRefs(deviceMountPath)
    }
    
    // BlockVolumePlugin methods
    var _ volume.BlockVolumePlugin = &csiPlugin{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  5. pkg/volume/util/util.go

    // and Exec taken from given VolumeHost.
    func NewSafeFormatAndMountFromHost(pluginName string, host volume.VolumeHost) *mount.SafeFormatAndMount {
    	mounter := host.GetMounter(pluginName)
    	exec := host.GetExec(pluginName)
    	return &mount.SafeFormatAndMount{Interface: mounter, Exec: exec}
    }
    
    // GetVolumeMode retrieves VolumeMode from pv.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	return nil, fmt.Errorf("NewWrapperUnmounter not supported by Attach/Detach controller's VolumeHost implementation")
    }
    
    func (adc *attachDetachController) GetMounter(pluginName string) mount.Interface {
    	return nil
    }
    
    func (adc *attachDetachController) GetHostName() string {
    	return ""
    }
    
    func (adc *attachDetachController) GetHostIP() (net.IP, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. pkg/volume/plugins.go

    	// the provided spec.  See comments on NewWrapperMounter for more
    	// context.
    	NewWrapperUnmounter(volName string, spec Spec, podUID types.UID) (Unmounter, error)
    
    	// Get mounter interface.
    	GetMounter(pluginName string) mount.Interface
    
    	// Returns the hostname of the host kubelet is running on
    	GetHostName() string
    
    	// Returns host IP or nil in the case of error.
    	GetHostIP() (net.IP, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top