Re: CD-ROM support question.
Andrew E. Mileski (email@example.com)
Sun, 16 Nov 1997 15:02:17 -0500 (EST)
> I'm following the question posed a couple of days ago by some
> other one, who asked whether it is possible to have an automounted cd-rom.
> I'm aware of at least a good reason to try and implement (I think most
> should be user space, but this is the only place I can find this many
> knoledged people...)
It _is_ possible to detect a media change, but only between
open() operations [ie. pull the disk out in the middle of an
operation, and the kernel would probably complain].
Unlocking the media when it is read-only, and adding support
for volume detection [check_media_change() is called on every open]
should be all that is required.
Andrew E. Mileski mailto:firstname.lastname@example.org