Skip to content

Commit

Permalink
firecracker: Add support for v0.15.x
Browse files Browse the repository at this point in the history
Add support for v0.15.x. Change the drive naming scheme to match
the requirement of v0.15.x

Fixes: kata-containers#1598

Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
  • Loading branch information
mcastelino committed May 1, 2019
1 parent 437b3cb commit 29d0434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtcontainers/fc.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (fc *firecracker) createDiskPool() error {
defer span.Finish()

for i := 0; i < fcDiskPoolSize; i++ {
driveID := "drive-" + strconv.Itoa(i)
driveID := "drive_" + strconv.Itoa(i)
driveParams := ops.NewPutGuestDriveByIDParams()
driveParams.SetDriveID(driveID)
isReadOnly := false
Expand Down Expand Up @@ -566,7 +566,7 @@ func (fc *firecracker) fcUpdateBlockDrive(drive config.BlockDrive) error {

// Use the global block index as an index into the pool of the devices
// created for firecracker.
driveID := "drive-" + strconv.Itoa(drive.Index)
driveID := "drive_" + strconv.Itoa(drive.Index)
driveParams := ops.NewPatchGuestDriveByIDParams()
driveParams.SetDriveID(driveID)

Expand Down

0 comments on commit 29d0434

Please sign in to comment.