Blame README.changer

Packit Service a4b2a9
Fri Jan 21 17:31:43 GMT 2000
Packit Service a4b2a9
Toby Jaffey <toby@earth.li>
Packit Service a4b2a9
Added modules/mount_changer.c
Packit Service a4b2a9
Packit Service a4b2a9
I have an NEC CD-ROM DRIVE:251, 4X CD-ROM changer w/4 slots, 128kB
Packit Service a4b2a9
Cache.  The drive can only mount one CD at a time. To change the CD in
Packit Service a4b2a9
use you must unmount, swap slots (lots of ioctl() calls) and
Packit Service a4b2a9
remount. Using autofs, this module allows the illusion that all CDs
Packit Service a4b2a9
are mounted at any given time. Only when data is requested does the
Packit Service a4b2a9
drive need to swap. Clearly, this is awful for simultaneous reads
Packit Service a4b2a9
across many disks, but I use it to create mp3 playlists spanning
Packit Service a4b2a9
multiple CDs.
Packit Service a4b2a9
Packit Service a4b2a9
The code is mostly clean, but rather than adding a new "mediatype" to
Packit Service a4b2a9
the config file, I set my drive up as fstype=changer. The assumption
Packit Service a4b2a9
is made that all of the disks are of type iso9660. This is a bad
Packit Service a4b2a9
thing, but it works for me.
Packit Service a4b2a9
Packit Service a4b2a9
[hpa: I believe these problems are due to a design error.  The changer
Packit Service a4b2a9
should be a lookup type, rather than a filesystem (mount) type.]
Packit Service a4b2a9
Packit Service a4b2a9
My /etc/auto.master says:
Packit Service a4b2a9
/mnt/changer    /etc/auto.misc
Packit Service a4b2a9
Packit Service a4b2a9
My /etc/auto.misc says:
Packit Service a4b2a9
1          -fstype=changer              :/dev/hdb
Packit Service a4b2a9
2          -fstype=changer              :/dev/hdb
Packit Service a4b2a9
3          -fstype=changer              :/dev/hdb
Packit Service a4b2a9
4          -fstype=changer              :/dev/hdb
Packit Service a4b2a9
Packit Service a4b2a9
Packit Service a4b2a9