Received: from [140.186.70.92] (port=35529 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSWlF-0005i1-UX for qemu-devel@nongnu.org; Sat, 26 Jun 2010 10:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSWlE-0000hy-Li for qemu-devel@nongnu.org; Sat, 26 Jun 2010 10:53:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22403) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSWlE-0000hr-BU for qemu-devel@nongnu.org; Sat, 26 Jun 2010 10:53:36 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH 04/12] blockdev: New drive_of_blockdev() References: <1277484812-22012-1-git-send-email-armbru@redhat.com> <1277484812-22012-5-git-send-email-armbru@redhat.com> <20100625194201.GD2865@lst.de> <20100626094650.GA26793@lst.de> Date: Sat, 26 Jun 2010 16:46:28 +0200 In-Reply-To: <20100626094650.GA26793@lst.de> (Christoph Hellwig's message of "Sat, 26 Jun 2010 11:46:50 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: kwolf@redhat.com, kraxel@redhat.com, qemu-devel@nongnu.org Christoph Hellwig writes: > On Sat, Jun 26, 2010 at 07:32:09AM +0200, Markus Armbruster wrote: >> Christoph Hellwig writes: >> >> >> +DriveInfo *drive_of_blockdev(BlockDriverState *bs) >> > >> > I'd call this find_drive_by_blockdev. >> >> For what it's worth, all externally visible functions dealing with >> drives start with "drive_". > > Ok. How about drive_get_by_blockdev, matching the drive_get_by_id we > have around? drive_get_by_id() gets removed by 07/12. But there's still drive_get(). drive_get_by_blockdev()? blockdev_to_drive()?