Date: Mon, 29 Mar 2004 22:20:58 +0100 From: Nik Clayton <nik@freebsd.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: arch@freebsd.org Subject: Re: Where should devctl notifications be sent from? Message-ID: <20040329212058.GA713@clan.nothing-going-on.org> In-Reply-To: <21268.1080378686@critter.freebsd.dk> References: <20040327085537.GC33016@clan.nothing-going-on.org> <21268.1080378686@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 27, 2004 at 10:11:26AM +0100, Poul-Henning Kamp wrote: > The one question I would like you to answer is: How do you know it is > the right iPod before you stuff it with you backup ? Depends how good GBDE is. If=20 mdconfig -a -t vnode -f /ipod/backup.md -u 0 gbde attach /dev/md0c <enter pass phrase> works, and it's not my iPod, we have bigger problems... This also hooks in to the thread recently about USB serial numbers. USB devices are just one class of removable device which might have unique identifiers (or unique-enough for most purposes) that could be exposed through a suitable namespace (/dev, presumably). > The problem is, more or less, that the higher up (ie: lower on your list) > in the kernel you get, the more information you have lost. >=20 > Devctl today is working on the newbus view of hardware, and there we > have already lost most of the info that could help you make that > decision. Part of what I don't get (I think) is why devctl is needed. Wouldn't a new EVFILT_DEV kqueue filter be a more consistent way of doing things? I realise that may be opening a can of worms. I've googled my way back through the archives and didn't turn up anything that looked like discussion of the devctl approach. If there's anything out there that explains this that I've missed, I'll read any pointers. N --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ (__) FreeBSD Documentation Project http://www.freebsd.org/docproj/ \\\'',) \/ \= ^ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- .\._/= _) --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaJM5k6gHZCw343URAmjXAJwJQbBDC4ugQcmYaLMgSX1m1jQaEQCeOp3o TlPn9t4TcGXMmbjAzjlmgAg= =piwZ -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040329212058.GA713>