Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for MountDevice (0.2 sec)

  1. pkg/volume/flexvolume/attacher.go

    func (a *flexVolumeAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	return a.plugin.getDeviceMountPath(spec)
    }
    
    // MountDevice is part of the volume.Attacher interface
    func (a *flexVolumeAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string, _ volume.DeviceMounterArgs) error {
    	// Mount only once.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 03 23:29:42 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/attacher-defaults.go

    	return a.plugin.getDeviceMountPath(spec)
    }
    
    // MountDevice is part of the volume.Attacher interface
    func (a *attacherDefaults) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string, mounter mount.Interface) error {
    	klog.Warning(logPrefix(a.plugin.flexVolumePlugin), "using default MountDevice for volume ", spec.Name(), ", device ", devicePath, ", deviceMountPath ", deviceMountPath)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher.go

    	return deviceMountPath, nil
    }
    
    func (c *csiAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string, deviceMounterArgs volume.DeviceMounterArgs) error {
    	klog.V(4).Infof(log("attacher.MountDevice(%s, %s)", devicePath, deviceMountPath))
    
    	if deviceMountPath == "" {
    		return errors.New(log("attacher.MountDevice failed, deviceMountPath is empty"))
    	}
    
    	// Setup
    	if spec == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/attacher_test.go

    	plugin.runner = fakeRunner(
    		assertDriverCall(t, notSupportedOutput(), mountDeviceCmd, rootDir+"/mount-dir", "/dev/sdx",
    			specJSON(plugin, spec, nil)),
    	)
    
    	a, _ := plugin.NewAttacher()
    	a.MountDevice(spec, "/dev/sdx", rootDir+"/mount-dir", volume.DeviceMounterArgs{})
    }
    
    func TestIsVolumeAttached(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	spec := fakeVolumeSpec()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 03 23:29:42 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. pkg/volume/local/local_test.go

    	err = dm.MountDevice(pvSpec, tmpBlockDir, expectedGlobalPath, volume.DeviceMounterArgs{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err := os.Stat(actualPath); err != nil {
    		if os.IsNotExist(err) {
    			t.Errorf("DeviceMounter.MountDevice() failed, device mount path not created: %s", actualPath)
    		} else {
    			t.Errorf("DeviceMounter.MountDevice() failed: %v", err)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_test.go

    				}
    				if err := csiDevMounter.MountDevice(volSpec, devicePath, devMountPath, volume.DeviceMounterArgs{}); err != nil {
    					t.Fatalf("csiTest.VolumeAll deviceMounter.MountDevice failed: %v", err)
    				}
    				t.Log("csiTest.VolumeAll device mounted at path:", devMountPath)
    			} else {
    				t.Log("csiTest.VolumeAll DeviceMountablePlugin not found, skipping deviceMounter.MountDevice")
    			}
    
    			// mount volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  7. pkg/volume/volume.go

    	// 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
    	// Note that devicePath can be empty if the volume plugin does not implement any of Attach and WaitForAttach methods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. pkg/volume/iscsi/attacher.go

    		// new iface name is <target portal>:<volume name>
    		mounter.Iface = mounter.Portals[0] + ":" + mounter.VolName
    	}
    	return attacher.manager.MakeGlobalPDName(*mounter.iscsiDisk), nil
    }
    
    func (attacher *iscsiAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string, mountArgs volume.DeviceMounterArgs) error {
    	mounter := attacher.host.GetMounter(iscsiPluginName)
    	notMnt, err := mounter.IsLikelyNotMountPoint(deviceMountPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			expectMount: true,
    			volumeMode:  v1.PersistentVolumeFilesystem,
    		},
    		{
    			name: "reconstructed volume fails to mount",
    			// FailOnSetupVolumeName: MountDevice succeeds, SetUp fails
    			volumePath:  filepath.Join("pod1uid", "volumes", "fake-plugin", volumetesting.FailOnSetupVolumeName),
    			expectMount: false,
    			volumeMode:  v1.PersistentVolumeFilesystem,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. pkg/volume/flexvolume/driver-call.go

    const (
    	// Driver calls
    	initCmd          = "init"
    	getVolumeNameCmd = "getvolumename"
    
    	isAttached = "isattached"
    
    	attachCmd        = "attach"
    	waitForAttachCmd = "waitforattach"
    	mountDeviceCmd   = "mountdevice"
    
    	detachCmd        = "detach"
    	unmountDeviceCmd = "unmountdevice"
    
    	mountCmd   = "mount"
    	unmountCmd = "unmount"
    
    	expandVolumeCmd = "expandvolume"
    	expandFSCmd     = "expandfs"
    
    	// Option keys
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 02:39:55 UTC 2021
    - 7.5K bytes
    - Viewed (0)
Back to top