Documentation ¶
Index ¶
Constants ¶
View Source
const (
NotMountedErrorMessage = "not mounted" // Error while umount device that is already unmounted
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDeviceUtils ¶
type BlockDeviceUtils interface { Rescan(protocol Protocol) error ReloadMultipath() error Discover(volumeWwn string, deepDiscovery bool) (string, error) GetWwnByScsiInq(dev string) (string, error) DiscoverBySgInq(mpathOutput string, volumeWwn string) (string, error) Cleanup(mpath string) error CheckFs(mpath string) (bool, error) MakeFs(mpath string, fsType string) error MountFs(mpath string, mpoint string) error UmountFs(mpoint string) error IsDeviceMounted(devPath string) (bool, error) }
func NewBlockDeviceUtils ¶
func NewBlockDeviceUtils() BlockDeviceUtils
func NewBlockDeviceUtilsWithExecutor ¶
func NewBlockDeviceUtilsWithExecutor(executor utils.Executor) BlockDeviceUtils
Click to show internal directories.
Click to hide internal directories.