Received: from eggs.gnu.org ([2001:4830:134:3::10]:48916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whuq8-0000bp-F2 for qemu-devel@nongnu.org; Wed, 07 May 2014 01:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Whupy-00087F-9U for qemu-devel@nongnu.org; Wed, 07 May 2014 01:56:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whupy-000879-24 for qemu-devel@nongnu.org; Wed, 07 May 2014 01:56:14 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s475uDUR016380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 7 May 2014 01:56:13 -0400 From: Markus Armbruster References: <1399402854-24559-1-git-send-email-mreitz@redhat.com> <536951A9.1070200@redhat.com> <53695863.9080009@redhat.com> Date: Wed, 07 May 2014 07:56:10 +0200 In-Reply-To: <53695863.9080009@redhat.com> (Eric Blake's message of "Tue, 06 May 2014 15:47:15 -0600") Message-ID: <87ha52jfnp.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] block/raw-posix: Try both FIEMAP and SEEK_HOLE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , Max Reitz Eric Blake writes: > On 05/06/2014 03:18 PM, Eric Blake wrote: > >> ...if you are on a file system where SEEK_HOLE triggers the kernel >> fallback of "entire file is allocated", but where FIEMAP is wired up for >> that file system, would it make sense to have try_seek_hole return -1 in >> situations where lseek(s->fd, 0, SEEK_HOLE) returns the end of the file? >> Even more, should skip_seek_hole be a tri-state? > > On the other hand, such systems are getting vanishingly rare as people > upgrade to newer kernels. Do we care about catering to them, or is it > fair game to just tell people to upgrade if they want performance? My tolerance for code complications to speed up things under old kernels isn't zero, but close. Leave these games to downstreams sporting such kernels.