Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for GetDeviceMountPath (0.3 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    		return
    	}
    }
    
    // getDeviceMountPath returns device mount path for block volume which
    // implements BlockVolumeMapper or filesystem volume which implements
    // DeviceMounter
    func getDeviceMountPath(gvi *globalVolumeInfo) (string, error) {
    	if gvi.blockVolumeMapper != nil {
    		// for block gvi, we return its global map path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/plugin.go

    	return mounter.GetMountRefs(deviceMountPath)
    }
    
    func (plugin *flexVolumePlugin) getDeviceMountPath(spec *volume.Spec) (string, error) {
    	volumeName, err := plugin.GetVolumeName(spec)
    	if err != nil {
    		return "", fmt.Errorf("GetVolumeName failed from getDeviceMountPath: %s", err)
    	}
    
    	mountsDir := filepath.Join(plugin.host.GetPluginDir(flexVolumePluginName), plugin.driverName, "mounts")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. pkg/volume/volume.go

    }
    
    // DeviceMounter can mount a block volume to a global path.
    type DeviceMounter interface {
    	// GetDeviceMountPath returns a path where the device should
    	// be mounted after it is attached. This is a global mount
    	// point which should be bind mounted for individual volumes.
    	GetDeviceMountPath(spec *Spec) (string, error)
    
    	// MountDevice mounts the disk to a global path which
    	// individual pods can then bind mount
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. pkg/volume/util/operationexecutor/operation_generator.go

    			deviceMountPath, err :=
    				volumeDeviceMounter.GetDeviceMountPath(volumeToMount.VolumeSpec)
    			if err != nil {
    				// On failure, return error. Caller will log and retry.
    				eventErr, detailedErr := volumeToMount.GenerateError("MountVolume.GetDeviceMountPath failed", err)
    				return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconstruct.go

    		}
    		// If the volume has device to mount, we mark its device as uncertain.
    		if gvl.deviceMounter != nil || gvl.blockVolumeMapper != nil {
    			deviceMountPath, err := getDeviceMountPath(gvl)
    			if err != nil {
    				klog.ErrorS(err, "Could not find device mount path for volume", "volumeName", gvl.volumeName)
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. pkg/volume/local/local.go

    		// the persistent-claim volume used to mount the PV
    		return spec.ReadOnly, nil
    	}
    
    	return false, fmt.Errorf("spec does not reference a Local volume type")
    }
    
    func (dm *deviceMounter) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	return dm.plugin.getGlobalLocalPath(spec)
    }
    
    func (plugin *localVolumePlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error) {
    	return &deviceMounter{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_attacher_test.go

    			if tc.skipPVCSISource {
    				spec.PersistentVolume.Spec.CSI = nil
    			}
    		}
    		// Run
    		mountPath, err := csiAttacher.GetDeviceMountPath(spec)
    
    		// Verify
    		if err != nil && !tc.shouldFail {
    			t.Errorf("test should not fail, but error occurred: %v", err)
    		} else if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  8. pkg/volume/testing/testing.go

    	}
    	return "/dev/sdb", nil
    }
    
    func (fv *FakeVolume) GetWaitForAttachCallCount() int {
    	fv.RLock()
    	defer fv.RUnlock()
    	return fv.WaitForAttachCallCount
    }
    
    func (fv *FakeVolume) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	fv.Lock()
    	defer fv.Unlock()
    	fv.GetDeviceMountPathCallCount++
    	return "", nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top