-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithiSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 563
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 +++--
1 files changed, 48 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Changes from v4:
09/12: pstrcpy call off-by-one in vmdk_parse_description
Fam Zheng (12):
VMDK: introduce VmdkExtent
VMDK: bugfix, align offset to cluster in get_whole_cluster
VMDK: probe for monolithicFlat images
VMDK: separate vmdk_open by format version
VMDK: add field
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 195 +
1 files changed, 126 insertions(+), 69 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.
Signed-off-by: Fam Zheng famc
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 351 +-
1 files changed, 250 insertions(+), 101 deletions
There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |8 +---
1 files changed
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 185 +
1 files changed, 172 insertions(+), 13 deletions(-)
diff --git a/block/vmdk.c b/block
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index c3f0ab6..cf7370f 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
and otherwise offset
invalid.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 73 +++---
1 files changed, 39 insertions(+), 34 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 10a8a9a..c84ea90 100644
--- a/block/vmdk.c
+++ b
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 +++--
1 files changed, 48 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |6 +++---
1
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithiSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 563
-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
at the end
of image and leave the old allocation unreferenced, which wastes disk
space.
--
Best regards!
Fam Zheng
No error report with writing (dd of=/dev/sda ...), but can't change
data, (dd if=/dev/sda) dump unchanged.
On Wed, Jun 29, 2011 at 1:47 PM, Stefan Hajnoczi stefa...@gmail.com wrote:
On Wed, Jun 29, 2011 at 5:47 AM, Fam Zheng famc...@gmail.com wrote:
Stream optimized VMDK image allocates
On Wed, Jun 29, 2011 at 4:15 PM, Kevin Wolf kw...@redhat.com wrote:
Am 29.06.2011 06:47, schrieb Fam Zheng:
Hi,
I have implemented reading for sparse optimized and come to implement
writing. It is a little complicated and I am not sure what is the best
approach. Could you give me some advice
On Wed, Jun 29, 2011 at 11:57 PM, Stefan Hajnoczi stefa...@gmail.com wrote:
On Tue, Jun 28, 2011 at 2:32 AM, Fam Zheng famc...@gmail.com wrote:
+/* find an option value out of descriptor file */
+static int vmdk_parse_description(const char *desc, const char *opt_name,
+ char *buf, int
Changes from v5:
01/12: add vmdk_free_extents
05/12: parameter order fix in calling vmdk_add_extent in vmdk_opem_vmdk4
09/12: add bdrv_delete, bs-open_flags
12/12: change commit message tag. remove duplicated count of
monolithicSparse
Fam Zheng (12):
VMDK: introduce VmdkExtent
Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.
Signed-off-by: Fam Zheng famc
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 355 +-
1 files changed, 252 insertions(+), 103 deletions
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 9393ff9..0a09890 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |6 +++---
1
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |8 +---
1 files changed
and otherwise offset
invalid.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 73 +++---
1 files changed, 39 insertions(+), 34 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 8783629..40e4464 100644
--- a/block/vmdk.c
+++ b
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 184 +-
1 files changed, 170 insertions(+), 14 deletions(-)
diff --git a/block/vmdk.c b/block
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 197 ++---
1 files changed, 131 insertions(+), 66 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithiSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 559
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 +++--
1 files changed, 48 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
? :)
--
Best regards!
Fam Zheng
: remove force flags, use bdrv_file_open to open extent
Fam Zheng (12):
VMDK: introduce VmdkExtent
VMDK: bugfix, align offset to cluster in get_whole_cluster
VMDK: probe for monolithicFlat images
VMDK: separate vmdk_open by format version
VMDK: add field BDRVVmdkState.desc_offset
VMDK
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 32a9e2e..fbc8af5 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |8 +---
1 files changed
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 178 -
1 files changed, 112 insertions(+), 66 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 348 +-
1 files changed, 246 insertions(+), 102 deletions
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |6 +++---
1
There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c
Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.
Signed-off-by: Fam Zheng famc
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 172 +-
1 files changed, 159 insertions(+), 13 deletions(-)
diff --git a/block/vmdk.c b/block
and otherwise offset
invalid.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 ++---
1 files changed, 42 insertions(+), 37 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 196419b..5bb6392 100644
--- a/block/vmdk.c
+++ b
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 +++--
1 files changed, 48 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithiSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 561
-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
There are several occurrence of magic number 0x200 as the descriptor
offset within mono sparse image file. This is not the case for images
with separate descriptor file. So a field is added to BDRVVmdkState to
hold the correct value.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |6 +++---
1
Chnages from v7:
03/12: remove deadloop in probing descriptor file.
Fam Zheng (12):
VMDK: introduce VmdkExtent
VMDK: bugfix, align offset to cluster in get_whole_cluster
VMDK: probe for monolithicFlat images
VMDK: separate vmdk_open by format version
VMDK: add field
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 348 +-
1 files changed, 246 insertions(+), 102 deletions
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithiSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 561
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 172 +-
1 files changed, 159 insertions(+), 13 deletions(-)
diff --git a/block/vmdk.c b/block
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |8 +---
1 files changed
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 +++--
1 files changed, 48 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.
Signed-off-by: Fam Zheng famc
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 178 -
1 files changed, 112 insertions(+), 66 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 529ae90..f6d2986 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
and otherwise offset
invalid.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 ++---
1 files changed, 42 insertions(+), 37 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 8dc58a8..f637d98 100644
--- a/block/vmdk.c
+++ b
-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
On Fri, Jul 8, 2011 at 11:29 PM, Stefan Hajnoczi stefa...@gmail.com wrote:
On Tue, Jul 5, 2011 at 12:31 PM, Fam Zheng famc...@gmail.com wrote:
Add create option 'format', with enums:
The -drive format=... option exists in QEMU today to specify the image
format of a file. I think adding
Changes from v8:
09/12: remove duplicated sscanf
10/12: change option name to 'subformat', change commit message typo,
factor common parts of creating, and other small improvements
Fam Zheng (12):
VMDK: introduce VmdkExtent
VMDK: bugfix, align offset to cluster
Flush all the file that referenced by the image.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 529ae90..f6d2986 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
and otherwise offset
invalid.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 79 ++---
1 files changed, 42 insertions(+), 37 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 8dc58a8..f637d98 100644
--- a/block/vmdk.c
+++ b
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple
image extents for multiple file image support.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 348 +-
1 files changed, 246 insertions(+), 102 deletions
-img.c calls
bdrv_get_allocated_file_size to count the bs. And also added VMDK code
to count his own extents.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block.c | 19 +++
block.h |1 +
block/raw-posix.c | 21 +
block/raw-win32.c
In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |8 +---
1 files changed
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 171 +-
1 files changed, 158 insertions(+), 13 deletions(-)
diff --git a/block/vmdk.c b/block
Separate vmdk_open by subformats to:
* vmdk_open_vmdk3
* vmdk_open_vmdk4
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 178 -
1 files changed, 112 insertions(+), 66 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
Cid_update is the flag for updating CID on first write after opening the
image. This should be per image open rather than per program life cycle,
so change it from static var of vmdk_write to a field in BDRVVmdkState.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |6 +++---
1
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 78 +++---
1 files changed, 47 insertions(+), 31 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithicSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 502
Parse vmdk decriptor file and open mono flat image.
Read/write the flat extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 171 +-
1 files changed, 158 insertions(+), 13 deletions(-)
diff --git a/block/vmdk.c b/block
Add create option 'format', with enums:
monolithicSparse
monolithicFlat
twoGbMaxExtentSparse
twoGbMaxExtentFlat
Each creates a subformat image file. The default is monolithicSparse.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 503
Hi,
Resent [09/12] and [10/12].
On Mon, Jul 18, 2011 at 10:52 PM, Kevin Wolf kw...@redhat.com wrote:
Am 12.07.2011 13:56, schrieb Fam Zheng:
Changes from v8:
09/12: remove duplicated sscanf
10/12: change option name to 'subformat', change commit message typo,
factor
Add subformats support for:
twoGbMaxExtentFlat
twoGbMaxExtentSparse
streamOptimized
Fam Zheng (6):
VMDK: enable twoGbMaxExtentFlat
VMDK: add twoGbMaxExtentSparse support
VMDK: separate vmdk_read_extent/vmdk_write_extent
VMDK: Opening compressed extent.
VMDK: read/write
Enable the createType 'twoGbMaxExtentFlat'. The supporting code is
already in.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 37478d2..9e6c67a 100644
--- a/block/vmdk.c
+++ b
Add twoGbMaxExtentSparse support. Only opening code is changed.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 124 --
1 files changed, 77 insertions(+), 47 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Factor out read/write extent code, since there will be more things to
take care of once reading/writing compressed clusters is introduced.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 54 +-
1 files changed, 45 insertions
Added flags field for compressed/streamOptimized extents, open and save
image configuration.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 0d989f6..5f1638e
Add support for reading/writing compressed extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 115 --
1 files changed, 103 insertions(+), 12 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 5f1638e..4799aa5
Creating streamOptimized subformat. Added subformat option
'streamOptimized', to create a image with compression enabled and each
cluster with a GrainMarker.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 18 --
1 files changed, 12 insertions(+), 6 deletions
Sorry, I missed one line in this patch. Will fix it in V2.
On Wed, Jul 27, 2011 at 5:27 PM, Fam Zheng famc...@gmail.com wrote:
Enable the createType 'twoGbMaxExtentFlat'. The supporting code is
already in.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 3 ++-
1 files
Enable the createType 'twoGbMaxExtentFlat'. The supporting code is
already in.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 37478d2..e22a893 100644
--- a/block/vmdk.c
On Tue, Aug 2, 2011 at 6:32 PM, Stefan Hajnoczi stefa...@gmail.com wrote:
On Wed, Jul 27, 2011 at 10:27 AM, Fam Zheng famc...@gmail.com wrote:
Add twoGbMaxExtentSparse support. Only opening code is changed.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 124
Enable the createType 'twoGbMaxExtentFlat'. The supporting code is
already in.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 37478d2..e22a893 100644
--- a/block/vmdk.c
Changes from v1:
2/6: add vmdk_free_last_extent, fix qemu_realloc bugs, shorten vmdk_open,
remove unused comment
4/6: fix endianess bug
5/6: simplify qemu_free call, change qemu_mallocz to qemu_malloc, fix
endianess bug
Fam Zheng (6):
VMDK: enable twoGbMaxExtentFlat
VMDK: add
Factor out read/write extent code, since there will be more things to
take care of once reading/writing compressed clusters is introduced.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 54 +-
1 files changed, 45 insertions
Add support for reading/writing compressed extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 113 +++--
1 files changed, 101 insertions(+), 12 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index df93ba5..da34b9d
Add twoGbMaxExtentSparse support. Introduce vmdk_free_last_extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 132 --
1 files changed, 82 insertions(+), 50 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Added flags field for compressed/streamOptimized extents, open and save
image configuration.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index bc725be..df93ba5
Creating streamOptimized subformat. Added subformat option
'streamOptimized', to create a image with compression enabled and each
cluster with a GrainMarker.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 18 --
1 files changed, 12 insertions(+), 6 deletions
On Thu, Aug 4, 2011 at 6:34 PM, Stefan Hajnoczi stefa...@gmail.com wrote:
On Thu, Aug 4, 2011 at 4:09 AM, Fam Zheng famc...@gmail.com wrote:
+static void vmdk_free_last_extent(BlockDriverState *bs)
+{
+ BDRVVmdkState *s = bs-opaque;
+
+ if (s-num_extents == 0) {
+ return
Add twoGbMaxExtentSparse support. Introduce vmdk_free_last_extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 133 --
1 files changed, 83 insertions(+), 50 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
Changes:
02/06: Free extents on fail in vmdk_open.
Added:
07/08: VMDK: bugfix, open Haiku vmdk image
08/08: VMDK: bugfix, opening vSphere 4 exported image
Fam Zheng (8):
VMDK: enable twoGbMaxExtentFlat
VMDK: add twoGbMaxExtentSparse support
VMDK: separate vmdk_read_extent
Add support for reading/writing compressed extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 113 +++--
1 files changed, 101 insertions(+), 12 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index cc8b888..c153d3d
The vSphere 4 exported image is streamOptimized extent, which is not
quite correctly handled. Ignore rdgOffset when RGD flag bit not set.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/block/vmdk.c b
Factor out read/write extent code, since there will be more things to
take care of once reading/writing compressed clusters is introduced.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 54 +-
1 files changed, 45 insertions
Haiku provides a specially formed vmdk image, which let qemu abort. It a
combination of sparse header and flat data (i.e. with not l1/l2 table at
all). The fix is turn to descriptor when sparse header is zero in field
'capacity'.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 15
Add twoGbMaxExtentSparse support. Introduce vmdk_free_last_extent.
Signed-off-by: Fam Zheng famc...@gmail.com
---
block/vmdk.c | 133 --
1 files changed, 83 insertions(+), 50 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index
901 - 1000 of 9154 matches
Mail list logo