From owner-cvs-all Tue Aug 7 12:23:22 2001
Delivered-To: cvs-all@freebsd.org
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
by hub.freebsd.org (Postfix) with ESMTP
id 9ABCF37B401; Tue, 7 Aug 2001 12:23:16 -0700 (PDT)
(envelope-from dd@FreeBSD.org)
Received: (from dd@localhost)
by freefall.freebsd.org (8.11.4/8.11.4) id f77JNG627986;
Tue, 7 Aug 2001 12:23:16 -0700 (PDT)
(envelope-from dd)
Message-Id: <200108071923.f77JNG627986@freefall.freebsd.org>
From: Dima Dorfman
Date: Tue, 7 Aug 2001 12:23:16 -0700 (PDT)
To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/sys mdioctl.h src/sys/dev/md md.c
src/sbin/mdconfig mdconfig.8 mdconfig.c
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID:
List-Archive: (Web Archive)
List-Help: (List Instructions)
List-Subscribe:
List-Unsubscribe:
X-Loop: FreeBSD.ORG
dd 2001/08/07 12:23:16 PDT
Modified files:
sys/sys mdioctl.h
sys/dev/md md.c
sbin/mdconfig mdconfig.8 mdconfig.c
Log:
Introduce a force option, MD_FORCE, that instructs the driver to
bypass some extra anti-foot-shooting measures. Currently, its only
effect is to allow detaching a device while it's still open (e.g.,
mounted). This is useful for testing how the system reacts to a disk
suddenly going away, which can happen with some removeable media.
At this point, the force option is only checked on detach, so it
would've been possible to allow the option to be passed with the
MDIOCDETACH operation. This was not done to allow the possibility of
having the force flag influence other tests in the future, which may
not necessarily deal with detaching the device.
Reviewed by: sobomax
Approved by: phk
Revision Changes Path
1.9 +2 -1 src/sys/sys/mdioctl.h
1.41 +6 -3 src/sys/dev/md/md.c
1.12 +6 -1 src/sbin/mdconfig/mdconfig.8
1.17 +5 -1 src/sbin/mdconfig/mdconfig.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message