diff options
| author | mrg <mrg@NetBSD.org> | 2010-11-01 02:35:24 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2010-11-01 02:35:24 +0000 |
| commit | 4de66268a7e1af2f5dbcc5e4a6e090c93aacd374 (patch) | |
| tree | c5f905137aaaf9b6fcac460a5732bf15166c5fba /sys/dev/raidframe/raidframevar.h | |
| parent | 9a47829364528b9278c0cd586b8c30e3d6bece55 (diff) | |
add support for >2TB raid devices.
- add two new members to the component label:
u_int numBlocksHi
u_int partitionSizeHi
and store the top 32 bits of the real number of blocks and
partition size. modify rf_print_component_label(),
rf_does_it_fit(), rf_AutoConfigureDisks() and
rf_ReconstructFailedDiskBasic().
- call disk_blocksize() after disk_attach() [ from mlelstv ]
- shift the block number relative to DEV_BSHIFT in raidstart()
and InitBP() so that accesses work for non 512-byte devices.
[ from mlelstv ]
- update rf_getdisksize() to use the new getdisksize() [ from
mlelstv. this part needs a separate change for netbsd-5. ]
reviewed by: oster, christos and darrenr
Diffstat (limited to 'sys/dev/raidframe/raidframevar.h')
| -rw-r--r-- | sys/dev/raidframe/raidframevar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/raidframevar.h b/sys/dev/raidframe/raidframevar.h index e9986f0fa48..aea4a7bd373 100644 --- a/sys/dev/raidframe/raidframevar.h +++ b/sys/dev/raidframe/raidframevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: raidframevar.h,v 1.13 2009/11/17 18:54:26 jld Exp $ */ +/* $NetBSD: raidframevar.h,v 1.14 2010/11/01 02:35:24 mrg Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -471,7 +471,9 @@ typedef struct RF_ComponentLabel_s { done first, (and would become raid0). This may be in conflict with last_unit!!?! */ /* Not currently used. */ - int future_use2[44]; /* More future expansion */ + u_int numBlocksHi; /* The top 32-bits of the numBlocks member. */ + u_int partitionSizeHi;/* The top 32-bits of the partitionSize member. */ + int future_use2[42]; /* More future expansion */ } RF_ComponentLabel_t; typedef struct RF_SingleComponent_s { |
