- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for DetachFileDevice (3.11 sec)
-
pkg/volume/util/volumepathhandler/volume_path_handler_unsupported.go
return "", fmt.Errorf("AttachFileDevice not supported for this build.") } // DetachFileDevice takes a path to the attached block device and // detach it from block device. func (v VolumePathHandler) DetachFileDevice(path string) error { return fmt.Errorf("DetachFileDevice not supported for this build.") } // GetLoopDevice returns the full path to the loop device associated with the given path.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.7K bytes - Viewed (0) -
pkg/volume/util/volumepathhandler/volume_path_handler_linux.go
if err != nil { return "", fmt.Errorf("makeLoopDevice failed for path %s: %v", path, err) } } return blockDevicePath, nil } // DetachFileDevice takes a path to the attached block device and // detach it from block device. func (v VolumePathHandler) DetachFileDevice(path string) error { loopPath, err := v.GetLoopDevice(path) if err != nil { if err.Error() == ErrDeviceNotFound {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 7.6K bytes - Viewed (0) -
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) -
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) -
pkg/volume/testing/testing.go
return "", nil } func (fv *FakeVolumePathHandler) AttachFileDevice(path string) (string, error) { // nil is success, else error return "", nil } func (fv *FakeVolumePathHandler) DetachFileDevice(path string) error { // nil is success, else error return nil } func (fv *FakeVolumePathHandler) GetLoopDevice(path string) (string, error) { // nil is success, else error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0)