From: Max Reitz <mreitz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Peter Lieven <pl@kamp.de>,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH v2 0/2] qemu-img: Allow source cache mode specification
Date: Tue, 22 Jul 2014 22:58:41 +0200 [thread overview]
Message-ID: <1406062723-28692-1-git-send-email-mreitz@redhat.com> (raw)
Currently, qemu-img does not allow setting the cache mode for source
images. However, it reads images generally only once, therefore a full
writeback cache unnecessarily clutters the host cache. In case the user
finds this undesirable, there has to be a way of disabling that cache.
This series first introduces such a way for check, compare, convert and
rebase and then (while at it) adds a cache mode switch to amend (which
was missing so far).
Peter already tried to add a BDRV_O_SEQUENTIAL mode to qemu-img convert.
If we want to add such a mode (which in my opinion would be the logical
consequence of this series), we may want to make it just another cache
mode which can be selected by the user.
v2:
- Patch 1:
- Remove superfluous space in qemu-img-cmds.hx [Eric]
- Reorder all getopt() optstrings which are touched by this patch
anyway according to the subsequent switch [Eric (implicitly)]
- Patch 2:
- Reorder img_amend()'s optstring [Eric]
Max Reitz (2):
qemu-img: Allow source cache mode specification
qemu-img: Allow cache mode specification for amend
qemu-img-cmds.hx | 20 ++++++------
qemu-img.c | 97 ++++++++++++++++++++++++++++++++++++++++++++------------
qemu-img.texi | 16 +++++++---
3 files changed, 98 insertions(+), 35 deletions(-)
--
2.0.1
next reply other threads:[~2014-07-22 20:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 20:58 Max Reitz [this message]
2014-07-22 20:58 ` [Qemu-devel] [PATCH v2 1/2] qemu-img: Allow source cache mode specification Max Reitz
2014-07-22 21:07 ` Eric Blake
2014-07-22 20:58 ` [Qemu-devel] [PATCH v2 2/2] qemu-img: Allow cache mode specification for amend Max Reitz
2014-08-14 15:30 ` [Qemu-devel] [PATCH v2 0/2] qemu-img: Allow source cache mode specification Kevin Wolf
2014-08-15 12:59 ` Max Reitz
2014-08-22 12:55 ` Kevin Wolf
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=1406062723-28692-1-git-send-email-mreitz@redhat.com \
--to=mreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).