// AttachFileDevice takes a path to a regular file and makes it available as an // attached block device. func (v VolumePathHandler) AttachFileDevice(path string) (string, error) { … } // DetachFileDevice takes a path to the attached block device and // detach it from block device. func (v VolumePathHandler) DetachFileDevice(path string) error { … } // GetLoopDevice returns the full path to the loop device associated with the given path. func (v VolumePathHandler) GetLoopDevice(path string) (string, error) { … } // FindGlobalMapPathUUIDFromPod finds {pod uuid} bind mount under globalMapPath // corresponding to map path symlink, and then return global map path with pod uuid. func (v VolumePathHandler) FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error) { … }