Blame README.changer

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