Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DetachBlockISCSIDisk (0.34 sec)

  1. pkg/volume/iscsi/iscsi_test.go

    	globalPath := c.manager.MakeGlobalPDName(*c.iscsiDisk)
    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func (fake *fakeDiskManager) DetachBlockISCSIDisk(c iscsiDiskUnmapper, mntPath string) error {
    	globalPath := c.manager.MakeGlobalVDPDName(*c.iscsiDisk)
    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  2. pkg/volume/iscsi/iscsi_util.go

    	if err != nil {
    		return fmt.Errorf("failed to finish detachISCSIDisk, err: %v", err)
    	}
    	return nil
    }
    
    // DetachBlockISCSIDisk removes loopback device for a volume and detaches a volume from node
    func (util *ISCSIUtil) DetachBlockISCSIDisk(c iscsiDiskUnmapper, mapPath string) error {
    	if pathExists, pathErr := mount.PathExists(mapPath); pathErr != 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)
  3. pkg/volume/iscsi/iscsi.go

    // chance that operations are done on kubelet node during volume teardown sequences.
    func (c *iscsiDiskUnmapper) TearDownDevice(mapPath, _ string) error {
    	err := c.manager.DetachBlockISCSIDisk(*c, mapPath)
    	if err != nil {
    		return fmt.Errorf("iscsi: failed to detach disk: %s\nError: %v", mapPath, err)
    	}
    	klog.V(4).Infof("iscsi: %q is unmounted, deleting the directory", mapPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top