Documentation ¶
Index ¶
- func ControllerLunToName(ctx context.Context, controller, lun uint8) (_ string, err error)
- func Mount(ctx context.Context, controller, lun uint8, target string, readonly bool, ...) (err error)
- func Unmount(ctx context.Context, controller, lun uint8, target string, encrypted bool, ...) (err error)
- func UnplugDevice(ctx context.Context, controller, lun uint8) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerLunToName ¶
ControllerLunToName finds the `/dev/sd*` path to the SCSI device on `controller` index `lun`.
func Mount ¶
func Mount( ctx context.Context, controller, lun uint8, target string, readonly bool, encrypted bool, options []string, verityInfo *guestresource.DeviceVerityInfo, securityPolicy securitypolicy.SecurityPolicyEnforcer, ) (err error)
Mount is just a wrapper over actual mount call. This wrapper finds out the controller number from the controller GUID string and calls mount.
func Unmount ¶
func Unmount( ctx context.Context, controller, lun uint8, target string, encrypted bool, verityInfo *guestresource.DeviceVerityInfo, securityPolicy securitypolicy.SecurityPolicyEnforcer, ) (err error)
Unmount is just a wrapper over actual unmount call. This wrapper finds out the controller number from the controller GUID string and calls mount.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.