Received: from eggs.gnu.org ([2001:4830:134:3::10]:58235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKoZT-0005Xu-IN for qemu-devel@nongnu.org; Wed, 06 Jul 2016 11:17:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKoZO-0008EL-SP for qemu-devel@nongnu.org; Wed, 06 Jul 2016 11:17:03 -0400 References: <1467732272-23368-1-git-send-email-clord@redhat.com> <1467732272-23368-12-git-send-email-clord@redhat.com> From: Max Reitz Message-ID: Date: Wed, 6 Jul 2016 17:16:45 +0200 MIME-Version: 1.0 In-Reply-To: <1467732272-23368-12-git-send-email-clord@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ItFEvCmIqsMl78gklVKGGaluafROlbenh" Subject: Re: [Qemu-devel] [PATCH v3 11/32] blockdev: Move qed probe to its own file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Colin Lord , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ItFEvCmIqsMl78gklVKGGaluafROlbenh From: Max Reitz To: Colin Lord , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org Message-ID: Subject: Re: [PATCH v3 11/32] blockdev: Move qed probe to its own file References: <1467732272-23368-1-git-send-email-clord@redhat.com> <1467732272-23368-12-git-send-email-clord@redhat.com> In-Reply-To: <1467732272-23368-12-git-send-email-clord@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 05.07.2016 17:24, Colin Lord wrote: > Isolate qed probe as part of the modularization process. >=20 > Signed-off-by: Colin Lord > --- > block/Makefile.objs | 2 +- > block/probe/qed.c | 18 ++++++++++++++++++ > block/qed.c | 15 +-------------- > include/block/probe.h | 1 + > 4 files changed, 21 insertions(+), 15 deletions(-) > create mode 100644 block/probe/qed.c Reviewed-by: Max Reitz > diff --git a/include/block/probe.h b/include/block/probe.h > index f9dd36e..e3e9934 100644 > --- a/include/block/probe.h > +++ b/include/block/probe.h > @@ -9,5 +9,6 @@ int dmg_probe(const uint8_t *buf, int buf_size, const c= har *filename); > int parallels_probe(const uint8_t *buf, int buf_size, const char *file= name); > int qcow_probe(const uint8_t *buf, int buf_size, const char *filename)= ; > int qcow2_probe(const uint8_t *buf, int buf_size, const char *filename= ); > +int bdrv_qed_probe(const uint8_t *buf, int buf_size, const char *filen= ame); Hmmm, maybe it would make sense to follow a consistent naming scheme here, i.e. either ${format}_probe() or bdrv_${format}_probe(). The latter is probably better, but the former is what most formats do, so... But maybe that is something that should be done in the "Separate X probe from its driver" patches. Max > =20 > #endif >=20 --ItFEvCmIqsMl78gklVKGGaluafROlbenh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEvBAEBCAAZBQJXfSDdEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrR5O B/wNnFzhvKHxzx62l/P8Ur/x0c/3qHLhfVq2lYsnhdaJPiU3Fv2dHq7FDPLw9XxX 0j3AmoI8zSA3TbtM4cVspGJh+S0erj4/IWpx3OMqi7bh2Lbpw0wy/XlxgzhQpcu1 oMOGDqKPF7f3/fa+3bqQPjz9wlI4Ey916axn73s2dXeZJANI+tRaswX1vG3FtfhM BgJFO9t6v4QOKe2AiU3+TwddUUJJU0QbNML0Y7oDrvGLJ8hCIFQMEsYLPhGLfsoa gUxnwwVw++1ikhyRmMNEHQPUQr7kzfzhquHeRS63UMcwT3D3RWzAlh8A7T03EYaT /2/dp0LF0bA1sEfqEy1fobPy =lEp0 -----END PGP SIGNATURE----- --ItFEvCmIqsMl78gklVKGGaluafROlbenh--