summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2001-10-18 09:48:28 +0000
committerroberto <roberto@FreeBSD.org>2001-10-18 09:48:28 +0000
commit4153de7b054229b20a09957ffa86037f696d6da4 (patch)
tree7d73c850d5d1d6d131409659c12cbbe35f00ec45 /sbin/newfs
parent381bbd23209b48f9e6ab1da096978d1e517d1e3a (diff)
downloadFreeBSD-src-4153de7b054229b20a09957ffa86037f696d6da4.zip
FreeBSD-src-4153de7b054229b20a09957ffa86037f696d6da4.tar.gz
Fix diskless clients by removing the code for calculating the minimum
value for cpg. The change was bogus. Submitted by: bde MFC after: 2 days
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index b950f51..c122a2e 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -166,7 +166,6 @@ int Uflag; /* enable soft updates for file system */
int fssize; /* file system size */
int ntracks = NTRACKS; /* # tracks/cylinder */
int nsectors = NSECTORS; /* # sectors/track */
-int ncyls; /* # complete cylinders */
int nphyssectors; /* # sectors/track including spares */
int secpercyl; /* sectors per cylinder */
int trackspares = -1; /* spare sectors per track */
@@ -180,7 +179,7 @@ int headswitch; /* head switch time, usec */
int trackseek; /* track-to-track seek, usec */
int fsize = 0; /* fragment size */
int bsize = 0; /* block size */
-int cpg = 0; /* cylinders/cylinder group */
+int cpg = DESCPG; /* cylinders/cylinder group */
int cpgflg; /* cylinders/cylinder group flag was given */
int minfree = MINFREE; /* free space threshold */
int opt = DEFAULTOPT; /* optimization preference (space or time) */
@@ -545,17 +544,6 @@ main(argc, argv)
pp->p_size *= secperblk;
}
#endif
- ncyls = fssize / secpercyl;
- if (ncyls == 0)
- ncyls = 1; /* XXX */
- if (cpg == 0)
- cpg = DESCPG < ncyls ? DESCPG : ncyls;
- else if (cpg > ncyls) {
- cpg = ncyls;
- printf(
- "Number of cylinders restricts cylinders per group to %d.\n",
- cpg);
- }
mkfs(pp, special, fsi, fso);
#ifdef tahoe
if (realsectorsize != DEV_BSIZE)
OpenPOWER on IntegriCloud