From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPWXM-0002oB-9O for qemu-devel@nongnu.org; Thu, 04 Sep 2014 08:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPWXG-00030v-5u for qemu-devel@nongnu.org; Thu, 04 Sep 2014 08:53:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPWXF-00030l-V6 for qemu-devel@nongnu.org; Thu, 04 Sep 2014 08:53:10 -0400 Date: Thu, 4 Sep 2014 14:52:57 +0200 From: Kevin Wolf Message-ID: <20140904125257.GI3897@noname.str.redhat.com> References: <67d97abc587e7c6985166dbe800686938ac8adb5.1409299732.git.hutao@cn.fujitsu.com> <20140904123522.GH3897@noname.str.redhat.com> <20140904124519.GB1302@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140904124519.GB1302@redhat.com> Subject: Re: [Qemu-devel] [PATCH v13 5/6] raw-posix: Add full preallocation option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: Fam Zheng , Hu Tao , qemu-devel@nongnu.org, Max Reitz , Stefan Hajnoczi , Yasunori Goto Am 04.09.2014 um 14:45 hat Richard W.M. Jones geschrieben: > On Thu, Sep 04, 2014 at 02:35:22PM +0200, Kevin Wolf wrote: > > Please change the code to always write zeros for FULL, > > How is this useful for anyone? You don't know if the underlying SAN > is going to detect these zeroes or combine these blocks together. > It's just slow for no reason. It's slow for the reason that the user has requested it. Do you doubt that users can know what their backend is doing? Why are you insisting on providing only the functionality that you personally need? I doubt it's a way to make many users happier, but if you insist, we can leave full preallocation unsupported on raw-posix and allow only metadata preallocation (which should still be fallocate() without a zero-write fallback, so that you can rely on it being fast). But call it by its name and don't say "full" when you only implement "metadata". Kevin