From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoweF-00030U-Qu for qemu-devel@nongnu.org; Thu, 13 Nov 2014 10:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoweA-0002Kl-Pg for qemu-devel@nongnu.org; Thu, 13 Nov 2014 10:49:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoweA-0002Kf-Gb for qemu-devel@nongnu.org; Thu, 13 Nov 2014 10:49:22 -0500 Message-ID: <5464D2FE.8090000@redhat.com> Date: Thu, 13 Nov 2014 08:49:18 -0700 From: Eric Blake MIME-Version: 1.0 References: <1415873823-13844-1-git-send-email-armbru@redhat.com> <1415873823-13844-4-git-send-email-armbru@redhat.com> <20141113130327.GD3933@noname.redhat.com> <5464C59A.4000602@redhat.com> <5464CE42.4000809@redhat.com> <5464D1D9.7060700@redhat.com> In-Reply-To: <5464D1D9.7060700@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rLb52uLXLECthH1dpJvRCoxW5eBxxtkJk" Subject: Re: [Qemu-devel] [PATCH v2 3/4] raw-posix: Fix try_seek_hole()'s handling of SEEK_DATA failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , Kevin Wolf , Markus Armbruster Cc: pbonzini@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, tony@bakeyournoodle.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rLb52uLXLECthH1dpJvRCoxW5eBxxtkJk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/13/2014 08:44 AM, Max Reitz wrote: >> (By the way, I really wish Solaris had implemented a variant that >> queried, but did NOT change the file offset - maybe Linux can add that= >> as an extension, and give it sane semantics of not special casing >> trailing holes...) >=20 > Are you asking for fiemap? :-P Not that bulky; maybe just two more constants SEEK_PEEK_HOLE and SEEK_PEEK_DATA, which return the same values as their non-peek counterparts but without modifying the fd offset. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --rLb52uLXLECthH1dpJvRCoxW5eBxxtkJk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUZNL+AAoJEKeha0olJ0NqEioH/0t+VL6TXG1YEMdtj1XLTo3n ipeFgAvS3wVbnh9bHgiu4//GECr46B+bbZPkbHHHo8sjzm4XVEZjm4ICFRcUVMIp Wvu6+pzwPnpU4Rg3tSn8ZIK+4dZ57oDwt9ijsYYih21ibfmx/Pxm1KaXKdDWqmVt GpZD8sMqdVydAFNn/B8QNP0PaBo+b2IQduvZQECBcZipNuc3W04yfE+qqmkDYhOv 8hoe3xC5gQLhndSs9RKuiesjhS3U7m5HlxdCkNmBLGrIbQWLzfynJLHxx9ir+YFe 11fnZFS0Out+wxq9uP9IZl5GtCbdKvGF3dmwe3jAb+oYJhAqYFsTpzJW3gfWX1o= =PXuY -----END PGP SIGNATURE----- --rLb52uLXLECthH1dpJvRCoxW5eBxxtkJk--