Skip to content

Support passing in propagation flags on scsi mounts for LCOW#987

Merged
katiewasnothere merged 1 commit intomicrosoft:masterfrom
katiewasnothere:fix_propagation_lcow
Apr 13, 2021
Merged

Support passing in propagation flags on scsi mounts for LCOW#987
katiewasnothere merged 1 commit intomicrosoft:masterfrom
katiewasnothere:fix_propagation_lcow

Conversation

@katiewasnothere
Copy link

See microsoft/opengcs#398 for details.

This PR updates the fields for scsi disk attachment to match those in the PR mentioned above and adds a test for the expected behavior of rshared mount propagation for scsi disks.

Signed-off-by: Kathryn Baldauf kabaldau@microsoft.com

@katiewasnothere katiewasnothere requested a review from a team as a code owner March 26, 2021 05:59
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe revendor into /test and fix up the functional tests in a separate commit but this LGTM!

@katiewasnothere
Copy link
Author

@kevpar Could you take another look?

// `vmAccess` indicates what access to grant the vm for the hostpath
func (uvm *UtilityVM) AddSCSI(ctx context.Context, hostPath string, uvmPath string, readOnly bool, vmAccess VMAccessType) (*SCSIMount, error) {
return uvm.addSCSIActual(ctx, hostPath, uvmPath, "VirtualDisk", readOnly, vmAccess)
func (uvm *UtilityVM) AddSCSI(ctx context.Context, hostPath string, uvmPath string, readOnly bool, options []string, vmAccess VMAccessType) (*SCSIMount, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it will be clearer if we call this guestOptions instead of options.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed all instances in the scsi file. Does that work?

Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants