From ee1fb2c637cdc02042dc58371a2a33e6f0f4549c Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 8 Jun 2015 19:59:17 +0200 Subject: [PATCH] feature #3782: Do not snapshot volatile disks --- src/vm/VirtualMachine.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vm/VirtualMachine.cc b/src/vm/VirtualMachine.cc index bff395fde8..1e43d1add7 100644 --- a/src/vm/VirtualMachine.cc +++ b/src/vm/VirtualMachine.cc @@ -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() )