"Andriy Gapon" <a...@freebsd.org> pisze: > on 29/02/2012 00:04 vermaden said the following: > > "Andriy Gapon" said: > >> on 28/02/2012 17:26 Alexander Leidinger said the following: > >>> The kernel does not poll for CD changes, and the people guarding the > >>> relevant CD > >>> code where against something like this in the kernel everytime this came > >>> up in > >>> the past. So no devd event for this. > >> > >> My impression was that lately people were asking for it (and nobody > >> actually > >> "guarded" the code), but there is no good design on how to do it. > > > > The mentioned earlier sysctl OID changes whenever CD is in the > > drive or not, something changes that ... so adding appreciate > > events like "MEDIA INSERTED" and "MEDIA REMOVED" to cd* class > > should be enought to handle them and mount/umount the > > medium with script like mine with appreciate devd(8) config. > > I don't think that there is any kernel component that pro-actively changes > that > value. Most likely you have something like hald running or otherwise tried to > access the device before the change was noted.
I do not even have working CD drive in my laptop, so I cant tell ;) Ivan Klymenko sent this earlier in that thread: NO CD: > kern.geom.conftxt: 0 DISK cd0 0 2048 hd 0 sc 0 CD IN: > kern.geom.conftxt: 0 DISK cd0 4700372992 2048 hd 0 sc 0 Regards, vermaden ... _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"