1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/sbin/mdconfig
Dima Dorfman 26a0ee75c6 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
2001-08-07 19:23:16 +00:00
..
Makefile Constify mdmaybeload(), add a prototype for usage(), and get rid of a 2001-06-21 02:10:26 +00:00
mdconfig.8 Introduce a force option, MD_FORCE, that instructs the driver to 2001-08-07 19:23:16 +00:00
mdconfig.c Introduce a force option, MD_FORCE, that instructs the driver to 2001-08-07 19:23:16 +00:00