Documentation
¶
Index ¶
- Constants
- func RemoveHolders(ctx context.Context, head T) error
- func WithLogger(log *plog.Logger) funcopt.O
- type L
- type T
- func (t T) ConfigureMultipath(ctx context.Context, verbosity int) error
- func (t T) Delete() error
- func (t T) Driver() (interface{}, error)
- func (t T) FlushBufs(ctx context.Context) error
- func (t T) Holders() (L, error)
- func (t T) Host() (string, error)
- func (t T) IsMultipath() (bool, error)
- func (t T) IsReadOnly() (bool, error)
- func (t T) IsReadWrite() (bool, error)
- func (t T) IsReady(ctx context.Context) (bool, error)
- func (t T) IsReservable() (bool, error)
- func (t T) IsSCSI() (bool, error)
- func (t T) Major() (uint32, error)
- func (t T) MajorMinor() (uint32, uint32, error)
- func (t T) MajorMinorStr() (string, error)
- func (t T) MarshalJSON() ([]byte, error)
- func (t T) Minor() (uint32, error)
- func (t T) MknodBlock(major, minor uint32) error
- func (t T) Model() (string, error)
- func (t T) MultipathParent() (*T, error)
- func (t T) Path() string
- func (t T) PromoteRW(ctx context.Context) error
- func (t T) RefreshMultipath(ctx context.Context) error
- func (t T) Remove(ctx context.Context) error
- func (t T) RemoveHolders(ctx context.Context) error
- func (t T) RemoveMultipath(ctx context.Context) error
- func (t T) Rescan() error
- func (t T) SCSIPaths() (L, error)
- func (t T) SetReadOnly(ctx context.Context) error
- func (t T) SetReadWrite(ctx context.Context) error
- func (t T) Size() (int64, error)
- func (t T) SlaveHosts() ([]string, error)
- func (t T) Slaves() (L, error)
- func (t T) Stat() (unix.Stat_t, error)
- func (t T) String() string
- func (t *T) UnmarshalJSON(b []byte) error
- func (t T) Vendor() (string, error)
- func (t T) Version() (string, error)
- func (t T) WWID() (string, error)
- func (t T) WaitReady(ctx context.Context) error
- func (t T) Wipe(ctx context.Context) error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (T) ConfigureMultipath ¶
func (T) FlushBufs ¶
FlushBufs drops the buffers of the device and of the devices it rests on, as the paths of a multipath device.
A write through a device, as a signature wiped or a superblock zeroed, does not reach the buffers of the devices below it, and blkid reads those: it goes on reporting what was erased, under the name of every path, until they are dropped.
func (T) IsMultipath ¶
func (T) IsReadOnly ¶
func (T) IsReadWrite ¶
func (T) IsReservable ¶
func (T) MajorMinorStr ¶
func (T) MarshalJSON ¶
MarshalJSON marshals the data as a quoted json string
func (T) MknodBlock ¶
func (T) MultipathParent ¶
func (T) Size ¶
Size is the bytes the device holds.
Seeking to the end of a block device answers its capacity, which saves an ioctl constant and works the same on a regular file.
func (T) SlaveHosts ¶
func (*T) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to value
Click to show internal directories.
Click to hide internal directories.