Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for UnmountDevice (0.3 sec)

  1. pkg/volume/flexvolume/driver-call.go

    	isAttached = "isattached"
    
    	attachCmd        = "attach"
    	waitForAttachCmd = "waitforattach"
    	mountDeviceCmd   = "mountdevice"
    
    	detachCmd        = "detach"
    	unmountDeviceCmd = "unmountdevice"
    
    	mountCmd   = "mount"
    	unmountCmd = "unmount"
    
    	expandVolumeCmd = "expandvolume"
    	expandFSCmd     = "expandfs"
    
    	// Option keys
    	optionFSType         = "kubernetes.io/fsType"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 02:39:55 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_executor_test.go

    	pdName := "pd-volume"
    
    	// Act
    	for i := range attachedVolumes {
    		attachedVolumes[i] = AttachedVolume{
    			VolumeName: v1.UniqueVolumeName(pdName),
    			NodeName:   "node-name",
    		}
    		oe.UnmountDevice(attachedVolumes[i], nil /* actualStateOfWorldMounterUpdater */, nil /* mount.Interface */)
    	}
    
    	// Assert
    	if !isOperationRunSerially(ch, quit) {
    		t.Fatalf("Unmount device operations should not start concurrently")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. pkg/volume/util/operationexecutor/operation_executor.go

    	UnmountVolume(volumeToUnmount MountedVolume, actualStateOfWorld ActualStateOfWorldMounterUpdater, podsDir string) error
    
    	// If a volume has 'Filesystem' volumeMode, UnmountDevice unmounts the
    	// volumes global mount path from the device (for attachable volumes only,
    	// freeing it for detach. It then updates the actual state of the world to
    	// reflect that.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			deviceToDetach := operationexecutor.AttachedVolume{VolumeSpec: tmpSpec, PluginName: "fake-file-plugin"}
    			err := oex.UnmountDevice(deviceToDetach, asw, hostutil)
    			// Assert
    			if assert.Error(t, err) {
    				assert.Contains(t, err.Error(), tc.expectedErrMsg)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    	defer detacher.pluginLock.Unlock()
    	detacher.detachedVolumeMap[string(nodeName)] = append(detacher.detachedVolumeMap[string(nodeName)], volumeName)
    	return nil
    }
    
    func (detacher *testPluginDetacher) UnmountDevice(deviceMountPath string) error {
    	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)
  6. pkg/volume/csi/csi_block.go

     - operation_executor.UnmountVolume
       - csi.GetPodDeviceMapPath
       - util.UnmapBlockVolume
       - csi.UnmapPodDevice
         - NodeUnpublishVolume
       - ASW.MarkVolumeAsUnmounted
    
     - operation_executor.UnmountDevice
       - csi.TearDownDevice
         - NodeUnstageVolume
       - ASW.MarkDeviceAsUnmounted
    
    After successful MountVolume for block volume, directory structure will be like below:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  7. pkg/volume/local/local_test.go

    			t.Errorf("DeviceMounter.MountDevice() failed: %v", err)
    		}
    	}
    
    	du, err := plug.NewDeviceUnmounter()
    	if err != nil {
    		t.Fatalf("Create device unmounter error: %v", err)
    	}
    
    	err = du.UnmountDevice(actualPath)
    	if err != nil {
    		t.Fatalf("Unmount device error: %v", err)
    	}
    }
    
    func TestFSGlobalPathAndMountDevice(t *testing.T) {
    	// FS global path testing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  8. pkg/volume/local/local.go

    	mounter := plugin.host.GetMounter(plugin.GetPluginName())
    	return mounter.GetMountRefs(deviceMountPath)
    }
    
    var _ volume.DeviceUnmounter = &deviceMounter{}
    
    func (dm *deviceMounter) UnmountDevice(deviceMountPath string) error {
    	// If the local PV is a block device,
    	// The deviceMountPath is generated to the format like :/var/lib/kubelet/plugins/kubernetes.io/local-volume/mounts/localpv.spec.Name;
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    		// pod B with context beta_t is already scheduled on the same node,
    		// using the same volumes
    		// The volumes from Pod A must be fully unmounted (incl. UnmountDevice)
    		// and mounted with new SELinux mount options for pod B.
    		// Without SELinux, kubelet can (and often does) reuse device mounted
    		// for A.
    		return vol.effectiveSELinuxMountFileLabel == seLinuxMountContext
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_attacher_test.go

    			}
    			// Clear out the client if specified
    			// The lookup to generate a new client will fail
    			if tc.unsetClient {
    				csiAttacher.csiClient = nil
    			}
    
    			// Run
    			err := csiAttacher.UnmountDevice(tc.deviceMountPath)
    			// Verify
    			if err != nil {
    				if !tc.shouldFail {
    					t.Errorf("test should not fail, but error occurred: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top