Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Aug 2001 18:15:41 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, phk@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/md md.c
Message-ID:  <3B6EB49D.87864E16@FreeBSD.org>
References:  <20010803202216.30EB13E31@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dima Dorfman wrote:

> Maxim Sobolev <sobomax@FreeBSD.org> writes:
> > sobomax     2001/08/02 03:19:14 PDT
> >
> >   Modified files:
> >     sys/dev/md           md.c
> >   Log:
> >   - Deny detaching requests until device is still open, otherwise it is possible
> >     to hang or panic kernel by detaching disk from which fs is mounted;
>
> When I proposed a similar patch some time ago, phk said that he would
> like md(4) to behave "as much like a real disk as possible", which
> included being able to go offline at any moment (in md terms, this
> would mean detaching).  This would be useful for testing such things
> as a removable ATA flash drive going away.
>
> That said, detaching an md while it's mounted is only going to bite
> more people as more people start using -current (esp. when it comes
> closer to being -release), so this safeguard is a good idea.  However,
> it would still be nice to be able to turn it off when one wishes.  I
> propose to add a "force" option that will tell the driver to turn off
> anti-foot shooting precautions such as this one.  Attached is a patch
> to do that.
>
> Comments?  Thoughts?

Looks fine to me.

-Maxim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B6EB49D.87864E16>