Skip to content

Commit 6afa2ff

Browse files
committed
[DO NOT MERGE][WIP] Changes to debug VSMB
Signed-off-by: Amit Barve <ambarve@microsoft.com>
1 parent acba676 commit 6afa2ff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/uvm/create_wcow.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,18 @@ func prepareSecurityConfigDoc(ctx context.Context, uvm *UtilityVM, opts *Options
429429
scsi.Slot{Controller: 0, LUN: 1},
430430
scsi.Slot{Controller: 0, LUN: 2})
431431

432+
vsmbOpts := &hcsschema.VirtualSmbShareOptions{
433+
ReadOnly: true,
434+
ShareRead: true,
435+
NoOplocks: true,
436+
}
437+
438+
doc.VirtualMachine.Devices.VirtualSmb.Shares = []hcsschema.VirtualSmbShare{{
439+
Name: "hcsshare1",
440+
Path: "C:\\testdata",
441+
Options: vsmbOpts,
442+
}}
443+
432444
return doc, nil
433445
}
434446

0 commit comments

Comments
 (0)