summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/label.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-05 19:50:26 +0000
committerphk <phk@FreeBSD.org>1999-08-05 19:50:26 +0000
commit7117f963c2a530493ce54c93224bf845685c7adc (patch)
treebb1bef4aaf5698473b941ebe71eaaa11105ce532 /usr.sbin/sade/label.c
parent3999d507696f72f37395b8794667806e95369608 (diff)
downloadFreeBSD-src-7117f963c2a530493ce54c93224bf845685c7adc.zip
FreeBSD-src-7117f963c2a530493ce54c93224bf845685c7adc.tar.gz
Make the newfs parameters a global option.
The default is still "-b 8192 -f 1024" but my experiments show that "-b 16384 -f 4096 -c 100" is a more sensible value for modern disksizes.
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r--usr.sbin/sade/label.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 7d56a4c..1b34e20 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.89 1999/05/07 04:36:21 jkh Exp $
+ * $Id: label.c,v 1.90 1999/07/29 06:28:52 brian Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -309,7 +309,8 @@ new_part(char *mpoint, Boolean newfs, u_long size)
ret = (PartInfo *)safe_malloc(sizeof(PartInfo));
sstrncpy(ret->mountpoint, mpoint, FILENAME_MAX);
- strcpy(ret->newfs_cmd, "newfs -b 8192 -f 1024");
+ strcpy(ret->newfs_cmd, "newfs ");
+ strcat(ret->newfs_cmd, variable_get(VAR_NEWFS_ARGS));
ret->newfs = newfs;
if (!size)
return ret;
OpenPOWER on IntegriCloud