Received: from eggs.gnu.org ([2001:4830:134:3::10]:36000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WherN-0002z7-K2 for qemu-devel@nongnu.org; Tue, 06 May 2014 08:52:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WherH-0001Up-BI for qemu-devel@nongnu.org; Tue, 06 May 2014 08:52:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WherH-0001Uh-4V for qemu-devel@nongnu.org; Tue, 06 May 2014 08:52:31 -0400 Date: Tue, 6 May 2014 14:50:16 +0200 From: Stefan Hajnoczi Message-ID: <20140506125016.GI15810@stefanha-thinkpad.redhat.com> References: <1398412852-2562-1-git-send-email-famz@redhat.com> <1398412852-2562-2-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1398412852-2562-2-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 1/4] qemu-img: Convert by cluster size if target is compressed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, gentoo.integer@gmail.com, qemu-devel@nongnu.org On Fri, Apr 25, 2014 at 04:00:49PM +0800, Fam Zheng wrote: > diff --git a/include/block/block.h b/include/block/block.h > index b3230a2..8a1cb83 100644 > --- a/include/block/block.h > +++ b/include/block/block.h > @@ -34,6 +34,10 @@ typedef struct BlockDriverInfo { > * opened with BDRV_O_UNMAP flag for this to work. > */ > bool can_write_zeroes_with_unmap; > + /* > + * True if the driver is writing data clusters compressed > + */ > + bool is_compressed; "is_compressed" is more general than what this flag actually communicates: /* * True if this block driver only supports compressed writes */ bool needs_compressed_writes;