public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: Avi Kivity <avi@qumranet.com>
Cc: Dietmar Maurer <dietmar@proxmox.com>, kvm@vger.kernel.org
Subject: Re: tape support
Date: Sat, 13 Sep 2008 10:01:28 +0200	[thread overview]
Message-ID: <1221292888.11231.5.camel@frecb07144> (raw)
In-Reply-To: <48CB46EA.3050005@qumranet.com>

Le samedi 13 septembre 2008 à 07:51 +0300, Avi Kivity a écrit :
> Laurent Vivier wrote:
> > Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit :
> >   
> >> Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
> >> that does not work (eject, rewind works, but read/write fails - no date
> >> is written - no errors)
> >>     
> >
> > try "-drive file=/dev/sg0,if=scsi"
> >   
> 
> 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
-- 
----------------- Laurent.Vivier@bull.net  ------------------
  "La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry


  reply	other threads:[~2008-09-13  8:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 10:54 tape support Dietmar Maurer
2008-09-11 11:01 ` Laurent Vivier
2008-09-11 11:24   ` Dietmar Maurer
2008-09-11 11:43     ` Soren Hansen
2008-09-13  4:51   ` Avi Kivity
2008-09-13  8:01     ` Laurent Vivier [this message]
2008-09-13 14:43       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1221292888.11231.5.camel@frecb07144 \
    --to=laurent.vivier@bull.net \
    --cc=avi@qumranet.com \
    --cc=dietmar@proxmox.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox