History log of /freebsd/sbin/mdconfig/mdconfig.c (Results 176 – 192 of 192)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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.


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

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>


# 57e9624e 24-Feb-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Make md/mdconfig do kld.

Submitted by: dcs


# fb1023d6 31-Jan-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Strip optional prefixes "/dev/" and "md" from the -u argument.


# 3b42f2f3 28-Jan-2001 Poul-Henning Kamp <phk@FreeBSD.org>

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

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.

show more ...


# e06b153a 02-Jan-2001 Poul-Henning Kamp <phk@FreeBSD.org>

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

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)

show more ...


# 8f8def9e 31-Dec-2000 Poul-Henning Kamp <phk@FreeBSD.org>

This is the first snapshot of the new all-singing-and-dancing md(4).

Using the mdconfig(8) program you can now configure memory disks
on malloc(9), swap or a file/vnode. preloaded md disks also wor

This is the first snapshot of the new all-singing-and-dancing md(4).

Using the mdconfig(8) program you can now configure memory disks
on malloc(9), swap or a file/vnode. preloaded md disks also work
as usual.

show more ...


# c2ef0b73 31-Dec-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Improve cmdline parsing and messages.

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


# 70d586c0 28-Dec-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Preliminary scaffolding for the new integrated vn+md device driver.

I decided to work on the md(4) driver and integrate the vn(4)
functionality into it mainly based on the name being more suitable.

Preliminary scaffolding for the new integrated vn+md device driver.

I decided to work on the md(4) driver and integrate the vn(4)
functionality into it mainly based on the name being more suitable.
Ideally 'vd' as in "virtual disk" would probably be the most logical
but our sound-master pointed out that this would cause uncontrollable
fits of giggles in the brits. Another complication would the needed
changes to the ramdisk boot/root functionality.

The vn driver will stay around for some time after I complete this
merge for transition reasons, and I'll make it whine to people that
they should migrate to the md(4) driver for some time before it
dies.

The kernel part of the new md(4) driver will be committed after more
testing.

show more ...


12345678