diff options
author | Nick Hibma <n_hibma@FreeBSD.org> | 2007-02-20 22:04:23 +0000 |
---|---|---|
committer | Nick Hibma <n_hibma@FreeBSD.org> | 2007-02-20 22:04:23 +0000 |
commit | 7090e3d10c0e7d2ccf90f08dea64c683b8157407 (patch) | |
tree | b4f2cb35e74d82eee92e055f42acbe3bccb5617f | |
parent | 35ce0ff2f20a35997c4be1a87f034651df7da71c (diff) | |
download | src-7090e3d10c0e7d2ccf90f08dea64c683b8157407.tar.gz src-7090e3d10c0e7d2ccf90f08dea64c683b8157407.zip |
Kris suggested that swap is a better choice as a default than malloc.
MFC: 1 week
Notes
Notes:
svn path=/head/; revision=166854
-rw-r--r-- | sbin/mdconfig/mdconfig.8 | 2 | ||||
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8 index 0f993575aa1e..5437a38d29f2 100644 --- a/sbin/mdconfig/mdconfig.8 +++ b/sbin/mdconfig/mdconfig.8 @@ -125,7 +125,7 @@ which denotes byte, kilobyte, megabyte, gigabyte and terabyte respectively. Options .Fl a and -.Fl t Ar malloc +.Fl t Ar swap are implied if not specified. .It Fl S Ar sectorsize Sectorsize to use for malloc backed device. diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 068aaba64a0a..4de9057db909 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -200,9 +200,9 @@ main(int argc, char **argv) cmdline = 1; } if (cmdline == 1) { - /* Imply ``-t malloc'' */ - mdio.md_type = MD_MALLOC; - mdio.md_options = MD_AUTOUNIT | MD_COMPRESS; + /* Imply ``-t swap'' */ + mdio.md_type = MD_SWAP; + mdio.md_options = MD_CLUSTER | MD_AUTOUNIT | MD_COMPRESS; cmdline = 2; } if (cmdline != 2) |