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 *prot.DeviceVerityInfo, securityPolicy securitypolicy.SecurityPolicyEnforcer) (err error)
Mount creates a mount from the SCSI device on `controller` index `lun` to `target`
`target` will be created. On mount failure the created `target` will be automatically cleaned up.
If `encrypted` is set to true, the SCSI device will be encrypted using dm-crypt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.