mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-06 15:13:39 +09:00
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:
1 parent
b777defb67
commit
e6844a61d2
4 files changed
+34
-4
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user