Skip to content

Conversation

@pomahade
Copy link
Contributor

No description provided.

Signed-off-by: Pooja Mahadev Soundalgekar <pomahade@microsoft.com>
}

const (
device = `\\?\GLOBALROOT\Device\vmsmb\VSMB-{dcc079ae-60ba-4d07-847c-3493609c0870}\defaultEmptyShare`
Copy link
Contributor

Choose a reason for hiding this comment

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

will \\\\?\\VMSMB\\VSMB-{dcc079ae-60ba-4d07-847c-3493609c0870}\defaultEmtpyShare result in the same? We have vsmbSharePrefix defined under internal/uvm/vsmb.go, so I wonder if you can reuse that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does not seem to work on testing.

sidecar "github.com/Microsoft/hcsshim/internal/gcs-sidecar"
)

var vsmbKeepAliveHandle windows.Handle
Copy link
Contributor

Choose a reason for hiding this comment

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

is this strictly necessary? you may have the VsmbMain function return a handle, instead of passing a pointer in. Also, as we're finalizing this feature, you may want to consider returning an error in case we fail to setup LMR/dummy share, instead of silently failing as we do now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to make the handle global so it's available until end of process. We do add error log inside vsmb.go in failure case, whats the point of returning an error?

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