Received: from eggs.gnu.org ([2001:4830:134:3::10]:46147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX4uy-0001lW-SI for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX4ux-0000v9-FM for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:00:52 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:42552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX4uw-0000t0-Pp for qemu-devel@nongnu.org; Thu, 25 Sep 2014 05:00:51 -0400 Date: Thu, 25 Sep 2014 19:00:41 +1000 From: Tony Breeds Message-ID: <20140925090041.GE20349@thor.bakeyournoodle.com> References: <1411622627-22110-1-git-send-email-tony@bakeyournoodle.com> <87d2akdxug.fsf@blackfin.pond.sub.org> <20140925073030.GA4667@noname.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5oH/S/bF6lOfqCQb" Content-Disposition: inline In-Reply-To: <20140925073030.GA4667@noname.redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/raw-posix: use seek_hole ahead of fiemap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, Markus Armbruster , Max Reitz , =?utf-8?Q?P=C3=A1draig?= Brady , Stefan Hajnoczi , Michael Steffens --5oH/S/bF6lOfqCQb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 25, 2014 at 09:30:30AM +0200, Kevin Wolf wrote: > Does this fix the problem or does it just make it less likely that it > becomes apparent? Sorry for not making this clearer in my commit message. I haven't been able to reproduce the corruption with the fiemap flag change. =20 > If there is a data corruptor, we need to fix it, not just ensure that > only the less common environments are affected. I agree. I believe that the FIEMAP_FLAG_SYNC flag change fixes the corrupter and then, as you say, makes that code less commonly executed. =20 > That looks like a logically separate change, so it should probably be > a separate patch. Sure I can do that, and be more explicit about the reason in the commit message. =20 > Is this fix for the corruptor? The commit message doesn't make it > clear. If so and fiemap is safe now, why would we still prefer > seek_hole? The preference for seek_hole was a suggestion from P=C3=A1draig Brady , so I'll let him defend that :) but as I said above I think it was about=20 reducing the situations where fiemap was/is called. Tony. --5oH/S/bF6lOfqCQb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUI9m5AAoJEPvNNsFAAoTBLW8QAKioEJEyWZhgzodrCX2okPQR 1dj+roOgwsWvrseYjDzO4boHKlEkwM9STq9x75mu/1f9ykJTjasuj2lYpYOimA1/ Qdz0dRTdRQ6dccZThpaRuWjDcdtBls/kOQF2nVDNXlhGr/Hp18nGCvt+tFJw1Bt/ K2TPxRjUAqXAk9N5hgY5xvJ3VjzZ6aMs0a94YYedM4slpYy1nI5FrKPMRNaV7RY1 0eTyOoTfoyTdvDKiTUtUBsikg+wtJ7ZnOIWE5fINh1AkXDY/Ti0B2wuAGSy1qWI/ 5dKyKUOp4nE94siYyh/TRCFRS2jYb+KW0yQViTlt4CxBxMpLd7ZfH6j5Bv0Mb5Rz f42zN5LAIb5H7nMrBwPz79dKdVDvtlpS1PFK/qclVqZIXmUBB/aQ2AbkpoNzYz0M V0+wcUQu+bK3DCkJLcy/8V4EVOFQQGRSq7b0mvfYBnXiEK7jx4sBWP4gZ5KEMfAl B4YyFV7NOxugRUE0Yfi1jBmqEuBoLZecfw8nHz3ytMONbkyyR5F8Mymx0IAwk/Ct O23QUNWKIiB/JSymJp1xY9NJBSD+xKyjBBl6hwuaRyha2IOLW5Nu5/1RP3/QeC7L yUd8MAYZxiZCmDwpCazGF+bdyltErlUU9HqLY6F1AxnX5ZCIuI2xNELS7zpj3DTz Y97InpXALRoRD4k1hkDa =NiGL -----END PGP SIGNATURE----- --5oH/S/bF6lOfqCQb--