diff options
| author | oster <oster@NetBSD.org> | 2006-09-05 01:55:21 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2006-09-05 01:55:21 +0000 |
| commit | f23a530674f898f56de1f8fd5604b5f213c457ae (patch) | |
| tree | ac2826e92243dc91ef70b366aea569848df807d2 /sys/dev/raidframe/raidframevar.h | |
| parent | f30a520560ab14318d7965c88a4cb9d466236e1e (diff) | |
Per a suggestion from Manuel, make numBlocks and partitionSize
unsigned for now. This prevents rf_reasonable_label() from rejecting
a valid label when these fields have an integer overflow. The reality
is that these need to be 64-bit quantities, but that will come later.
Diffstat (limited to 'sys/dev/raidframe/raidframevar.h')
| -rw-r--r-- | sys/dev/raidframe/raidframevar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/raidframevar.h b/sys/dev/raidframe/raidframevar.h index 380e2325769..153cc6c0cf2 100644 --- a/sys/dev/raidframe/raidframevar.h +++ b/sys/dev/raidframe/raidframevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: raidframevar.h,v 1.9 2005/12/11 12:23:37 christos Exp $ */ +/* $NetBSD: raidframevar.h,v 1.10 2006/09/05 01:55:21 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -448,9 +448,9 @@ typedef struct RF_ComponentLabel_s { int maxOutstanding; /* maxOutstanding disk requests */ int blockSize; /* size of component block. (disklabel->d_secsize) */ - int numBlocks; /* number of blocks on this component. May + u_int numBlocks; /* number of blocks on this component. May be smaller than the partition size. */ - int partitionSize; /* number of blocks on this *partition*. + u_int partitionSize; /* number of blocks on this *partition*. Must exactly match the partition size from the disklabel. */ int future_use[33]; /* Future expansion */ |
