qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/2] qemu-img: Allow source cache mode specificat


From: Max Reitz
Subject: [Qemu-devel] [PATCH v2 0/2] qemu-img: Allow source cache mode specification
Date: Tue, 22 Jul 2014 22:58:41 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]