Date: Thu, 07 Apr 2011 17:46:53 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: freebsd-geom@FreeBSD.org Subject: Re: geom and removable media Message-ID: <4D9DCE5D.7040607@FreeBSD.org> In-Reply-To: <70252.1302171058@critter.freebsd.dk> References: <70252.1302171058@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
on 07/04/2011 13:10 Poul-Henning Kamp said the following: > In message <4D9D7EEB.3080607@FreeBSD.org>, Andriy Gapon writes: > >> Which I >> don't think would a right thing in the current world order where /dev/cdX >> represents both the drive and its media. > > You can create the new /dev/cdX right away, so there is no real window of > inconsistency. Yes, true. But I am trying to see whether that would buy us much comparing to just doing spoil + re-taste dance. I.e. my main concern is that the other geoms do not have a stale view of the media. I am OK with leaving everything else as it is now, so that any requests could still go all the way down to hardware (and fail). To summarize: I am thinking about posting a spoil event when we detect that a drive has no media (e.g. via a SCSI sense code) and posting a a retaste event when we detect presence of new media (probably as a result of some request succeeding). -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D9DCE5D.7040607>