summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2007-02-20 22:04:23 +0000
committern_hibma <n_hibma@FreeBSD.org>2007-02-20 22:04:23 +0000
commita5256aaa91c3ce8e70ea5da1a03282d187844489 (patch)
treeb4f2cb35e74d82eee92e055f42acbe3bccb5617f /sbin
parentafe986e40e5a80d1dd3c4eae1b177256368b58e3 (diff)
downloadFreeBSD-src-a5256aaa91c3ce8e70ea5da1a03282d187844489.zip
FreeBSD-src-a5256aaa91c3ce8e70ea5da1a03282d187844489.tar.gz
Kris suggested that swap is a better choice as a default than malloc.
MFC: 1 week
Diffstat (limited to 'sbin')
-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 0f99357..5437a38 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 068aaba..4de9057 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)
OpenPOWER on IntegriCloud