Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Steve Woodford <scw@netbsd.org>
List: source-changes
Date: 11/25/2006 11:59:58
Module Name:	src
Committed By:	scw
Date:		Sat Nov 25 11:59:58 UTC 2006

Modified Files:
	src/sys/arch/algor/algor: disksubr.c
	src/sys/arch/alpha/alpha: disksubr.c
	src/sys/arch/amiga/amiga: disksubr.c
	src/sys/arch/arc/arc: disksubr.c
	src/sys/arch/arm/arm: disksubr.c
	src/sys/arch/atari/atari: disksubr.c
	src/sys/arch/bebox/bebox: disksubr.c
	src/sys/arch/cobalt/cobalt: disksubr.c
	src/sys/arch/evbmips/evbmips: disksubr.c
	src/sys/arch/evbppc/evbppc: disksubr.c
	src/sys/arch/ews4800mips/ews4800mips: disksubr.c
	src/sys/arch/hp300/hp300: disksubr.c
	src/sys/arch/hp700/hp700: disksubr.c
	src/sys/arch/hpc/hpc: disksubr.c
	src/sys/arch/luna68k/luna68k: disksubr.c
	src/sys/arch/mac68k/mac68k: disksubr.c
	src/sys/arch/macppc/macppc: disksubr.c
	src/sys/arch/mipsco/mipsco: disksubr.c
	src/sys/arch/mvme68k/mvme68k: disksubr.c
	src/sys/arch/mvmeppc/mvmeppc: disksubr.c
	src/sys/arch/news68k/news68k: disksubr.c
	src/sys/arch/newsmips/newsmips: disksubr.c
	src/sys/arch/next68k/next68k: disksubr.c
	src/sys/arch/ofppc/ofppc: disksubr.c
	src/sys/arch/pc532/pc532: disksubr.c
	src/sys/arch/pdp10/pdp10: disksubr.c
	src/sys/arch/playstation2/playstation2: disksubr.c
	src/sys/arch/pmax/pmax: disksubr.c
	src/sys/arch/pmppc/pmppc: disksubr.c
	src/sys/arch/sandpoint/sandpoint: disksubr.c
	src/sys/arch/sbmips/sbmips: disksubr.c
	src/sys/arch/sgimips/sgimips: disksubr.c
	src/sys/arch/sh3/sh3: disksubr.c
	src/sys/arch/vax/vax: disksubr.c
	src/sys/arch/x68k/x68k: disksubr.c
	src/sys/dev/sun: disksubr.c
	src/sys/kern: subr_disk.c subr_disk_mbr.c
	src/sys/sys: disk.h

Log Message:
Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/sys/arch/algor/algor/disksubr.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/alpha/alpha/disksubr.c
cvs rdiff -r1.48 -r1.49 src/sys/arch/amiga/amiga/disksubr.c
cvs rdiff -r1.22 -r1.23 src/sys/arch/arc/arc/disksubr.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/arm/arm/disksubr.c
cvs rdiff -r1.31 -r1.32 src/sys/arch/atari/atari/disksubr.c
cvs rdiff -r1.18 -r1.19 src/sys/arch/bebox/bebox/disksubr.c
cvs rdiff -r1.17 -r1.18 src/sys/arch/cobalt/cobalt/disksubr.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/evbmips/evbmips/disksubr.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/evbppc/evbppc/disksubr.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/ews4800mips/ews4800mips/disksubr.c
cvs rdiff -r1.23 -r1.24 src/sys/arch/hp300/hp300/disksubr.c
cvs rdiff -r1.19 -r1.20 src/sys/arch/hp700/hp700/disksubr.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/hpc/hpc/disksubr.c
cvs rdiff -r1.19 -r1.20 src/sys/arch/luna68k/luna68k/disksubr.c
cvs rdiff -r1.52 -r1.53 src/sys/arch/mac68k/mac68k/disksubr.c
cvs rdiff -r1.37 -r1.38 src/sys/arch/macppc/macppc/disksubr.c
cvs rdiff -r1.17 -r1.18 src/sys/arch/mipsco/mipsco/disksubr.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/mvme68k/mvme68k/disksubr.c
cvs rdiff -r1.11 -r1.12 src/sys/arch/mvmeppc/mvmeppc/disksubr.c
cvs rdiff -r1.26 -r1.27 src/sys/arch/news68k/news68k/disksubr.c
cvs rdiff -r1.23 -r1.24 src/sys/arch/newsmips/newsmips/disksubr.c
cvs rdiff -r1.19 -r1.20 src/sys/arch/next68k/next68k/disksubr.c
cvs rdiff -r1.17 -r1.18 src/sys/arch/ofppc/ofppc/disksubr.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/pc532/pc532/disksubr.c
cvs rdiff -r1.2 -r1.3 src/sys/arch/pdp10/pdp10/disksubr.c
cvs rdiff -r1.11 -r1.12 src/sys/arch/playstation2/playstation2/disksubr.c
cvs rdiff -r1.43 -r1.44 src/sys/arch/pmax/pmax/disksubr.c
cvs rdiff -r1.10 -r1.11 src/sys/arch/pmppc/pmppc/disksubr.c
cvs rdiff -r1.11 -r1.12 src/sys/arch/sandpoint/sandpoint/disksubr.c
cvs rdiff -r1.11 -r1.12 src/sys/arch/sbmips/sbmips/disksubr.c
cvs rdiff -r1.17 -r1.18 src/sys/arch/sgimips/sgimips/disksubr.c
cvs rdiff -r1.21 -r1.22 src/sys/arch/sh3/sh3/disksubr.c
cvs rdiff -r1.39 -r1.40 src/sys/arch/vax/vax/disksubr.c
cvs rdiff -r1.26 -r1.27 src/sys/arch/x68k/x68k/disksubr.c
cvs rdiff -r1.7 -r1.8 src/sys/dev/sun/disksubr.c
cvs rdiff -r1.82 -r1.83 src/sys/kern/subr_disk.c
cvs rdiff -r1.21 -r1.22 src/sys/kern/subr_disk_mbr.c
cvs rdiff -r1.41 -r1.42 src/sys/sys/disk.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.