Date: Wed, 6 May 2015 17:50:52 -0400 From: Ryan Stone <rysto32@gmail.com> To: NGie Cooper <yaneurabeya@gmail.com> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: What's required to make removal of a mounted USB stick safe? Message-ID: <CAFMmRNwSokRvnfv9E1mt=hT-SsUz-%2BeVM-%2Bt7s30P3gCS5D-EQ@mail.gmail.com> In-Reply-To: <CAGHfRMCRKoq7miFRrXYEmQiaHd%2BBat2t6Ab72%2BNJLW0=LQk40Q@mail.gmail.com> References: <CAFMmRNwTi2GOEHN1tDQ7o1-VAtykT%2Bz3g%2B70qaDMenThSrSRgQ@mail.gmail.com> <CAGHfRMCRKoq7miFRrXYEmQiaHd%2BBat2t6Ab72%2BNJLW0=LQk40Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 6, 2015 at 5:28 PM, NGie Cooper <yaneurabeya@gmail.com> wrote: > On Wed, May 6, 2015 at 1:49 PM, Ryan Stone <rysto32@gmail.com> wrote: > > Currently FreeBSD stands a fair chance at panicking if a mounted USB > drive > > is removed while I/O is in flight. Does anybody know what work is > involved > > to have the kernel safely recover from this case? Losing data from the > > drive is expected of course but there's no reason that the entire kernel > > has to crash. > > > > A co-worker has been looking at this but I don't feel that we understand > > the problem well enough to produce a real fix. All that we've been doing > > so far is papering over the explicit panics without having a full > > understanding of what we're doing. > > What version are you working on and how is the USB stick mounted (/, /mnt, > etc)? > Thanks! > Most of our testing was with 8.2, but we also did testing with some version of FreeBSD 10 (unfortunately I can't find a reference to a specific version). It's mounted on /mnt. I'm not expecting us to survive the loss of the root filesystem. :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNwSokRvnfv9E1mt=hT-SsUz-%2BeVM-%2Bt7s30P3gCS5D-EQ>