Source-Changes-HG archive

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

[src/trunk]: src/sbin/disklabel STRICT_ALIGNMENT only applies to the start of...



details:   https://anonhg.NetBSD.org/src/rev/7ff4fdb4418f
branches:  trunk
changeset: 472466:7ff4fdb4418f
user:      abs <abs%NetBSD.org@localhost>
date:      Fri Apr 30 04:46:50 1999 +0000

description:
STRICT_ALIGNMENT only applies to the start of partitions, not length.

diffstat:

 sbin/disklabel/disklabel.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r a270f92d0dda -r 7ff4fdb4418f sbin/disklabel/disklabel.c
--- a/sbin/disklabel/disklabel.c        Fri Apr 30 04:36:04 1999 +0000
+++ b/sbin/disklabel/disklabel.c        Fri Apr 30 04:46:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel.c,v 1.67 1999/04/29 19:12:07 wrstuden Exp $  */
+/*     $NetBSD: disklabel.c,v 1.68 1999/04/30 04:46:50 abs Exp $       */
 
 /*
  * Copyright (c) 1987, 1993
@@ -47,7 +47,7 @@
 static char sccsid[] = "@(#)disklabel.c        8.4 (Berkeley) 5/4/95";
 /* from static char sccsid[] = "@(#)disklabel.c        1.2 (Symmetric) 11/28/85"; */
 #else
-__RCSID("$NetBSD: disklabel.c,v 1.67 1999/04/29 19:12:07 wrstuden Exp $");
+__RCSID("$NetBSD: disklabel.c,v 1.68 1999/04/30 04:46:50 abs Exp $");
 #endif
 #endif /* not lint */
 
@@ -1732,13 +1732,6 @@
                        warnx("warning, partition %c: size 0, but offset %d",
                            part, pp->p_offset);
 #ifdef STRICT_CYLINDER_ALIGNMENT
-               if (pp->p_size % lp->d_secpercyl &&
-                           pp->p_size + pp->p_offset != lp->d_secperunit) {
-                       warnx("warning, partition %c:"
-                             " size %% cylinder-size != 0",
-                           part);
-                       errors++;
-               }
                if (pp->p_offset % lp->d_secpercyl) {
                        warnx("warning, partition %c:"
                              " offset %% cylinder-size != 0",



Home | Main Index | Thread Index | Old Index