Debian Codegraph @

README.changer

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