Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsOperationFinishedError (0.21 sec)

  1. pkg/volume/csi/csi_mounter.go

    	defer func() {
    		// Only if there was an error and volume operation was considered
    		// finished, we should remove the directory.
    		if err != nil && volumetypes.IsOperationFinishedError(err) {
    			// attempt to cleanup volume mount dir
    			if removeerr := removeMountDir(c.plugin, dir); removeerr != nil {
    				klog.Error(log("mounter.SetUpAt failed to remove mount dir after error [%s]: %v", dir, removeerr))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block.go

    	}
    
    	// Call NodeStageVolume
    	stagingPath, err := m.stageVolumeForBlock(ctx, csiClient, accessMode, csiSource, attachment)
    	if err != nil {
    		if volumetypes.IsOperationFinishedError(err) {
    			cleanupErr := m.cleanupOrphanDeviceFiles()
    			if cleanupErr != nil {
    				// V(4) for not so serious error
    				klog.V(4).Infof("Failed to clean up block volume directory %s", cleanupErr)
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher.go

    	err = saveVolumeData(dataDir, volDataFileName, data)
    	defer func() {
    		// Only if there was an error and volume operation was considered
    		// finished, we should remove the directory.
    		if err != nil && volumetypes.IsOperationFinishedError(err) {
    			// clean up metadata
    			klog.Errorf(log("attacher.MountDevice failed: %v", err))
    			if err := removeMountDir(c.plugin, deviceMountPath); err != 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/csi/csi_plugin.go

    	defer func() {
    		// Only if there was an error and volume operation was considered
    		// finished, we should remove the directory.
    		if err != nil && volumetypes.IsOperationFinishedError(err) {
    			// attempt to cleanup volume mount dir.
    			if err = removeMountDir(p, dataDir); err != nil {
    				klog.Error(log("attacher.MountDevice failed to remove mount dir after error [%s]: %v", dataDir, err))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top