From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9dQI-0006BN-EL for qemu-devel@nongnu.org; Mon, 29 Jun 2015 14:04:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9dQH-0004e6-Bo for qemu-devel@nongnu.org; Mon, 29 Jun 2015 14:04:50 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Mon, 29 Jun 2015 14:04:38 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: Subject: Re: [Qemu-devel] [PATCH] raw-posix.c: cd_is_inserted() implementation for Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , qemu-devel qemu-devel , Qemu-block On Jun 29, 2015, at 1:11 PM, Peter Maydell wrote: > On 29 June 2015 at 17:54, Programmingkid = wrote: >> @@ -2365,6 +2384,10 @@ static BlockDriver bdrv_host_device =3D { >> .bdrv_ioctl =3D hdev_ioctl, >> .bdrv_aio_ioctl =3D hdev_aio_ioctl, >> #endif >> + >> +#ifdef __APPLE__ >> + .bdrv_is_inserted =3D cdrom_is_inserted, >> +#endif >=20 > Why isn't this handled by having a bdrv_host_cdrom, > like Linux and FreeBSD do for their CDROM support? That would involve a lot of unnecessary work and modifications. This = small change is all that is needed.=