#
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 ...
|
#
a4ca6a49 |
| 22-Jan-2010 |
Jaakko Heinonen <jh@FreeBSD.org> |
Make mdconfig(8) WARNS=6 clean:
- Constify geom_config_get() name argument. - Add void keyword for usage(). - Initialize mdunit to NULL. - Don't call md_prthumanval() at all if length is NULL.
Appr
Make mdconfig(8) WARNS=6 clean:
- Constify geom_config_get() name argument. - Add void keyword for usage(). - Initialize mdunit to NULL. - Don't call md_prthumanval() at all if length is NULL.
Approved by: trasz (mentor)
show more ...
|
#
0e3ebc63 |
| 18-Jan-2010 |
Jaakko Heinonen <jh@FreeBSD.org> |
Print sizes up to INT64_MAX in md_prthumanval().
PR: bin/125365 Approved by: trasz (mentor) MFC after: 2 weeks
|
Revision tags: release/7.2.0_cvs, release/7.2.0 |
|
#
a9ebb311 |
| 10-Jan-2009 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add the possibility to specify "-o force" with "mdconfig -du".
Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
|
Revision tags: release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
c94b8307 |
| 21-Jun-2008 |
Dmitry Morozovsky <marck@FreeBSD.org> |
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
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
69fcb537 |
| 16-Nov-2007 |
Florent Thoumie <flz@FreeBSD.org> |
Fix exit code when using -l on a non-existent md(4) device.
PR: conf/116177 Submitted by: Remi Guyomarch <rguyom@pobox.com> MFC after: 3 days
|
#
7090e3d1 |
| 20-Feb-2007 |
Nick Hibma <n_hibma@FreeBSD.org> |
Kris suggested that swap is a better choice as a default than malloc.
MFC: 1 week
|
#
35ce0ff2 |
| 20-Feb-2007 |
Nick Hibma <n_hibma@FreeBSD.org> |
[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
|
#
1253fe1e |
| 20-Feb-2007 |
Nick Hibma <n_hibma@FreeBSD.org> |
Make attach the default for -f. That way
mdconfig -f image
works like a charm.
Reviewed by: phk (some time ago) MFC: 1 week
|
Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
c3345c66 |
| 27-Mar-2006 |
Jason Evans <jasone@FreeBSD.org> |
Unbreak the build.
|
#
ea3d97ae |
| 27-Mar-2006 |
Wojciech A. Koszek <wkoszek@FreeBSD.org> |
For now, bring back some of the old bits as a fix for specifying md(4) device number at creation time with -u option. Together with XMLizing mdconfig(8), I broke this functionality.
This change is t
For now, bring back some of the old bits as a fix for specifying md(4) device number at creation time with -u option. Together with XMLizing mdconfig(8), I broke this functionality.
This change is temporary. Complete fix will be commited soon.
Approved by: cognet (mentor)
show more ...
|
#
c27a8954 |
| 27-Mar-2006 |
Wojciech A. Koszek <wkoszek@FreeBSD.org> |
Teach md(4) and mdconfig(8) how to understand XML. Right now there won't be a problem with listing large number of md(4) devices. Either 'list' or 'query' mode uses XML.
Additionally, new functional
Teach md(4) and mdconfig(8) how to understand XML. Right now there won't be a problem with listing large number of md(4) devices. Either 'list' or 'query' mode uses XML.
Additionally, new functionality was introduced. It's possible to pass multiple devices to -u:
# ./mdconfig -l -u md0,md1
Approved by: cognet (mentor)
show more ...
|
#
4bfd989f |
| 27-Mar-2006 |
Wojciech A. Koszek <wkoszek@FreeBSD.org> |
Keep proper order of includes. Additionally, sort them. Make functions used in that file static.
Approved by: cognet (mentor)
|
#
a921cb31 |
| 18-Feb-2006 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Use kld(3) for loading geom_md.ko.
|
#
7e06d7bc |
| 22-Dec-2005 |
Dima Dorfman <dd@FreeBSD.org> |
Sort the list results by the unit number. The list returned by the kernel is in the order the devices were made, which is not useful to the user. Also, remove the "%d more" test since the kernel does
Sort the list results by the unit number. The list returned by the kernel is in the order the devices were made, which is not useful to the user. Also, remove the "%d more" test since the kernel does not return the complete count in md_pad[0] (maybe it should?).
Submitted by: Wojciech A. Koszek
show more ...
|
#
d9414258 |
| 11-Nov-2005 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Rename GEOM class kernel module g_md.ko to geom_md.ko for consistency with the rest.
mdconfig.c: Simplify mdmaybeload() function. mdioctl.h: Removed (now unused) #define. loader.conf: Sort GEOM clas
Rename GEOM class kernel module g_md.ko to geom_md.ko for consistency with the rest.
mdconfig.c: Simplify mdmaybeload() function. mdioctl.h: Removed (now unused) #define. loader.conf: Sort GEOM classes properly.
OK'ed by: phk
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
c313f09b |
| 30-Aug-2005 |
Christian S.J. Peron <csjp@FreeBSD.org> |
When using files as backing stores for devices, and the user has requested the device be created read+write, check to see if the backing store is read only through the use of the access(2) system cal
When using files as backing stores for devices, and the user has requested the device be created read+write, check to see if the backing store is read only through the use of the access(2) system call. If this check fails returning EACCES, EPERM or EROFS then gracefully downgrade the access to read only. Also print a warning message to stderr, informing the user that the access mode they requested is not available.
This behavior used to be handled by md(4) but was changed in revision 1.154
Discussed with: pjd, phk, Dario Freni <saturnero at freesbie dot org> Reviewed by: phk
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
5d19b2f9 |
| 01-Mar-2005 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
We can specify device size in bytes. Document this in usage.
|