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) IsDaemonRunning(ctx context.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multipath ¶
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 ¶
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 ¶
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 ¶
FlushDevice flush multipath device. To prevent stucking always use context.WithTimeout
Click to show internal directories.
Click to hide internal directories.