lkml.org 
[lkml]   [1998]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IDEA: dummy cd-rom device
Hi!

> After accidentally burning a few audio CD-Rs with the wrong byte order, I
> was irritated that there was no simple way to use a loopback-filesystem
> like method to play them before burning.
>
> Perhaps we could implement a dummy cd-rom device as a module such that you
> could point it to a set of images to represent each track, regardless of
> audio or video. Then you could use a program like xmcd or workman to play
> an audio CD recorded on the hard drive by changing the link of /dev/cdrom
> to /dev/dummycd. you could 'rmmod dummycd;modprobe dummycd
> tracks=data01.cdr,audio02.cdr,audio03.cdr' to change virtual CDs. The
> device would support all CD-ROM ioctls, etc.... so you could effectively
> emulate a CD-ROM in software...I'm not sure about the behavior of the
> eject ioctl, but I'm sure someone can think of a logical behavior.
> (rerun module_init?) Perhaps this would also allow video CDs or similar to
> be tested.

What about doing this completely in userland? I really do not think
that this should be done in kernel.
Pavel

--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

\
 
 \ /
  Last update: 2005-03-22 13:41    [from the cache]
©2003-2011 Jasper Spaans