letting glabel recognise a media change

Andriy Gapon avg at icyb.net.ua
Tue Oct 12 12:50:31 UTC 2010


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


More information about the freebsd-current mailing list