diff options
author | grog <grog@FreeBSD.org> | 2003-05-01 01:34:05 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2003-05-01 01:34:05 +0000 |
commit | f5210909e57df68f73c9e73a32ee77e37565a609 (patch) | |
tree | 4574f2ab4ef090ff556bbf8db12cbf7cd9d23e79 /sys/dev/vinum | |
parent | 30844b0b173a4e1e7cda834a7fd0b491f33f6f11 (diff) | |
download | FreeBSD-src-f5210909e57df68f73c9e73a32ee77e37565a609.zip FreeBSD-src-f5210909e57df68f73c9e73a32ee77e37565a609.tar.gz |
Rewrite minor number decoding. Now we have only three types of
object: subdisks, plexes and volumes. The encoding for plexes and
subdisks no longer reflects the object to which they belong. The
super devices are high-order volume numbers. This gives vastly more
potential volumes (4 million instead of 256).
Correct formats for some error messages. Don't cast the value to
match the format.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumrevive.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c index 8e6410e..d3e6c2c 100644 --- a/sys/dev/vinum/vinumrevive.c +++ b/sys/dev/vinum/vinumrevive.c @@ -37,7 +37,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumrevive.c,v 1.15 2001/05/23 23:04:48 grog Exp grog $ + * $Id: vinumrevive.c,v 1.18 2003/04/28 02:54:43 grog Exp $ * $FreeBSD$ */ @@ -131,7 +131,7 @@ revive_block(int sdno) break; case plex_disorg: /* to keep the compiler happy */ - break; + break; /* to keep the pedants happy */ } if (paritysd) { /* we're reviving a parity block, */ @@ -159,7 +159,7 @@ revive_block(int sdno) * First, read the data from the volume. We * don't care which plex, that's bre's job. */ - bp->b_dev = VINUMDEV(plex->volno, 0, 0, VINUM_VOLUME_TYPE); /* create the device number */ + bp->b_dev = VINUM_VOL(plex->volno); /* create the device number */ else /* it's an unattached plex */ bp->b_dev = VINUM_PLEX(sd->plexno); /* create the device number */ @@ -210,7 +210,7 @@ revive_block(int sdno) rq->bp->b_iocmd == BIO_READ ? "Read" : "Write", major(rq->bp->b_dev), minor(rq->bp->b_dev), - (long long)rq->bp->b_blkno, + rq->bp->b_blkno, rq->bp->b_bcount); #endif launch_requests(sd->waitlist, 1); /* do them now */ @@ -307,7 +307,7 @@ parityops(struct vinum_ioctl_msg *data) reply->error = EIO; sprintf(reply->msg, "Parity incorrect at offset 0x%llx\n", - (long long)errorloc); + errorloc); } if (reply->error == EAGAIN) { /* still OK, */ plex->checkblock = pstripe + (pbp->b_bcount >> DEV_BSHIFT); /* moved this much further down */ |