aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2007-02-20 22:04:23 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2007-02-20 22:04:23 +0000
commit7090e3d10c0e7d2ccf90f08dea64c683b8157407 (patch)
treeb4f2cb35e74d82eee92e055f42acbe3bccb5617f /sbin/mdconfig
parent35ce0ff2f20a35997c4be1a87f034651df7da71c (diff)
downloadsrc-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
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.82
-rw-r--r--sbin/mdconfig/mdconfig.c6
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)