History log of /freebsd-10.0-release/sbin/mdconfig/mdconfig.8
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 252379 29-Jun-2013 joel

mdoc: remove EOL whitespace.


# 252033 20-Jun-2013 hrs

- Add "-f file" support to listing mode (-l). When a -f option is
specified, only md(4) devices which have the specified file as backing
store are displayed.
- Use MD_NAME instead of "md".
- Use _PATH_DEV instead of "/dev/".

MFC after: 1 week


# 242546 04-Nov-2012 wblock

Add an example showing the use of gnop(8) to skip over header data.

PR: kern/145999
Reviewed by: mjg
MFC after: 1 week


# 238215 07-Jul-2012 trasz

Make it possible to resize md(4) devices.

Reviewed by: kib
Sponsored by: FreeBSD Foundation


# 237645 27-Jun-2012 gavin

The -S option, to specify the sector size, has been usable on all types of
memory disks since r135340. Update the man page to reflect this.

Noticed by: avg
MFC after: 3 days


# 235355 12-May-2012 joel

Remove end of line whitespace.


# 235344 12-May-2012 joel

mdoc: use Po and Pc macros instead of parens. Also avoid starting a line
with Ns.


# 234047 08-Apr-2012 bjk

Fix a couple of style issues. Tweak grammar and markup while here.

Approved by: hrs (mentor)


# 221232 29-Apr-2011 des

Somewhere around the 473rd time I mistyped "mdconfig file" instead of
"mdconfig -f file", I decided that it would be easier to make mdconfig
DWIM than to teach my fingers to type the correct command line.

MFC after: 3 weeks


# 215247 13-Nov-2010 joel

Use "cylinder" instead of "cyl" for consistency.

Reviewed by: phk


# 187027 10-Jan-2009 trasz

Add the possibility to specify "-o force" with "mdconfig -du".

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation


# 179910 21-Jun-2008 marck

Add -v (verbose) option to -l command, to show size and backing store
of all md devices at one time.

Approved by: phk
MFC after: 2 weeks


# 174020 28-Nov-2007 remko

Every newline should start on it's own line. I didn't do that in the
previous commit, so make it happen now.

Prodded by: brueffer


# 174019 28-Nov-2007 remko

Sync with md(4)'s information regarding the swap backend.

PR: docs/115721
Submitted by: Stefan Lambrev <stefan.lambrev@moneybookers.com>
MFC After: 3 days


# 173540 11-Nov-2007 keramida

Forced commit to note that the previous change was...

Reviewed by: ceri


# 173539 11-Nov-2007 keramida

* Expand the example descriptions, fix mdoc-bugs in
"(-a and -t vnode are implied)"
and reuse it near the cd9660 example.
* Spell 'backing store' as two words.


# 173507 09-Nov-2007 keramida

Instead of hardcoding md10 as the device node in the cd9660 example,
use a trick submitted by Ruslan.

MFC after: 1 day


# 169672 18-May-2007 keramida

Add an example which shows how mdconfig(8) can be used
to mount an ISO 9660 CD image file.

PR: 112691
Submitted by: Warren Block, wblock at wonkity.com
MFC after: 3 days


# 166854 20-Feb-2007 n_hibma

Kris suggested that swap is a better choice as a default than malloc.

MFC: 1 week


# 166853 20-Feb-2007 n_hibma

[Found the original diff I made, see previous commit for other part]
Assume '-a' and '-t malloc' flags for '-s <size>' (malloc ramdisk) if not
specified.

Reviewed by: phk (some time ago)
MFC: 1 week


# 166852 20-Feb-2007 n_hibma

Make attach the default for -f. That way

mdconfig -f image

works like a charm.

Reviewed by: phk (some time ago)
MFC: 1 week


# 140627 22-Jan-2005 pjd

Allow to specify device size in bytes.

MFC after: 1 week


# 137315 06-Nov-2004 dd

Bump .Dd, replace missing letter, and prefer to use a verb that
matches the option letter.

Submitted by: ru
Should know better by now: dd


# 137301 06-Nov-2004 dd

Update the description of -l to reflect reality. After mdconfig.c
1.25, -l without -u only lists the names, so specifying -u does more
than just limit the output to one device.


# 135340 16-Sep-2004 pjd

- Make md(4) 64-bit clean.
After this change it should be possible to use very big md(4) devices.
- Clean up and simplify the code a bit.
- Use humanize_number(3) to print size of md(4) devices.
- Add 't' suffix which stands for terabyte.
- Make '-S' to really work with all types of devices.
- Other minor changes.


# 131488 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 129327 17-May-2004 ru

Assorted markup, grammar, and spelling fixes.


# 126821 10-Mar-2004 phk

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.


# 126021 19-Feb-2004 phk

s/bytes/byte/


# 124422 12-Jan-2004 phk

Note that geometry can also be specified on vnode backed deviecs.


# 124075 02-Jan-2004 phk

Warn that big malloc disks are a panic(8) implementation.

Submitted by: Colin Percival <cperciva@builder.daemonology.net>
(Who should really get his own bit one of these days!)

PR: 59988


# 121003 11-Oct-2003 blackend

Add a full example of a file-backed disk creation, I used the Handbook's
example.

PR: docs/51897
Submitted by: Kevin Oberman <oberman@es.net>


# 120998 11-Oct-2003 blackend

s/disklabel/bsdlabel where needed.


# 120319 21-Sep-2003 phk

Document the -x and -y options.


# 116194 11-Jun-2003 rwatson

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


# 114098 26-Apr-2003 dougb

Add .Xr's to mdmfs(8).

Submitted by: Scot W. Hetzel <hetzels@westbend.net>


# 111818 03-Mar-2003 phk

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


# 104018 26-Sep-2002 phk

Don't show disklabel in the examples, it is not necessary.


# 102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


# 100066 15-Jul-2002 rse

Replace extra call to "tunefs" with the equivalent of "newfs -U".

Reviewed by: phk


# 99501 06-Jul-2002 charnier

The .Nm utility


# 81429 10-Aug-2001 ru

mdoc(7) police: removed (now gratuitous) .Xo/.Xc brackets.


# 81257 07-Aug-2001 dd

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


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 79530 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 74151 12-Mar-2001 ru

mdoc(7) police: add a missing An call.


# 74047 09-Mar-2001 phk

Make md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)
entirely as previously advertised.

md(4) adopted all assets of vn(4) some time back and has proper devfs
support and cloning abilities to boot.


# 73094 26-Feb-2001 phk

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

Spotted by: dcs


# 73026 25-Feb-2001 phk

Make "md" and "mdctl" macroized parameters.

Implement "-l" option to mdconfig which can list one or all md devices.

Submitted by: Dima Dorfman <dima@unixfreak.org>


# 71745 28-Jan-2001 phk

Duh, the version of mdconfig.c I committed came from the wrong machine.

Commit the right version, but without the -b option which is too evil
for the present.

Remove -b and preload from the manpage as well.


# 71743 28-Jan-2001 phk

Don't specify fragment size, it autosizes from the sectorsize.

Remember to set mode 1777 on /tmp

Submitted by: mjacob


# 70888 10-Jan-2001 ru

Mdoc(7)ify.


# 70573 01-Jan-2001 phk

Add padding space and a version number to the md_ioctl structre for future
extension.

Add ability to create a preload disk giving an address and a length
(suggested by imp)

Fix bug relating to very small md(4) devices.

Update md.c copyright to reflect the status of code copied from vn.c.
(noticed by dillon)


# 70538 31-Dec-2000 phk

Improve cmdline parsing and messages.

Add a rudimentary man-page. (I'm no mdoc wizard, feel free to attack my
mistakes and blunders)