summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 15:24:49 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 15:24:49 +0000
commit4a2c20ca184d900c836558fcd776cec5f99ef4bc (patch)
tree1bb16270d044d9e5ffbf8617e60216e32a07e9eb /release
parent7bfb0c69d91e78adbe259094b5d9b8b4e5bd1103 (diff)
downloadFreeBSD-src-4a2c20ca184d900c836558fcd776cec5f99ef4bc.zip
FreeBSD-src-4a2c20ca184d900c836558fcd776cec5f99ef4bc.tar.gz
Remove some suspect sector size calculations which are also the source
of some confusing messages from newfs (just judging by the number of people who point them out, anyway).
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/label.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c
index ac59ee1..8235921 100644
--- a/release/sysinstall/label.c
+++ b/release/sysinstall/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.50 1996/06/08 09:08:41 jkh Exp $
+ * $Id: label.c,v 1.51 1996/07/09 03:07:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -250,14 +250,6 @@ new_part(char *mpoint, Boolean newfs, u_long size)
ret->newfs = newfs;
if (!size)
return ret;
- for (target = size; target; target--) {
- for (divisor = 4096 ; divisor > 1023; divisor--) {
- if (!(target % divisor)) {
- sprintf(ret->newfs_cmd + strlen(ret->newfs_cmd), " -u %ld",divisor);
- return ret;
- }
- }
- }
return ret;
}
@@ -723,7 +715,6 @@ diskLabel(char *str)
if (type != PART_SWAP) {
/* This is needed to tell the newfs -u about the size */
tmp->private_data = new_part(p->mountpoint, p->newfs, tmp->size);
- tmp->private_free = safe_free;
safe_free(p);
}
else
OpenPOWER on IntegriCloud