From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bMS-0001BM-Rm for qemu-devel@nongnu.org; Sat, 19 Jul 2014 16:36:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8bMM-0001h4-Lx for qemu-devel@nongnu.org; Sat, 19 Jul 2014 16:36:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8bMM-0001gu-E8 for qemu-devel@nongnu.org; Sat, 19 Jul 2014 16:35:58 -0400 From: Max Reitz Date: Sat, 19 Jul 2014 22:35:57 +0200 Message-Id: <1405802159-2355-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qemu-img: Allow source cache mode specification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Lieven , Stefan Hajnoczi , Max Reitz 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. 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