cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [1/4] git commit: updated refs/heads/rbd-snap-clone to a1c8a0f
Date Thu, 16 May 2013 15:10:21 GMT
Updated Branches:
  refs/heads/rbd-snap-clone 9660fe17b -> a1c8a0f67


rbd: Write the same amount of bytes as we read


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6261de0f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6261de0f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6261de0f

Branch: refs/heads/rbd-snap-clone
Commit: 6261de0fe6e9f6006efdaf5fdff12dbab136f2fd
Parents: 9660fe1
Author: Wido den Hollander <wido@widodh.nl>
Authored: Thu May 16 11:12:44 2013 +0200
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Thu May 16 11:12:44 2013 +0200

----------------------------------------------------------------------
 .../kvm/storage/LibvirtStorageAdaptor.java         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6261de0f/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index 0b00d07..c147fab 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -959,7 +959,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
                     if (bytes < 0 ) {
                         break;
                     }
-                    image.write(buf, offset);
+                    image.write(buf, offset, bytes);
                     offset += bytes;
                 }
 


Mime
View raw message