Documentation
¶
Index ¶
- type Multipath
- func (mp *Multipath) AddPath(ctx context.Context, path string) error
- func (mp *Multipath) AddWWID(ctx context.Context, wwid string) error
- func (mp *Multipath) DelPath(ctx context.Context, path string) error
- func (mp *Multipath) FlushDevice(ctx context.Context, deviceMapName string) error
- func (mp *Multipath) GetDMWWID(ctx context.Context, deviceMapName string) (string, error)
- func (mp *Multipath) GetMpathMinorByMpathName(ctx context.Context, mpath string) (string, bool, error)
- func (mp *Multipath) GetMultipathNameAndPaths(ctx context.Context, wwid string) (string, []string, error)
- func (mp *Multipath) IsDaemonRunning(ctx context.Context) bool
- func (mp *Multipath) RemoveDeviceFromWWIDSFile(ctx context.Context, wwid string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multipath ¶ added in v1.3.0
type Multipath struct {
// contains filtered or unexported fields
}
Multipath defines implementation of LimitedOSExec and LimitedFile path interfaces
func NewMultipath ¶
NewMultipath initializes multipath struct
func (*Multipath) AddPath ¶ added in v1.3.0
AddPath add a path to multipathd for monitoring.
This has the effect of multipathd checking an already checked device for multipath. Together with `multipath_add_wwid` we can create a multipath when there's only 1 path.
func (*Multipath) AddWWID ¶ added in v1.3.0
AddWWID add wwid to the list of know multipath wwids.
This has the effect of multipathd being willing to create a dm for a multipath even when there's only 1 device.
func (*Multipath) FlushDevice ¶ added in v1.3.0
FlushDevice flush multipath device. To prevent stucking always use context.WithTimeout
func (*Multipath) GetMpathMinorByMpathName ¶ added in v1.15.0
func (*Multipath) GetMultipathNameAndPaths ¶ added in v1.15.0
func (*Multipath) IsDaemonRunning ¶ added in v1.3.0
IsDaemonRunning check if multipath daemon running
Click to show internal directories.
Click to hide internal directories.