Re: audio fs emulation

Senko Rasic (ptolomei@fly.cc.fer.hr)
Mon, 26 Apr 1999 11:29:12 +0200


On Fri, Apr 23, 1999 at 11:03:59PM +0100, you wrote:
> I haven't had a chance to look at this yet, never mind try it out, but
> there's one thing I'd be interested in knowing: How does it handle
> dual-mode CD's (those with a combination of data and audio tracks) ???

It doesn't. It just displays data tracks, but (at present) can't
access them.

> I'd like to see it handle those by one of the following, but have no
> idea if either is possible:
>
> 1. "mount /dev/cdrom" results in a separate directory called /audio
> appearing with the relevant files within it.

Hmm...(imho) that would need redesigning complete isofs code and adding
audio support for it. If it's possible (isofs uses normal
bread, audiofs passes calls to cd ioctls) at all...
>
> 2. "mount /dev/cdrom" can be used twice, once each with iso9660 and
> audiofs as the mount type, with different mount points.
I don't think so. VFS "locks" mounted device (afaik). One could do fs
emulation that bypasses VFS but that would be a really ugly hack.

> Comments?

I think the easiest (but probably not the best) way to do it is
that audiofs would read data tracks, and then those tracks
(files) would be mounted using loopback device...

With regards, Senko

-- 
 ___ _       _               _   
| _ \ |_ ___| |___ _ __  ___(_)  Senko Rasic at FER
|  _/  _/ _ \ / _ \ '  \/ -_) |  Mail: ptolomei@fly.cc.fer.hr
|_|  \__\___/_\___/_|_|_\___|_|  Web: http://fly.cc.fer.hr/~ptolomei/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/