From d53c008630356e11163e4052bfc447f37d4b9e10 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 4 Oct 2006 03:23:02 +0000 Subject: More tidying up after bad144. Remove references in comments and don't include dkbad.h when nothing in it is used. Missed arm/include/disklabel.h first time around. --- sys/arch/alpha/alpha/disksubr.c | 5 ++--- sys/arch/amd64/amd64/disksubr.c | 5 ++--- sys/arch/arm/arm/disksubr.c | 7 ++----- sys/arch/aviion/aviion/disksubr.c | 7 ++----- sys/arch/hppa/hppa/disksubr.c | 5 ++--- sys/arch/hppa64/hppa64/disksubr.c | 5 ++--- sys/arch/i386/i386/disksubr.c | 5 ++--- sys/arch/luna88k/include/disklabel.h | 4 ++-- sys/arch/luna88k/luna88k/disksubr.c | 3 +-- sys/arch/macppc/macppc/disksubr.c | 5 ++--- sys/arch/mips64/mips64/disksubr.c | 5 ++--- sys/arch/mvmeppc/mvmeppc/disksubr.c | 5 ++--- sys/arch/sparc64/sparc64/disksubr.c | 3 +-- sys/arch/vax/vax/disksubr.c | 3 +-- 14 files changed, 25 insertions(+), 42 deletions(-) (limited to 'sys') diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index 956a3c6a3be..1df61d8cc40 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.54 2006/10/04 00:52:55 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.55 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -201,8 +201,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) #if defined(DISKLABEL_I386) /* * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c index ff9c477ba7c..3048220da78 100644 --- a/sys/arch/amd64/amd64/disksubr.c +++ b/sys/arch/amd64/amd64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.15 2006/10/04 00:52:55 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.16 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -50,8 +50,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid DOSMBR_SIGNATURE, but diff --git a/sys/arch/arm/arm/disksubr.c b/sys/arch/arm/arm/disksubr.c index c7f39959906..5bd6847f5ef 100644 --- a/sys/arch/arm/arm/disksubr.c +++ b/sys/arch/arm/arm/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.13 2006/09/16 14:56:11 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.14 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -50,8 +50,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid DOSMBR_SIGNATURE, but @@ -279,8 +278,6 @@ donot: goto done; } - /* obtain bad sector table if requested and present */ - done: if (bp) { bp->b_flags |= B_INVAL; diff --git a/sys/arch/aviion/aviion/disksubr.c b/sys/arch/aviion/aviion/disksubr.c index 3a3c4eb2e51..2ee724cb487 100644 --- a/sys/arch/aviion/aviion/disksubr.c +++ b/sys/arch/aviion/aviion/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.6 2006/09/16 14:56:11 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.7 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -50,8 +50,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid DOSMBR_SIGNATURE, but @@ -269,8 +268,6 @@ donot: goto done; } - /* obtain bad sector table if requested and present */ - done: if (bp) { bp->b_flags |= B_INVAL; diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index 6dda9bf1166..dcf293aaed3 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.34 2006/10/04 00:52:55 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.35 2006/10/04 03:23:01 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -204,8 +204,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) #if defined(DISKLABEL_I386) /* * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/hppa64/hppa64/disksubr.c b/sys/arch/hppa64/hppa64/disksubr.c index 5f1af4766b9..94da0fee11d 100644 --- a/sys/arch/hppa64/hppa64/disksubr.c +++ b/sys/arch/hppa64/hppa64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.17 2006/10/03 01:37:22 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.18 2006/10/04 03:23:01 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -200,8 +200,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) #if defined(DISKLABEL_I386) /* * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 6de37cead8d..5b937788cf9 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.57 2006/10/04 00:52:55 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.58 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -50,8 +50,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid DOSMBR_SIGNATURE, but diff --git a/sys/arch/luna88k/include/disklabel.h b/sys/arch/luna88k/include/disklabel.h index 4ca457a73cd..f2eae514c98 100644 --- a/sys/arch/luna88k/include/disklabel.h +++ b/sys/arch/luna88k/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.1 2004/04/21 15:23:57 aoyama Exp $ */ +/* $OpenBSD: disklabel.h,v 1.2 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disklabel.h,v 1.2 2000/01/28 02:25:24 nisimura Exp $ */ /* @@ -43,7 +43,7 @@ * This holds a copy of the whole label block, saved in here by * readdisklabel() so that writedisklabel() can preserve the * parts of the label block outside of the actual label. - * (i.e. Sun label info, bad block table, etc.) + * (i.e. Sun label info, etc.) */ struct cpu_disklabel { char cd_block[512]; diff --git a/sys/arch/luna88k/luna88k/disksubr.c b/sys/arch/luna88k/luna88k/disksubr.c index 117170bb613..f3f155b76e3 100644 --- a/sys/arch/luna88k/luna88k/disksubr.c +++ b/sys/arch/luna88k/luna88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.9 2006/08/17 10:34:14 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.10 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */ /* @@ -50,7 +50,6 @@ #include #include #include -#include #include diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index cbdd5b90af4..59014a23118 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.23 2006/10/04 00:52:55 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.24 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -53,8 +53,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/mips64/mips64/disksubr.c b/sys/arch/mips64/mips64/disksubr.c index 189281aa41f..1a9e7a31002 100644 --- a/sys/arch/mips64/mips64/disksubr.c +++ b/sys/arch/mips64/mips64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.23 2006/10/03 01:37:22 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.24 2006/10/04 03:23:01 krw Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -208,8 +208,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) #if defined(DISKLABEL_I386) /* * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/mvmeppc/mvmeppc/disksubr.c b/sys/arch/mvmeppc/mvmeppc/disksubr.c index b063ae0f0c3..d37069d8e5a 100644 --- a/sys/arch/mvmeppc/mvmeppc/disksubr.c +++ b/sys/arch/mvmeppc/mvmeppc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.19 2006/10/03 01:37:22 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.20 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -53,8 +53,7 @@ * must be filled in before calling us. * * If dos partition table requested, attempt to load it and - * find disklabel inside a DOS partition. Also, if bad block - * table needed, attempt to extract it as well. Return buffer + * find disklabel inside a DOS partition. Return buffer * for use in signalling errors if requested. * * We would like to check if each MBR has a valid BOOT_MAGIC, but diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c index a25cd33196a..437d47e59af 100644 --- a/sys/arch/sparc64/sparc64/disksubr.c +++ b/sys/arch/sparc64/sparc64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.19 2006/08/17 10:34:14 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.20 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */ /* @@ -36,7 +36,6 @@ #include #include #include -#include #include #include diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index 04902f6f19a..1e0aa5bae34 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.30 2006/08/17 10:34:14 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.31 2006/10/04 03:23:01 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3