[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6405] block-qcow2: export highest_allocated through BlockD
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6405] block-qcow2: export highest_allocated through BlockDriverInfo and get_info() ( Uri Lublin) |
Date: |
Thu, 22 Jan 2009 18:57:26 +0000 |
Revision: 6405
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6405
Author: aliguori
Date: 2009-01-22 18:57:26 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
block-qcow2: export highest_allocated through BlockDriverInfo and get_info()
(Uri Lublin)
Signed-off-by: Uri Lublin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/block-qcow2.c
trunk/block.h
Modified: trunk/block-qcow2.c
===================================================================
--- trunk/block-qcow2.c 2009-01-22 18:57:22 UTC (rev 6404)
+++ trunk/block-qcow2.c 2009-01-22 18:57:26 UTC (rev 6405)
@@ -1671,6 +1671,7 @@
bdi->cluster_size = s->cluster_size;
bdi->vm_state_offset = (int64_t)s->l1_vm_state_index <<
(s->cluster_bits + s->l2_bits);
+ bdi->highest_alloc = s->highest_alloc << s->cluster_bits;
return 0;
}
Modified: trunk/block.h
===================================================================
--- trunk/block.h 2009-01-22 18:57:22 UTC (rev 6404)
+++ trunk/block.h 2009-01-22 18:57:26 UTC (rev 6405)
@@ -26,6 +26,7 @@
int cluster_size;
/* offset at which the VM state can be saved (0 if not possible) */
int64_t vm_state_offset;
+ int64_t highest_alloc; /* highest allocated block offset (in bytes) */
} BlockDriverInfo;
typedef struct QEMUSnapshotInfo {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6405] block-qcow2: export highest_allocated through BlockDriverInfo and get_info() ( Uri Lublin),
Anthony Liguori <=