clear qcow on rebuild, update fs mounting
This commit is contained in:
parent
cbe9b7241a
commit
08236f04a0
4 changed files with 101 additions and 15 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue