block_device_utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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

type Protocol

type Protocol int
const (
	SCSI Protocol = iota
	ISCSI
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL