package scsi

import "github.com/Microsoft/hcsshim/internal/guest/storage/scsi"

Index

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.

Source Files

doc.go scsi.go

Version
v0.10.0-rc.0
Published
Jul 18, 2022
Platform
linux/amd64
Imports
20 packages
Last checked
7 seconds ago

Tools for package owners.