From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDCSV-0004XD-Aa for qemu-devel@nongnu.org; Thu, 09 Jul 2015 10:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDCST-0000zQ-Ss for qemu-devel@nongnu.org; Thu, 09 Jul 2015 10:05:51 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <559E4070.6040700@redhat.com> Date: Thu, 9 Jul 2015 10:05:41 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <15C0A91D-073C-4CD0-8563-FABFB463395F@gmail.com> References: <559E4070.6040700@redhat.com> Subject: Re: [Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Kevin Wolf , qemu-devel qemu-devel , Qemu-block On Jul 9, 2015, at 5:35 AM, Laurent Vivier wrote: >=20 >=20 > On 07/07/2015 19:33, Programmingkid wrote: >> Make physical devices like a USB flash drive or a CDROM drive work in >> QEMU. With >> this patch I can use a USB flash drive like a hard drive. Before this >> patch,=20 >> QEMU would just quit with a message like "resource busy". Now it = handles >> issues >> like these for the user. This patch unmounts volumes of physical = devices >> before >> using them in QEMU. When QEMU quits, the physical devices are mounted = again >> for the user. The user can find out which device files to use for = their >> physical >> devices by running the mount command in the terminal. This patch = makes >> "qemu-system-ppc -cdrom /dev/cdrom" work again on Mac OS X. >>=20 >> Signed-off-by: John Arbuckle > > >=20 > Two comments: > - you should not mix several fixes in one patch (raw block device > management, partition seek, unmount/mount cdrom...) I consider this patch one fix with several related changes.=20 > - according to Stefan answer, I think you should not unmount the CDROM > but you should inform the user he must unmount it manually to be able = to > use it. Having the user unmount the CDROM manually isn't as user friendly as having QEMU doing it for him or her.=20=