M #-: VirtioFS fixes (#4124)

* Remove mandatory persistent FILESYSTEM images
* Disable snapshot and backup for VM with FILESYSTEM disks
* Add suse15 virtiofsd path
* Fixes to virtiofsd wrapper
This commit is contained in:
MarioRobres authored and GitHub committed 2026-03-24 16:00:43 +01:00
1 parent b777defb67
commit e6844a61d2
4 files changed
+34 -4

No files matched your search

+21 -1
View File
@@ -902,7 +902,7 @@ Request::ErrorCode VirtualMachineAPI::migrate(int vid,
{
if (disk->is_filesystem())
{
att.resp_msg = "VM with Filesytem disks cannot be live-migrated";
att.resp_msg = "VM with FILESYSTEM disks cannot be live-migrated";
return Request::ACTION;
}
@@ -2744,6 +2744,16 @@ Request::ErrorCode VirtualMachineAPI::snapshot_create(int vid,
return Request::ACTION;
}
for (auto *disk : vm->get_disks())
{
if (disk->is_filesystem())
{
att.resp_msg = "Cannot create snapshot for VM with FILESYSTEM disks";
return Request::ACTION;
}
}
// get quota deltas
snap = vm->new_snapshot(name, snap_id);
snap = snap->clone();
@@ -3527,6 +3537,16 @@ Request::ErrorCode VirtualMachineAPI::backup(int vid,
return Request::INTERNAL;
}
for (auto *disk : vm->get_disks())
{
if (disk->is_filesystem())
{
att.resp_msg = "Cannot backup VM with FILESYSTEM disks";
return Request::ACTION;
}
}
}
else
{