Date: Tue, 12 Oct 2010 15:50:27 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: Alexander Motin <mav@FreeBSD.org>, freebsd-current@FreeBSD.org, phk@FreeBSD.org, John Baldwin <jhb@FreeBSD.org>, sos@FreeBSD.org Subject: Re: letting glabel recognise a media change Message-ID: <4CB45993.3090600@icyb.net.ua> In-Reply-To: <20101011201156.GB2346@garage.freebsd.pl> References: <4CA3BD7C.9080306@feral.com> <20101010155340.GQ1733@garage.freebsd.pl> <4CB22833.70304@FreeBSD.org> <201010111103.26780.jhb@freebsd.org> <20101011201156.GB2346@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
on 11/10/2010 23:11 Pawel Jakub Dawidek said the following: > Right, but I still wonder if we could execute provider orphan and > retaste on various events like media insertion or removal. If media is I think nobody would disagree with that approach. The issue is to reliably detect those events without interfering with normal usage of the device. Not extremely hard to do, but still has to be done. > removed we orphan provider and recreate it, which will trigger retaste, > and this is fine there will be nothing to read from or write to (we will > simply return errors as we do now, I think). This way we nicely > co-operate with GEOM, but also with other tools that don't require media > to be present (if there is no media devfs entry still exists and handles > ioctls, it just return errors on read requests). > -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CB45993.3090600>