Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/newfs If -c not set on command line and the partition h...



details:   https://anonhg.NetBSD.org/src/rev/167101cfaed0
branches:  trunk
changeset: 473062:167101cfaed0
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Wed May 19 00:25:59 1999 +0000

description:
If -c not set on command line and the partition has a non-zero cpg
value, use it for the number of cylinders per group. So now the value
in the disklabel does something. :-)

diffstat:

 sbin/newfs/newfs.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 648eb9e18df8 -r 167101cfaed0 sbin/newfs/newfs.c
--- a/sbin/newfs/newfs.c        Tue May 18 23:52:51 1999 +0000
+++ b/sbin/newfs/newfs.c        Wed May 19 00:25:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs.c,v 1.37 1999/01/19 19:34:50 tron Exp $  */
+/*     $NetBSD: newfs.c,v 1.38 1999/05/19 00:25:59 wrstuden Exp $      */
 
 /*
  * Copyright (c) 1983, 1989, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)newfs.c    8.13 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: newfs.c,v 1.37 1999/01/19 19:34:50 tron Exp $");
+__RCSID("$NetBSD: newfs.c,v 1.38 1999/05/19 00:25:59 wrstuden Exp $");
 #endif
 #endif /* not lint */
 
@@ -495,6 +495,10 @@
                if (bsize <= 0)
                        bsize = MIN(DFL_BLKSIZE, 8 * fsize);
        }
+       if (cpgflg == 0) {
+               if (pp->p_cpg != 0)
+                       cpg = pp->p_cpg;
+       }
        /*
         * Maxcontig sets the default for the maximum number of blocks
         * that may be allocated sequentially. With filesystem clustering



Home | Main Index | Thread Index | Old Index