summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
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
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')
-rw-r--r--usr.sbin/sade/install.c3
-rw-r--r--usr.sbin/sade/label.c5
-rw-r--r--usr.sbin/sade/sade.h3
3 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index bce4e1c..4a26db0 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.242 1999/07/18 10:18:05 jkh Exp $
+ * $Id: install.c,v 1.243 1999/08/05 10:07:09 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -1049,6 +1049,7 @@ installVarDefaults(dialogMenuItem *self)
variable_set2(SYSTEM_STATE, "update", 0);
else
variable_set2(SYSTEM_STATE, "init", 0);
+ variable_set2(VAR_NEWFS_ARGS, "-b 8192 -f 1024", 0);
return DITEM_SUCCESS;
}
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;
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h
index 76d1c00..6a6a6ad 100644
--- a/usr.sbin/sade/sade.h
+++ b/usr.sbin/sade/sade.h
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: sysinstall.h,v 1.171 1999/07/19 10:06:17 jkh Exp $
+ * $Id: sysinstall.h,v 1.172 1999/07/26 10:49:36 brian Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -132,6 +132,7 @@
#define VAR_NETINTERACTIVE "netInteractive"
#define VAR_NETMASK "netmask"
#define VAR_NETWORK_DEVICE "netDev"
+#define VAR_NEWFS_ARGS "newfsArgs"
#define VAR_NFS_PATH "nfs"
#define VAR_NFS_HOST "nfsHost"
#define VAR_NFS_SECURE "nfs_reserved_port_only"
OpenPOWER on IntegriCloud