Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 23:24:05 +0100
From:      vermaden <vermaden@interia.pl>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        fidaj@ukr.net, freebsd-stable@FreeBSD.org, lars.engels@0x20.net, Hans Petter Selasky <hselasky@c2i.net>, Alexander Leidinger <Alexander@Leidinger.net>, smithi@nimnet.asn.au
Subject:   Re: devd based AUTOMOUNTER
Message-ID:  <djdyclvoifckkqwlcaho@lbgx>
In-Reply-To: <4F4D510E.60206@FreeBSD.org>
References:  <hkubftdrahxmtuzcfqzh@ziad> <4F3EE186.4020801@gmail.com> <uhhupehcnrebtwjfedhg@xlkc> <201202181409.08859.hselasky@c2i.net> <evbvqmovseenzzafkvdy@cufm> <dusvifyxcdqegubftcgz@lvhf> <20120226203949.H89643@sola.nimnet.asn.au> <CAN6yY1uYMfWqkbXLHXuS-bTKes7T=YMS%2BfBX8_%2BXtx9-rBFmyw@mail.gmail.com> <ztlcngurasjmdlkymcau@dovo> <CAN6yY1sfFH%2B4pBmmSmREG5xO1nF8iCzPwXKuXAOG3rBrsO62bg@mail.gmail.com> <kovckjfzfftyzqjrypqv@khtj> <20120228162636.Horde.JgORKJjmRSRPTPIsGKfo0uA@webmail.leidinger.net> <4F4D403E.2030703@FreeBSD.org> <qdhsbowuuhzdjuvpiakq@eioe> <4F4D510E.60206@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andriy Gapon" <avg@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 c=
ame up in
> >>> the past. So no devd event for this.
> >>
> >> My impression was that lately people were asking for it (and nobody ac=
tually
> >> "guarded" the code), but there is no good design on how to do it.
> >=20
> > 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.
>=20
> I don't think that there is any kernel component that pro-actively change=
s that
> value.  Most likely you have something like hald running or otherwise tri=
ed 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

































...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?djdyclvoifckkqwlcaho>