Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DetachFileDevice (0.26 sec)

  1. pkg/volume/util/volumepathhandler/volume_path_handler.go

    	// AttachFileDevice takes a path to a regular file and makes it available as an
    	// attached block device.
    	AttachFileDevice(path string) (string, error)
    	// DetachFileDevice takes a path to the attached block device and
    	// detach it from block device.
    	DetachFileDevice(path string) error
    	// GetLoopDevice returns the full path to the loop device associated with the given path.
    	GetLoopDevice(path string) (string, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. pkg/volume/util/util.go

    	globalUnmapPath,
    	podDeviceUnmapPath,
    	volumeMapName string,
    	podUID utypes.UID,
    ) error {
    	// Release file descriptor lock.
    	err := blkUtil.DetachFileDevice(filepath.Join(globalUnmapPath, string(podUID)))
    	if err != nil {
    		return fmt.Errorf("blkUtil.DetachFileDevice failed. globalUnmapPath:%s, podUID: %s: %v",
    			globalUnmapPath, string(podUID), err)
    	}
    
    	// unmap devicePath from pod volume path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
Back to top