diff options
author | phk <phk@FreeBSD.org> | 2001-01-28 20:17:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-01-28 20:17:46 +0000 |
commit | 89f4ee5ca6d98d6e7315034f013aacbcc0561725 (patch) | |
tree | 75d11a301d1ff29c07141b59c3db082067073cc3 /sbin/mdconfig | |
parent | 96febcd0b89fea8df1984603f4e78dc5f7cebc3e (diff) | |
download | FreeBSD-src-89f4ee5ca6d98d6e7315034f013aacbcc0561725.zip FreeBSD-src-89f4ee5ca6d98d6e7315034f013aacbcc0561725.tar.gz |
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.
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r-- | sbin/mdconfig/mdconfig.8 | 19 | ||||
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 2 |
2 files changed, 1 insertions, 20 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8 index d6d37ee..3df2603 100644 --- a/sbin/mdconfig/mdconfig.8 +++ b/sbin/mdconfig/mdconfig.8 @@ -55,7 +55,6 @@ .Fl o .Oo Cm no Oc Ns Ar option .Oc -.Op Fl b Ar baseaddress .Op Fl s Ar size .Op Fl f Ar file .Op Fl u Ar unit @@ -84,11 +83,6 @@ Select the type of the memory disk. Storage for this type of memory disk is allocated with .Xr malloc 9 . This limits the size to the malloc bucket limit in the kernel. -.It Cm preload -This type represents memory disks which are backed by memory outside -the kernels normal address space. -These can be instantiated automatically by objects loaded by the -bootloader or configured on the fly. .It Cm vnode A file specified with .Fl f Ar file @@ -96,10 +90,6 @@ becomes the backingstore for this memory disk. .It Cm swap swapspace is used to back this memory disk. .El -.It Fl b Ar baseaddress -Starting address in kernel virtual space of the memory to be used for a -.Cm preload -type disk. .It Fl f Ar file Filename to use for the vnode type memory disk. .It Fl s Ar size @@ -175,15 +165,6 @@ tunefs -n enable /dev/md10c mount /dev/md10c /tmp chmod 1777 /tmp .Ed -.Pp -It is practically impossible to give a universal example of the -.Cm preload -type of disk, it is mainly useful in the embedded systems market, -but to give a feel for how it works: -On most standard PC architecture machines this will create a disk -backed by the BIOS ROM: -.Pp -.Dl mdconfig -a -t preload -s 128k -b 0xc00fe000 .Sh SEE ALSO .Xr md 4 , .Xr disklabel 8 , diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 9f43877..a5b777c 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -84,7 +84,7 @@ main(int argc, char **argv) case 'f': if (cmdline != 2) usage(); - strncpy(mdio.md_file, optarg, sizeof(mdio.md_file) - 1); + mdio.md_file = optarg; break; case 'o': if (cmdline != 2) |