Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for GetDeviceMountPath (0.55 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/csi/csi_test.go

    				csiDevMounter := getCsiAttacherFromDeviceMounter(devMounter, test.watchTimeout)
    				csiDevMounter.csiClient = csiClient
    				devMountPath, err := csiDevMounter.GetDeviceMountPath(volSpec)
    				if err != nil {
    					t.Fatalf("csiTest.VolumeAll deviceMounter.GetdeviceMountPath failed %s", err)
    				}
    				if err := csiDevMounter.MountDevice(volSpec, devicePath, devMountPath, volume.DeviceMounterArgs{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  3. 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)
  4. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    	}
    	return attacher.manager.AttachDisk(*mounter)
    }
    
    func (attacher *iscsiAttacher) GetDeviceMountPath(
    	spec *volume.Spec) (string, error) {
    	mounter, err := volumeSpecToMounter(spec, attacher.host, attacher.targetLocks, nil)
    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. 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)
  6. pkg/volume/csi/csi_attacher.go

    	return attached, nil
    }
    
    func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	klog.V(4).Info(log("attacher.GetDeviceMountPath(%v)", spec))
    	deviceMountPath, err := makeDeviceMountPath(c.plugin, spec)
    	if err != nil {
    		return "", errors.New(log("attacher.GetDeviceMountPath failed to make device mount path: %v", err))
    	}
    	klog.V(4).Infof("attacher.GetDeviceMountPath succeeded, deviceMountPath: %s", deviceMountPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  7. 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)
  8. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	return fakePath, nil
    }
    
    func (attacher *testPluginAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	attacher.pluginLock.Lock()
    	defer attacher.pluginLock.Unlock()
    	if spec == nil {
    		*attacher.ErrorEncountered = true
    		return "", fmt.Errorf("GetDeviceMountPath called with nil volume spec")
    	}
    	return "", nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. 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)
  10. pkg/volume/fc/attacher.go

    	if err != nil {
    		klog.Warningf("failed to get fc mounter: %v", err)
    		return "", err
    	}
    	return attacher.manager.AttachDisk(*mounter)
    }
    
    func (attacher *fcAttacher) GetDeviceMountPath(
    	spec *volume.Spec) (string, error) {
    	mounter, err := volumeSpecToMounter(spec, attacher.host)
    	if err != nil {
    		klog.Warningf("failed to get fc mounter: %v", err)
    		return "", err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 31 12:02:51 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top