Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions internal/hcsoci/resources_lcow.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ func allocateLinuxResources(ctx context.Context, coi *createOptionsInternal, r *
case "bind":
case "physical-disk":
case "virtual-disk":
case "automanage-virtual-disk":
default:
// Unknown mount type
continue
Expand Down Expand Up @@ -103,7 +102,7 @@ func allocateLinuxResources(ctx context.Context, coi *createOptionsInternal, r *
uvmPathForShare = scsiMount.UVMPath
r.Add(scsiMount)
coi.Spec.Mounts[i].Type = "none"
} else if mount.Type == "virtual-disk" || mount.Type == "automanage-virtual-disk" {
} else if mount.Type == "virtual-disk" {
l.Debug("hcsshim::allocateLinuxResources Hot-adding SCSI virtual disk for OCI mount")
uvmPathForShare = fmt.Sprintf(uvm.LCOWGlobalMountPrefix, coi.HostingSystem.UVMMountCounter())

Expand All @@ -116,9 +115,6 @@ func allocateLinuxResources(ctx context.Context, coi *createOptionsInternal, r *

uvmPathForFile = scsiMount.UVMPath
uvmPathForShare = scsiMount.UVMPath
if mount.Type == "automanage-virtual-disk" {
r.Add(uvm.NewAutoManagedVHD(scsiMount.HostPath))
}
r.Add(scsiMount)
coi.Spec.Mounts[i].Type = "none"
} else if strings.HasPrefix(mount.Source, "sandbox://") {
Expand Down
6 changes: 1 addition & 5 deletions internal/hcsoci/resources_wcow.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func allocateWindowsResources(ctx context.Context, coi *createOptionsInternal, r
case "":
case "physical-disk":
case "virtual-disk":
case "automanage-virtual-disk":
default:
return fmt.Errorf("invalid OCI spec - Type '%s' not supported", mount.Type)
}
Expand All @@ -94,16 +93,13 @@ func allocateWindowsResources(ctx context.Context, coi *createOptionsInternal, r
}
coi.Spec.Mounts[i].Type = ""
r.Add(scsiMount)
} else if mount.Type == "virtual-disk" || mount.Type == "automanage-virtual-disk" {
} else if mount.Type == "virtual-disk" {
l.Debug("hcsshim::allocateWindowsResources Hot-adding SCSI virtual disk for OCI mount")
scsiMount, err := coi.HostingSystem.AddSCSI(ctx, mount.Source, uvmPath, readOnly, uvm.VMAccessTypeIndividual)
if err != nil {
return fmt.Errorf("adding SCSI virtual disk mount %+v: %s", mount, err)
}
coi.Spec.Mounts[i].Type = ""
if mount.Type == "automanage-virtual-disk" {
r.Add(uvm.NewAutoManagedVHD(scsiMount.HostPath))
}
r.Add(scsiMount)
} else {
if uvm.IsPipe(mount.Source) {
Expand Down
27 changes: 0 additions & 27 deletions internal/uvm/automanagedvhd.go

This file was deleted.