Date: Sat, 19 Nov 2005 10:42:37 -0800 (PST) From: John Polstra <jdp@polstra.com> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: John Polstra <jdp@FreeBSD.org>, cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/cam/scsi scsi_cd.c scsi_da.c src/sys/geom geom_disk.c geom_disk.h geom_subr.c Message-ID: <XFMail.20051119104237.jdp@polstra.com> In-Reply-To: <20051119182853.GX5197@obiwan.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 19-Nov-2005 Jeremie Le Hen wrote: >> This fix adds a new disk_gone() function which is called by CAM when a >> drive goes away. It orphans all of the providers associated with the >> drive, setting an error condition of ENXIO in each one. In addition, >> we prevent a re-taste on last close for writing if an error condition >> has been set in the provider. > > This commit stirred my memory up about panicking when hot-unplugging > an USB key while it is still mounted. I have not been able to track > HEAD source changes attentively for some time recently but it > appears from the above description that this awkard behaviour has been > replaced by a smarter one (IOW, return ENXIO on all pending filesystem > actions). > > Thanks in advance for explanations. This commit may or may not fix those panics -- I don't really know. There is a lot that can go wrong if you remove a mounted filesystem from the system. John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20051119104237.jdp>