summaryrefslogtreecommitdiff
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1996-01-16 18:11:24 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1996-01-16 18:11:24 +0000
commitab29fc22655e07975bbc129f164a09bbd2e134be (patch)
tree90f33e9c4eb998491e63f4ecb5a179a69f8ce4a2 /sys/kern/subr_diskslice.c
parent505ae68ea8f21a0b3833be28753df6fb679fbee3 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index 871d972fbfa9..8dcbbf459dec 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: subr_diskslice.c,v 1.15 1995/09/16 17:03:49 bde Exp $
+ * $Id: subr_diskslice.c,v 1.16 1996/01/07 22:39:06 phk Exp $
*/
#include <sys/param.h>
@@ -61,9 +61,6 @@
#define b_cylinder b_resid
-#define FALSE 0
-#define TRUE 1
-
#define TRACE(str) do { if (ds_debug) printf str; } while (0)
typedef u_char bool_t;
@@ -107,8 +104,10 @@ dscheck(bp, ssp)
struct diskslice *sp;
long sz;
- if (bp->b_blkno < 0)
+ if (bp->b_blkno < 0) {
+ Debugger("Slice code got negative blocknumber");
goto bad;
+ }
sp = &ssp->dss_slices[dkslice(bp->b_dev)];
lp = sp->ds_label;