From: jemmy858585@gmail.com
To: qemu-devel@nongnu.org
Cc: stefanha@redhat.com, famz@redhat.com, kwolf@redhat.com,
mreitz@redhat.com, qemu-block@nongnu.org, quintela@redhat.com,
dgilbert@redhat.com, Lidong Chen <lidongchen@tencent.com>
Subject: [Qemu-devel] [PATCH 0/2] use blk_pwrite_zeroes for each zero cluster
Date: Thu, 6 Apr 2017 21:15:34 +0800 [thread overview]
Message-ID: <1491484536-22776-1-git-send-email-lidongchen@tencent.com> (raw)
From: Lidong Chen <lidongchen@tencent.com>
BLOCK_SIZE is (1 << 20), qcow2 cluster size is 65536 by default,
this maybe cause the qcow2 file size is bigger after migration.
This patch check each cluster, use blk_pwrite_zeroes for each
zero cluster.
Lidong Chen (2):
block: make bdrv_get_cluster_size public
migration/block: use blk_pwrite_zeroes for each zero cluster
block/io.c | 2 +-
include/block/block.h | 1 +
migration/block.c | 34 ++++++++++++++++++++++++++++++++--
3 files changed, 34 insertions(+), 3 deletions(-)
--
1.8.3.1
next reply other threads:[~2017-04-06 13:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 13:15 jemmy858585 [this message]
2017-04-06 13:15 ` [Qemu-devel] [PATCH 1/2] block: make bdrv_get_cluster_size public jemmy858585
2017-04-06 13:15 ` [Qemu-devel] [PATCH 2/2] migration/block: use blk_pwrite_zeroes for each zero cluster jemmy858585
2017-04-07 7:08 ` Fam Zheng
2017-04-07 7:15 ` 858585 jemmy
2017-04-07 5:22 ` [Qemu-devel] [PATCH 0/2] " 858585 jemmy
2017-04-07 6:55 ` 858585 jemmy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1491484536-22776-1-git-send-email-lidongchen@tencent.com \
--to=jemmy858585@gmail.com \
--cc=dgilbert@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=lidongchen@tencent.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.