[paranoia] 'colorbook' fs - porting cdparanoia _into_ the kernel!

Mikko Nummelin mnummeli at cc.hut.fi
Mon Mar 8 13:43:00 PST 2004



I just had an idea, has anyone thought of this before. Today, it is so
that almost any CD and DVD can be read in such a way that it is mounted as
a particular filesystem and then read by read(2) system call. But not
audio CD's. They have to be specially ripped with cdda2wav or
cdparanoia! What about coding an additional file system (perhaps
backporting a lots of cdparanoia stuff), say 'colorbook' for referring to
the audio CD standards and with that kernel, ripping an audio CD could be
done in the following way:

# mount /dev/cdrom -t colorbook /mnt/cdrom

# cd /mnt/cdrom

# ls
track01.wav  track02.wav  track03.wav  track04.wav

# cp track*.wav /home/<user>/cdrip/

# umount /mnt/cdrom

The idea is that when mounting an audio CD, it reads the TOC and produces
a set of files named track??.wav into the mounted filesystem (with
appropriate lengths) if no extra options like "forcing TOC to match a
particular file" or "attempting a CDDB query" is not issued with
the mount command. This would , IMO, simplify the ripping procedure
significantly. With CD's with multiple sessions '-t colorbook' would be
enough to determine that it is the audio part to be mounted.

<p>Mikko Nummelin
--- >8 ----
List archives:  http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to 'paranoia-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Paranoia mailing list