Skip to content

Commit

Permalink
Merge pull request #966 from stgraber/main
Browse files Browse the repository at this point in the history
incusd/instance/qemu: Fix handling of virtiofs-only disks
  • Loading branch information
hallyn authored Jun 28, 2024
2 parents bacea92 + 193b371 commit c0030e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -3637,7 +3637,7 @@ func (d *qemu) addDriveDirConfig(cfg *[]cfgSection, bus *qemuBus, fdFiles *[]*os
}

// Add 9p share config.
if slices.Contains(driveConf.Opts, "bus=auto") || slices.Contains(driveConf.Opts, "bus=9p") {
if !slices.Contains(driveConf.Opts, "bus=virtiofs") {
devBus, devAddr, multi := bus.allocate(busFunctionGroup9p)

fd, err := strconv.Atoi(driveConf.DevPath)
Expand Down

0 comments on commit c0030e8

Please sign in to comment.