clear qcow on rebuild, update fs mounting

This commit is contained in:
Joshua Bell 2026-03-09 23:24:19 -05:00
parent cbe9b7241a
commit 08236f04a0
4 changed files with 101 additions and 15 deletions

View file

@ -196,8 +196,8 @@ func HotMountWorkspace(ws *workspace.Workspace) mo.Result[struct{}] {
client := qmpResult.MustGet()
defer client.Close()
// Hot-mount the filesystem
hotMountResult := client.HotMountFilesystem(ws.MountTag, mount.SocketPath)
// Hot-mount the filesystem onto a free PCIe hotplug root port
hotMountResult := client.HotMountFilesystem(ws.MountTag, mount.SocketPath, HotplugBusPrefix, HotplugSlots)
if hotMountResult.IsError() {
vfsManager.StopMount(mount)
return mo.Err[struct{}](fmt.Errorf("failed to hot-mount filesystem: %w", hotMountResult.Error()))