mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3782: Do not snapshot volatile disks
This commit is contained in:
parent
58a260f96f
commit
ee1fb2c637
@ -4328,6 +4328,12 @@ int VirtualMachine::new_disk_snapshot(int did, const string& tag, string& error)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (isVolatile(disk))
|
||||
{
|
||||
error = "Cannot make snapshots on volatile disks";
|
||||
return -1;
|
||||
}
|
||||
|
||||
it = snapshots.find(did);
|
||||
|
||||
if ( it == snapshots.end() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user