On Mon, 2016-07-11 at 12:44 -0500, Karl Denninger wrote:
> On 7/11/2016 12:39, Ian Lepore wrote:
> > On Mon, 2016-07-11 at 12:30 -0500, Karl Denninger wrote:
> > > On 7/11/2016 11:32, Ian Lepore wrote:
> > > > On Mon, 2016-07-11 at 09:50 -0400, Brandon Allbery wrote:
> > > > > On Mon, Jul 11, 2016 at 9:46 AM, Karl Denninger <
> > > > > k...@denninger.net>
> > > > > wrote:
> > > > > 
> > > > > > Here's the backtrace ... sounds like expected behavior,
> > > > > > which
> > > > > > is
> > > > > > not-so
> > > > > > good all-in for a situation like this.  I guess the
> > > > > > strategy is
> > > > > > to
> > > > > > turn
> > > > > > off softupdates before attempting such an update so as not
> > > > > > to
> > > > > > crash
> > > > > > the
> > > > > > host machine if there's a problem with the card.
> > > > > > 
> > > > > I would tend to assume that removable media should not have
> > > > > softupdates
> > > > > enabled. Even with properly working media, it's practically
> > > > > begging
> > > > > for
> > > > > corruption.
> > > > > 
> > > > Writing to an sdcard without softupdates enabled will be an
> > > > exercise in
> > > > patience.  Like, come back next week and maybe it'll be done.
> > > > 
> > > > The only thing that comes to mind with this is maybe some sort
> > > > of
> > > > mount
> > > > flag to say you're willing to live with any amount of
> > > > filesystem
> > > > corruption in lieu of panicking.  I'm not sure how
> > > > easy/practical
> > > > that
> > > > would be to implement, though.
> > > > 
> > > > -- Ian
> > > Why not force-detach the volume that takes the error instead of a
> > > panic()?
> > > 
> > Patches welcome.
> > 
> > -- Ian
> Any hints on where the routine(s) live that would forcibly detach a
> volume?  (I'll go digging as well but shortening the time would help
> :))
> 

Your question assumes the existance of code that I don't know actually
exists.  Plug in any removable drive (like a usb thumb drive) and mount
a ufs filesystem with softupdates enabled, then remove the drive while
writing to it.  Panic.

I've always assumed that if this was easily fixable it would have been
fixed long ago, and if it was fixable at all it would have been fixed
by now.  (Although increasingly it seems that ufs has transitioned to
second-class citizenship, and lately I've even seen people mocked for
using it instead of zfs).

-- Ian

_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to