Received: from eggs.gnu.org ([208.118.235.92]:32979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URmDr-00019k-Sm for qemu-devel@nongnu.org; Mon, 15 Apr 2013 12:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URmDp-0000YK-MQ for qemu-devel@nongnu.org; Mon, 15 Apr 2013 12:25:39 -0400 Received: from sh.osrg.net ([192.16.179.4]:44460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URmDp-0000XL-6E for qemu-devel@nongnu.org; Mon, 15 Apr 2013 12:25:37 -0400 Date: Tue, 16 Apr 2013 01:25:57 +0900 Message-ID: <87fvyryd4a.wl%morita.kazutaka@lab.ntt.co.jp> From: MORITA Kazutaka In-Reply-To: <1366042504-18354-1-git-send-email-namei.unix@gmail.com> References: <1365852442-28941-5-git-send-email-namei.unix@gmail.com> <1366042504-18354-1-git-send-email-namei.unix@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [sheepdog] [PATCH v5] sheepdog: add discard/trim support for sheepdog List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Yuan Cc: Kevin Wolf , Paolo Bonzini , sheepdog@lists.wpkg.org, qemu-devel@nongnu.org, Stefan Hajnoczi At Tue, 16 Apr 2013 00:15:04 +0800, Liu Yuan wrote: > > From: Liu Yuan > > The 'TRIM' command from VM that is to release underlying data storage for > better thin-provision is already supported by the Sheepdog. > > This patch adds the TRIM support at QEMU part. > > For older Sheepdog that doesn't support it, we return 0(success) to upper layer. > > Cc: MORITA Kazutaka > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Cc: Paolo Bonzini > Signed-off-by: Liu Yuan > --- > v5: > - adjust macro numbering > v4: > - adjust discard macro > - return success when operation is not supported by sheep > - add coroutine_fn marker > v3: > - fix a silly accidental deletion of 'default' in switch clause. > v2: > - skip the object when it is not allocated > > block/sheepdog.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 55 insertions(+), 1 deletion(-) Reviewed-by: MORITA Kazutaka