From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55661 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSSMW-00020F-Fs for qemu-devel@nongnu.org; Sat, 26 Jun 2010 06:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSSMV-0002eY-60 for qemu-devel@nongnu.org; Sat, 26 Jun 2010 06:11:48 -0400 Received: from verein.lst.de ([213.95.11.210]:37446) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSSMU-0002eT-Qi for qemu-devel@nongnu.org; Sat, 26 Jun 2010 06:11:47 -0400 Date: Sat, 26 Jun 2010 12:11:46 +0200 From: Christoph Hellwig Message-ID: <20100626101146.GC27699@lst.de> References: <1277484812-22012-1-git-send-email-armbru@redhat.com> <1277484812-22012-9-git-send-email-armbru@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1277484812-22012-9-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] Re: [PATCH 08/12] block: Catch attempt to attach multiple devices to a blockdev List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, hch@lst.de, qemu-devel@nongnu.org, kraxel@redhat.com On Fri, Jun 25, 2010 at 06:53:28PM +0200, Markus Armbruster wrote: > For instance, -device scsi-disk,drive=foo -device scsi-disk,drive=foo > happily creates two SCSI disks connected to the same block device. > It's all downhill from there. And from some quick testing a while ago the thing seems to actually work. Not that I think that it is a good idea, but do we want to change behaviour in that respect? > Device usb-storage deliberately attaches twice to the same blockdev, > which fails with the fix in place. Detach before the second attach > there. Can anyone explain what the hell usb storage is actually trying to do with the two drives?