From 2f39664f94f2b748808085c570ef6d3e7941005d Mon Sep 17 00:00:00 2001 From: edison Date: Thu, 7 Oct 2010 18:53:55 -0700 Subject: [PATCH] maybe it was an incorrect merge that snapshot was disabled for KVM Re-enable it. --- .../cloud/storage/snapshot/SnapshotManagerImpl.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 3d80d2f218e..d1826cf2405 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -213,16 +213,6 @@ public class SnapshotManagerImpl implements SnapshotManager { throws InvalidParameterValueException, ResourceAllocationException { boolean runSnap = isVolumeDirty(volume.getId(), policyId); - ImageFormat format = getImageFormat(volume.getId()); - if (format != null) { - if (!(format == ImageFormat.VHD || format == ImageFormat.ISO)) { - // We only create snapshots for root disks created from - // templates or ISOs. - s_logger - .error("Currently, a snapshot can be taken from a Root Disk only if it is created from a 1) template in VHD format or 2) from an ISO."); - runSnap = false; - } - } /* * // Check if the resource limit for snapshots has been exceeded * //UserVO user = _userDao.findById(userId); //AccountVO account =