Re: letting glabel recognise a media change

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Mon, 11 Oct 2010 22:11:56 +0200
On Mon, Oct 11, 2010 at 11:03:26AM -0400, John Baldwin wrote:
> With CD drives you are also rather stuck in that the existing ABI for
> controlling CD drives (e.g. ioctls in 3rd party software to eject a CD) are
> done on the /dev/cdX device.  Ideally enclosures for removable media would
> be separate devices from the removable media itself, but a lot of existing
> software for CD's would break if this changes now.

Right, but I still wonder if we could execute provider orphan and
retaste on various events like media insertion or removal. If media is
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).

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Mon Oct 11 2010 - 18:12:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC