scsi

package
v0.10.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerLunToName

func ControllerLunToName(ctx context.Context, controller, lun uint8) (_ string, err error)

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.

func UnplugDevice

func UnplugDevice(ctx context.Context, controller, lun uint8) (err error)

UnplugDevice is just a wrapper over actual unplugDevice call. This wrapper finds out the controller number from the controller GUID string and calls unplugDevice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL