From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Urg9q-0003bi-Q1 for qemu-devel@nongnu.org; Tue, 25 Jun 2013 23:12:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Urg9q-0003CM-0R for qemu-devel@nongnu.org; Tue, 25 Jun 2013 23:12:34 -0400 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:33256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Urg9p-0003BY-Aw for qemu-devel@nongnu.org; Tue, 25 Jun 2013 23:12:33 -0400 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Jun 2013 08:36:11 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id E8E063940057 for ; Wed, 26 Jun 2013 08:42:22 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5Q3CfpK17039496 for ; Wed, 26 Jun 2013 08:42:42 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r5Q3CM27032168 for ; Wed, 26 Jun 2013 13:12:22 +1000 Date: Wed, 26 Jun 2013 08:44:47 +0530 From: Bharata B Rao Message-ID: <20130626031447.GD9966@in.ibm.com> References: <20130625113911.GD3539@dhcp-200-207.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130625113911.GD3539@dhcp-200-207.str.redhat.com> Subject: Re: [Qemu-devel] block: Review of .has_zero_init use Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: josh.durgin@dreamhost.com, tailai.ly@taobao.com, Peter Lieven , qemu-devel@nongnu.org, rjones@redhat.com, stefanha@redhat.com, morita.kazutaka@lab.ntt.co.jp On Tue, Jun 25, 2013 at 01:39:11PM +0200, Kevin Wolf wrote: > > Can you please review for the gluster, rbd, sheepdog and ssh driver > whether it's safe to assume that the image reads back as zeros after > bdrv_create? Gluster supports both file and block backends. While the above is true for file backend (which uses ftruncate), the same is not true for block backend (which uses lvcreate & lvresize). So overall it is not safe to assume that an image on GlusterFS volume reads back as zeroes after create. Regards, Bharata.