Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for prepareForMount (0.62 sec)

  1. pkg/volume/flexvolume/util.go

    	}
    	if spec.PersistentVolume != nil && spec.PersistentVolume.Spec.FlexVolume != nil {
    		return spec.PersistentVolume.Spec.FlexVolume.Options, nil
    	}
    	return nil, errNotFlexVolume
    }
    
    func prepareForMount(mounter mount.Interface, deviceMountPath string) (bool, error) {
    
    	notMnt, err := mounter.IsLikelyNotMountPoint(deviceMountPath)
    	if err != nil {
    		if os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/mounter.go

    	return f.SetUpAt(f.GetPath(), mounterArgs)
    }
    
    // SetUpAt creates new directory.
    func (f *flexVolumeMounter) SetUpAt(dir string, mounterArgs volume.MounterArgs) error {
    	// Mount only once.
    	alreadyMounted, err := prepareForMount(f.mounter, dir)
    	if err != nil {
    		return err
    	}
    	if alreadyMounted {
    		return nil
    	}
    
    	call := f.plugin.NewDriverCall(mountCmd)
    
    	// Interface parameters
    	call.Append(dir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/attacher.go

    func (a *flexVolumeAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string, _ volume.DeviceMounterArgs) error {
    	// Mount only once.
    	alreadyMounted, err := prepareForMount(a.plugin.host.GetMounter(a.plugin.GetPluginName()), deviceMountPath)
    	if err != nil {
    		return err
    	}
    	if alreadyMounted {
    		return nil
    	}
    
    	call := a.plugin.NewDriverCall(mountDeviceCmd)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 03 23:29:42 UTC 2021
    - 3.6K bytes
    - Viewed (0)
Back to top