History log of /freebsd/sbin/mdconfig/mdconfig.c (Results 101 – 125 of 192)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a246f097 09-Aug-2004 John-Mark Gurney <jmg@FreeBSD.org>

change the name of the md module, to g_md, introduce a define with the
name MD_MODNAME, and make mdconfig use this new define...


# e869d377 25-Jul-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Give better diagnostic for problems with backing files.


Revision tags: release/4.10.0_cvs, release/4.10.0
# 7a6b2b64 10-Mar-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Fix a long-standing deadlock issue with vnode backed md(4) devices:

On vnode backed md(4) devices over a certain, currently undetermined
size relative to the buffer cache our "lemming-syncer" can pr

Fix a long-standing deadlock issue with vnode backed md(4) devices:

On vnode backed md(4) devices over a certain, currently undetermined
size relative to the buffer cache our "lemming-syncer" can provoke
a buffer starvation which puts the md thread to sleep on wdrain.

This generally tends to grind the entire system to a stop because the
event that is supposed to wake up the thread will not happen until a fair
bit of the piled up I/O requests in the system finish, and since a lot
of those are on a md(4) vnode backed device which is currently waiting
on wdrain until a fair amount of the piled up ... you get the picture.

The cure is to issue all VOP_WRITES on the vnode backing the device
with IO_SYNC.

In addition to more closely emulating a real disk device with a
non-lying write-cache, this makes the writes exempt from rate-limited
(there to avoid starving the buffer cache) and consequently prevents
the deadlock.

Unfortunately performance takes a hit.

Add "async" option to give people who know what they are doing the
old behaviour.

show more ...


Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0
# 8a50130b 11-Jul-2003 Alexander Kabaev <kan@FreeBSD.org>

Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.


# f79c46d3 11-Jun-2003 Robert Watson <rwatson@FreeBSD.org>

Add "-n" argument, which causes mdconfig to simply print the unit
number X, rather than mdX, making it easier to script tests that
use md devices but don't want to make assumptions about any existing

Add "-n" argument, which causes mdconfig to simply print the unit
number X, rather than mdX, making it easier to script tests that
use md devices but don't want to make assumptions about any existing
md use (such as in diskless environments).

show more ...


Revision tags: release/5.1.0_cvs, release/5.1.0
# 4e8bfe14 09-Apr-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Add a couple of undocumented test options to MD(4) to aid in regression
testting of GEOM.


Revision tags: release/4.8.0_cvs, release/4.8.0
# 252bcf45 01-Apr-2003 Yaroslav Tykhiy <ytykhiy@gmail.com>

Give clearer diagnostics on some cases of invalid
combinations of mdconfig(8) command-line arguments.

Make mdconfig(8) accept "-a -f file -o options"
equally with "-a -f file" (assuming "-t vnode".)


# ebe789d6 03-Mar-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Add a "-S sectorsize" option to enable Kirk to find a bug :-)


# e39eff98 27-Jan-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Don't use the kern.disks sysctl to find a list of md devices, use the
MDIOCLIST ioctl instead.

Spotted by: keramida


Revision tags: release/5.0.0_cvs, release/5.0.0
# f9e425b3 10-Oct-2002 Giorgos Keramidas <keramida@FreeBSD.org>

Make sure strsep() gets a nul-terminated string.

Reviewed by: phk


Revision tags: release/4.7.0_cvs
# 9d010543 21-Aug-2002 Warner Losh <imp@FreeBSD.org>

Don't use NULL where you really mean 0 to sysctlbyname.


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# d3974088 22-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


# 40dcc860 21-Mar-2002 Mike Barcroft <mike@FreeBSD.org>

Revert 1.20:
Memory disks may be used for other purposes besides newfs(8), so it
isn't helpful to require the minimum size meet newfs(8)'s criteria.


# 6a1bd017 21-Mar-2002 Mike Barcroft <mike@FreeBSD.org>

Provide a proper error message in mdconfig(8) when a filesystem is too
small, instead of a less meaningful error in newfs(8).


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# 53d745bc 20-Dec-2001 Dima Dorfman <dd@FreeBSD.org>

Actually make use of the md_version field of 'struct mdio'. In order
not to needlessly break compatibility, decrement MDIOVERSION to 0.

Approved by: phk


# 3fa96e66 07-Aug-2001 Dima Dorfman <dd@FreeBSD.org>

Move all the prototypes to one place.


# 26a0ee75 07-Aug-2001 Dima Dorfman <dd@FreeBSD.org>

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.,

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

show more ...


# 10b0e058 18-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Use MD_NAME and MDCTL_NAME constants where appropriate.


# c894b25a 21-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Constify mdmaybeload(), add a prototype for usage(), and get rid of a
sizeof(int) == sizeof(long) assumption; clamp down with WARNS=2.


# 78baea25 21-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Don't assume the length of MD_NAME is 2.


# 2885b421 21-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Fail if -s isn't specified for an MD_MALLOC or MD_SWAP disk; the
driver itself obviously won't configure such a disk, but the error
returned (EDOM) is more cryptic to the average user than it should

Fail if -s isn't specified for an MD_MALLOC or MD_SWAP disk; the
driver itself obviously won't configure such a disk, but the error
returned (EDOM) is more cryptic to the average user than it should be.

Also assert that the argument to -u is in fact a valid unit; don't
just accept any string to mean 0.

Approved by: phk

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# ed23a390 09-Mar-2001 Maxim Sobolev <sobomax@FreeBSD.org>

In the absence of explicit ``-t type'' option assume that ``-f file''
implies ``-t vnode''.

Approved by: phk


# 83da2a90 09-Mar-2001 Poul-Henning Kamp <phk@FreeBSD.org>

1) If mdconfig isn't given an action argument, it assumes detach.
2) Running `mdconfig -l` without any attached devices results in
mdconfig printing "md0" to standard output.

Submitted by: dd [1]

[

1) If mdconfig isn't given an action argument, it assumes detach.
2) Running `mdconfig -l` without any attached devices results in
mdconfig printing "md0" to standard output.

Submitted by: dd [1]

[1] no, not "dd(1)" but "Dima Dorfman"

show more ...


# 3f6f9216 26-Feb-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Remove "autounit" from settable options, it's the default unless you
specify -u.

Spotted by: dcs


# a69134f2 25-Feb-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Forgot to remove unneeded "intcmp" function.


12345678