1
0
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:
Ruben S. Montero 2015-06-08 19:59:17 +02:00
parent 58a260f96f
commit ee1fb2c637

View File

@ -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() )