Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 400 for Unmount (0.32 sec)

  1. pkg/volume/volume.go

    	GetAttributes() Attributes
    }
    
    // Unmounter interface provides methods to cleanup/unmount the volumes.
    type Unmounter interface {
    	Volume
    	// TearDown unmounts the volume from a self-determined directory and
    	// removes traces of the SetUp procedure.
    	TearDown() error
    	// TearDown unmounts the volume from the specified directory and
    	// removes traces of the SetUp procedure.
    	TearDownAt(dir string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. pkg/volume/portworx/portworx_util.go

    	return volumeclient.VolumeDriver(util.portworxClient), nil
    }
    
    // getLocalPortworxDriver returns driver connected to Portworx API server on volume host.
    //
    //	This is required to force certain operations (mount, unmount, detach, attach) to
    //	go to the volume host instead of the k8s service which might route it to any host. This pertains to how
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_linux_test.go

    	testContainer = "container0"
    	testSubpath   = 1
    )
    
    func setupFakeMounter(testMounts []string) *mount.FakeMounter {
    	mounts := []mount.MountPoint{}
    	for _, mountPoint := range testMounts {
    		mounts = append(mounts, mount.MountPoint{Device: "/foo", Path: mountPoint})
    	}
    	return mount.NewFakeMounter(mounts)
    }
    
    func getTestPaths(base string) (string, string) {
    	return filepath.Join(base, testVol),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  4. pkg/volume/fc/fc.go

    	}
    	return err
    }
    
    type fcDiskUnmounter struct {
    	*fcDisk
    	mounter    mount.Interface
    	deviceUtil util.DeviceUtil
    	exec       utilexec.Interface
    }
    
    var _ volume.Unmounter = &fcDiskUnmounter{}
    
    // Unmounts the bind mount, and detaches the disk only if the disk
    // resource was the last reference to that disk on the kubelet.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi.go

    		// TODO: extract from mount table in GetAttributes() to be sure?
    		b.mountedWithSELinuxContext = mounterArgs.SELinuxLabel != ""
    	}
    	return err
    }
    
    type iscsiDiskUnmounter struct {
    	*iscsiDisk
    	mounter    mount.Interface
    	exec       utilexec.Interface
    	deviceUtil ioutil.DeviceUtil
    }
    
    var _ volume.Unmounter = &iscsiDiskUnmounter{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/iscsi_util.go

    		}
    	}
    	return nil
    }
    
    // DetachDisk unmounts and detaches a volume from node
    func (util *ISCSIUtil) DetachDisk(c iscsiDiskUnmounter, mntPath string) error {
    	if pathExists, pathErr := mount.PathExists(mntPath); pathErr != nil {
    		return fmt.Errorf("error checking if path exists: %w", pathErr)
    	} else if !pathExists {
    		klog.Warningf("Warning: Unmount skipped because path does not exist: %v", mntPath)
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  7. pkg/volume/emptydir/empty_dir.go

    		return fmt.Errorf("failed to remove ready dir [%s]: %v", readyDir, removeErr)
    	}
    
    	if pathExists, pathErr := mount.PathExists(dir); pathErr != nil {
    		return fmt.Errorf("error checking if path exists: %w", pathErr)
    	} else if !pathExists {
    		klog.Warningf("Warning: Unmount skipped because path does not exist: %v", dir)
    		return nil
    	}
    
    	// Figure out the medium.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. pkg/volume/util/util.go

    				seLinuxOptions = effectiveContainerSecurity.SELinuxOptions
    			}
    		}
    
    		if container.VolumeMounts != nil {
    			for _, mount := range container.VolumeMounts {
    				mounts.Insert(mount.Name)
    				if seLinuxOptions != nil {
    					seLinuxContainerContexts[mount.Name] = append(seLinuxContainerContexts[mount.Name], seLinuxOptions.DeepCopy())
    				}
    			}
    		}
    		if container.VolumeDevices != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_executor_test.go

    			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")
    	}
    }
    
    func TestOperationExecutor_AttachSingleNodeVolumeConcurrentlyToSameNode(t *testing.T) {
    	t.Parallel()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    		PodUID:              types.UID(volume.podName),
    	}
    	metrics.ForceCleanedFailedVolumeOperationsTotal.Inc()
    	// TODO: Currently cleanupMounts only includes UnmountVolume operation. In the next PR, we will add
    	// to unmount both volume and device in the same routine.
    	err := rc.operationExecutor.UnmountVolume(mountedVolume, rc.actualStateOfWorld, rc.kubeletPodsDir)
    	if err != nil {
    		metrics.ForceCleanedFailedVolumeOperationsErrorsTotal.Inc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top