mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stelian Pop <stelian.pop@alcove.fr>
To: Jens Axboe <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Driver for emulating a tape device on top of a cd writer...
Date: Tue, 19 Dec 2000 10:45:12 +0100	[thread overview]
Message-ID: <20001219104512.A10971@wiliam.alcove-int> (raw)
In-Reply-To: <20001218112529.B6315@wiliam.alcove-int> <20001218190442.B473@suse.de>
In-Reply-To: <20001218190442.B473@suse.de>; from axboe@suse.de on Mon, Dec 18, 2000 at 07:04:42PM +0100

On Mon, Dec 18, 2000 at 07:04:42PM +0100, Jens Axboe wrote:

> > Basically, I would like to be able to use a cdwriter as a tape
> > device, with software like dump(8) or tar(1). With /dev/tcdw
> > as name (for example), I'd like to be able to do:
> > [...]

> What you describe is actually one of the goals of the packet writing
> driver. To do this reliably you need packet writing, I won't even
> start to think about the headaches wihtout it...

Yes, I saw your patch for packet writing but:
- the CD written with packet writing software may not be readable
  on standard CD-ROM drives (and I want that, because almost 
  everybody has one).

- using packet writing you basically write _files_ on top of an
  UDF filesystem. Tar and dump (or afio, cpio etc) does not
  support that kind of access, they expect to be given a character
  device they can stream data to. (Of course, it is possible to
  add some additionnal level of indirection on top of the packet
  device and provide character based access to the UDF files, but
  IMHO _this_ would be overkill).

- data backups are expected to be fast. Writing data in DAO/TAO
  mode is much quicker than in packet mode.

- reliability is a question of implementation. cdrecord can
  be very reliable. If a user space application can provide this
  level of reliability, it should be even simpler to achieve it
  in kernel space (and I plan to use the BurnProof/etc extensions
  which will be present on all future cdwriters).

> > I'll start to work on this, probably by looking at the cdrecord 
> > low level code and porting it into kernel space.
> 
> Oh god no! You can do all this from user space.

Please pay attention to the fact that I was refering to the 'low level
code'. I don't intend to write a driver who can replace cdrecord. 
_This_ would be madness.

What I indend to do is just a 'small' driver, which supports only the
mmc drives. I expect the driver to be only some hundreds lines long.

Doing that from user space would mean propagating the data from
the user space application (dump or tar) to a character mode
driver, and back to a user space application (something like a hacked 
cdrecord), which will return in kernel space using sg interface...
It could be easier to write (even if I don't exactly feel confident
about hacking the cdrecord source :) ), but the reliability and
the performance would be far far away...

-- 
Stelian Pop <stelian.pop@alcove.fr>
| Alcôve - http://www.alcove.fr
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-19 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-18 10:25 Stelian Pop
2000-12-18 18:04 ` Jens Axboe
2000-12-19  9:45   ` Stelian Pop [this message]
2000-12-25 11:10     ` Jens Axboe

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=20001219104512.A10971@wiliam.alcove-int \
    --to=stelian.pop@alcove.fr \
    --cc=axboe@suse.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®