Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/volume/fc/disk_manager.go

    	AttachDisk(b fcDiskMounter) (string, error)
    	// Detaches the disk from the kubelet's host machine.
    	DetachDisk(disk fcDiskUnmounter, devicePath string) error
    	// Detaches the block disk from the kubelet's host machine.
    	DetachBlockFCDisk(disk fcDiskUnmapper, mntPath, devicePath string) error
    }
    
    // utility to mount a disk based filesystem
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/volume/fc/fc_util.go

    	arr := strings.Split(devicePath, "/")
    	dev := arr[len(arr)-1]
    	removeFromScsiSubsystem(dev, io)
    	return nil
    }
    
    // DetachBlockFCDisk detaches a volume from kubelet node, removes scsi device file
    // such as /dev/sdX from the node, and then removes loopback for the scsi device.
    func (util *fcUtil) DetachBlockFCDisk(c fcDiskUnmapper, mapPath, devicePath string) error {
    	// Check if devicePath is valid
    	if len(devicePath) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  3. pkg/volume/fc/fc_test.go

    	globalPath := c.manager.MakeGlobalPDName(*c.fcDisk)
    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	fake.detachCalled = true
    	return nil
    }
    
    func (fake *fakeDiskManager) DetachBlockFCDisk(c fcDiskUnmapper, mapPath, devicePath string) error {
    	err := os.RemoveAll(mapPath)
    	if err != nil {
    		return err
    	}
    	fake.detachCalled = true
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  4. pkg/volume/fc/fc.go

    }
    
    var _ volume.BlockVolumeUnmapper = &fcDiskUnmapper{}
    var _ volume.CustomBlockVolumeUnmapper = &fcDiskUnmapper{}
    
    func (c *fcDiskUnmapper) TearDownDevice(mapPath, devicePath string) error {
    	err := c.manager.DetachBlockFCDisk(*c, mapPath, devicePath)
    	if err != nil {
    		return fmt.Errorf("fc: failed to detach disk: %s\nError: %v", mapPath, err)
    	}
    	klog.V(4).Infof("fc: %s 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
    - 17.4K bytes
    - Viewed (0)
Back to top