From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Vivier Subject: Re: tape support Date: Sat, 13 Sep 2008 10:01:28 +0200 Message-ID: <1221292888.11231.5.camel@frecb07144> References: <7B7881568CF40E4388B615CD06F87B98024EE8@clara.maurer-it.com> <1221130881.4145.25.camel@frecb07144> <48CB46EA.3050005@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Dietmar Maurer , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from ecfrec.frec.bull.fr ([129.183.4.8]:47557 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbYIMIBe (ORCPT ); Sat, 13 Sep 2008 04:01:34 -0400 In-Reply-To: <48CB46EA.3050005@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: Le samedi 13 septembre 2008 =C3=A0 07:51 +0300, Avi Kivity a =C3=A9crit= : > Laurent Vivier wrote: > > Le jeudi 11 septembre 2008 =C3=A0 12:54 +0200, Dietmar Maurer a =C3= =A9crit : > > =20 > >> Is there a way to use a scsi tape? I tried -drive file=3D/dev/sg0,= but > >> that does not work (eject, rewind works, but read/write fails - no= date > >> is written - no errors) > >> =20 > > > > try "-drive file=3D/dev/sg0,if=3Dscsi" > > =20 >=20 > How would that work? Won't qemu attempt to show the tape as a disk? = Or > does it detect this special case and passes-through the scsi device? Yes, Qemu detects it's SCSI interface and passes the SCSI commands to devices. But qemu ignores the type of the device but OS (linux) detects this as a tape (with INQUIRY). It works well for CD/DVD and disk, but I'm working with Dietmar to make it working with tape (commands encoding differs)... and I found some devices to test. Regards, Laurent --=20 ----------------- Laurent.Vivier@bull.net ------------------ "La perfection est atteinte non quand il ne reste rien =C3=A0 ajouter mais quand il ne reste rien =C3=A0 enlever." Saint Exup=C3=A9ry