[Qemu-devel] Subject: [PATCH] qcow2 resize with snapshot

2016-09-28 Thread zhangzhiming
qcow2 resize with snapshot, i modify the code of shrink size. and some changes for stable and vm state l1 index. thanks for review. Signed-off-by: zhangzhiming mailto:zhangzhimin...@meituan.com>> --- block.c| 19 block/qcow2-cluster.c

Re: [Qemu-devel] Subject: [PATCH] qcow2 resize with snapshot, mod

2016-09-01 Thread zhangzhiming
ping zhangzhiming zhangzhimin...@meituan.com > On Aug 15, 2016, at 7:56 PM, zhangzhiming wrote: > > hi, i modified my code by Kevin Wolf’s review. and thanks for review again. > > > > Signed-off-by: zhangzhiming > --- > block.c| 19 ---

[Qemu-devel] Subject: [PATCH] qcow2 resize with snapshot, mod

2016-08-15 Thread zhangzhiming
hi, i modified my code by Kevin Wolf’s review. and thanks for review again. Signed-off-by: zhangzhiming --- block.c| 19 block/qcow2-cluster.c | 55 ++-- block/qcow2-snapshot.c | 34

Re: [Qemu-devel] [PATCH] resize qcow2 with snapshot

2016-08-03 Thread zhangzhiming
Oh, sorry for that, I asked for leave for several days and i didn’t open my computer, maybe the mail deleted by mail server when i come. I will check your reply and think it over. thanks very much! :) zhangzhiming zhangzhimin...@meituan.com > On Aug 3, 2016, at 1:20 AM, Kevin Wolf wr

Re: [Qemu-devel] [PATCH] resize qcow2 with snapshot

2016-08-02 Thread zhangzhiming
ping zhangzhiming zhangzhimin...@meituan.com > On Jun 24, 2016, at 7:10 PM, zhangzhiming wrote: > > qcow2 can’t be resized while there is a snapshot in qcow2 image but in > version 3 image of qcow2, > each disk size of snapshot is stored in the image, so we can resize image

[Qemu-devel] [PATCH] resize qcow2 with snapshot

2016-06-24 Thread zhangzhiming
very little job. Signed-off-by: zhangzhiming mailto:zhangzhimin...@meituan.com>> --- block.c | 19 +++ block/qcow2-cluster.c| 29 + block/qcow2-snapshot.c | 37 + block/q

Re: [Qemu-devel] [Qemu-block] [PATCH] qcow2 resize with snapshot

2016-06-23 Thread zhangzhiming
hi, please help to review my code. i have checked it for serval times. it is short and very easy too read. and i will be very grateful to you for taking a very little time to read it. thanks very much! zhangzhiming zhangzhimin...@meituan.com <mailto:zhangzhimin...@meituan.com> Signed-

Re: [Qemu-devel] [Qemu-block] [PATCH] qcow2 resize with snapshot

2016-06-07 Thread zhangzhiming
hi, need for someone's review of my code. no one does it for nearly one week. thanks! zhangzhiming zhangzhimin...@meituan.com > On Jun 1, 2016, at 6:24 PM, zhangzhiming wrote: > > hi, here are all changes of my code. thanks for the review! > > zhangzhiming > zha

Re: [Qemu-devel] [Qemu-block] [PATCH] qcow2 resize with snapshot

2016-06-01 Thread zhangzhiming
hi, here are all changes of my code. thanks for the review! zhangzhiming zhangzhimin...@meituan.com Signed-off-by: zhangzhiming --- block.c | 19 +++ block/qcow2-cluster.c| 29 + block/qcow2-snapshot.c | 33

Re: [Qemu-devel] [PATCH] qcow2 resize with snapshot

2016-05-31 Thread zhangzhiming
hi, thanks for the review and the format of code changed. have a good day! zhangzhiming zhangzhimin...@meituan.com Signed-off-by: zhangzhiming --- block.c|4 ++-- block/qcow2-cluster.c |4 ++-- block/qcow2-snapshot.c |5 ++--- block/qcow2.c |4 ++-- 4

[Qemu-devel] [PATCH] qcow2 resize with snapshot

2016-05-27 Thread zhangzhiming
Hi, i modified my code for qcow2 resize, and delete some code related to qemu monitor. and thanks for the review. zhangzhiming zhangzhimin...@meituan.com <mailto:zhangzhimin...@meituan.com> --- block.c | 19 +++ block/qcow2-cluster.c

Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] qcow2 resize with snapshots

2016-05-19 Thread zhangzhiming
hi, and some extra code need to be changed. zhangzhiming zhangzhimin...@meituan.com -- diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c index d872cf2..fb888b0 100644 --- a/block/qcow2-snapshot.c +++ b/block/qcow2-snapshot.c @@ -498,7 +498,7 @@ int qcow2_snapshot_goto(BlockDriverState

Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] qcow2 resize with snapshots

2016-05-19 Thread zhangzhiming
add code, shrink l1 table while resize. zhangzhiming zhangzhimin...@meituan.com -- diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 31ecc10..3e07510 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -31,6 +31,36 @@ #include "block/qcow2.h" #includ

Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] qcow2 resize with snapshots

2016-05-19 Thread zhangzhiming
hi, missed some code. zhangzhiming zhangzhimin...@meituan.com -- diff --git a/block.c b/block.c index 047698a..ff83134 100644 --- a/block.c +++ b/block.c @@ -2641,7 +2641,7 @@ int bdrv_apply_snapshot(BlockDriverState *bs, const char *snapshot_id, uint64_t return ret; } -ret

[Qemu-devel] [Qemu-block] [PATCH v1 1/1] qcow2 resize with snapshots

2016-05-19 Thread zhangzhiming
, it feels not very good. please review it for me. thanks. zhangzhiming zhangzhimin...@meituan.com -- diff --git a/block.c b/block.c index 18a497f..047698a 100644 --- a/block.c +++ b/block.c @@ -2632,6 +2632,24 @@ int bdrv_truncate(BlockDriverState *bs, int64_t offset) } /** + * goto a sna

Re: [Qemu-devel] qcow2 resize with snapshots

2016-05-15 Thread zhangzhiming
esize”, this function will block IO requests when resizing a image, and it seems that it called callback function to notify the guest, and we don’t need to set BLOCK_OP_TYPE_RESIZE blockers. is it correct ? zhangzhiming zhangzhimin...@meituan.com > On May 7, 2016, at

Re: [Qemu-devel] qcow2 resize with snapshots

2016-05-06 Thread zhangzhiming
sorry, i forgot to cc qemu-bl...@nongnu.org <mailto:qemu-bl...@nongnu.org>. zhangzhiming zhangzhimin...@meituan.com > On May 7, 2016, at 10:47 AM, zhangzhiming wrote: > > thank you for your reply, and i am glad to join to the development of qemu. > i will try my best

Re: [Qemu-devel] qcow2 resize with snapshots

2016-05-06 Thread zhangzhiming
thank you for your reply, and i am so sorry, there are some problems with my email @163.com <http://163.com/>, it returned me some error and i thought that my email send failed. so, really sorry. this is my second email. i will use this one. zhangzhiming zhangzhimin...@meituan.com >

Re: [Qemu-devel] qcow2 resize with snapshots

2016-05-06 Thread zhangzhiming
thank you for your reply, and i am glad to join to the development of qemu. i will try my best to finish this new function. have a good day! zhangzhiming zhangzhimin...@meituan.com > On May 3, 2016, at 4:44 PM, Kevin Wolf wrote: > > [ Cc: qemu-block ] > > Am 29.04.2016 um 10

[Qemu-devel] qcow2 resize with snapshots

2016-05-05 Thread zhangzhiming
. zhangzhiming zhangzhimin...@meituan.com