diff options
author | 2007-06-05 00:38:12 +0000 | |
---|---|---|
committer | 2007-06-05 00:38:12 +0000 | |
commit | e16633b4e5ee7873f0d213b0c3f0e7d56c000d85 (patch) | |
tree | b13c42bb504d789800ed58b3769fc333ecd1e41b /sys/dev/raidframe/rf_reconstruct.c | |
parent | zap extra param (diff) | |
download | wireguard-openbsd-e16633b4e5ee7873f0d213b0c3f0e7d56c000d85.tar.xz wireguard-openbsd-e16633b4e5ee7873f0d213b0c3f0e7d56c000d85.zip |
use six new macros to access & store the 48-bit disklabel fields related
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
Diffstat (limited to 'sys/dev/raidframe/rf_reconstruct.c')
-rw-r--r-- | sys/dev/raidframe/rf_reconstruct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c index abe9a072f54..43896e524da 100644 --- a/sys/dev/raidframe/rf_reconstruct.c +++ b/sys/dev/raidframe/rf_reconstruct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_reconstruct.c,v 1.15 2003/10/26 15:07:26 jmc Exp $ */ +/* $OpenBSD: rf_reconstruct.c,v 1.16 2007/06/05 00:38:22 deraadt Exp $ */ /* $NetBSD: rf_reconstruct.c,v 1.26 2000/06/04 02:05:13 oster Exp $ */ /* @@ -623,7 +623,7 @@ rf_ReconstructInPlace(RF_Raid_t *raidPtr, RF_RowCol_t row, RF_RowCol_t col) dpart.disklab->d_secsize; raidPtr->Disks[row][col].numBlocks = - dpart.part->p_size - rf_protectedSectors; + DL_GETPSIZE(dpart.part) - rf_protectedSectors; raidPtr->raid_cinfo[row][col].ci_vp = vp; raidPtr->raid_cinfo[row][col].ci_dev = va.va_rdev; |