Remove local TRUE & FALSE definitions.
Fall into debugger on negative blk#.
This commit is contained in:
parent
505ae68ea8
commit
ab29fc2265
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user