const losetupPath …
const ErrDeviceNotFound …
type BlockVolumePathHandler …
func NewBlockVolumePathHandler() BlockVolumePathHandler { … }
type VolumePathHandler …
func (v VolumePathHandler) MapDevice(devicePath string, mapPath string, linkName string, bindMount bool) error { … }
func mapBindMountDevice(v VolumePathHandler, devicePath string, mapPath string, linkName string) error { … }
func mapSymlinkDevice(v VolumePathHandler, devicePath string, mapPath string, linkName string) error { … }
func (v VolumePathHandler) UnmapDevice(mapPath string, linkName string, bindMount bool) error { … }
func unmapBindMountDevice(v VolumePathHandler, mapPath string, linkName string) error { … }
func unmapSymlinkDevice(v VolumePathHandler, mapPath string, linkName string) error { … }
func (v VolumePathHandler) RemoveMapPath(mapPath string) error { … }
func (v VolumePathHandler) IsSymlinkExist(mapPath string) (bool, error) { … }
func (v VolumePathHandler) IsDeviceBindMountExist(mapPath string) (bool, error) { … }
func (v VolumePathHandler) GetDeviceBindMountRefs(devPath string, mapPath string) ([]string, error) { … }