diff options
author | 2015-07-23 16:35:34 +0000 | |
---|---|---|
committer | 2015-07-23 16:35:34 +0000 | |
commit | 70bb8c58a948ea007df2a4f93b04c241dc5b1dd1 (patch) | |
tree | b5b243fbd9f1040b117e5a8f3a09959bb2e7b29c | |
parent | remove -beta tag. take that as a hint. (diff) | |
download | wireguard-openbsd-70bb8c58a948ea007df2a4f93b04c241dc5b1dd1.tar.xz wireguard-openbsd-70bb8c58a948ea007df2a4f93b04c241dc5b1dd1.zip |
Missed file in *_data_offset -> *_data_blkno switch.
Found the hardway by benoit@.
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/softraid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/softraid.c b/sys/arch/sparc64/stand/ofwboot/softraid.c index 296c1016dc9..1dadfdba2a6 100644 --- a/sys/arch/sparc64/stand/ofwboot/softraid.c +++ b/sys/arch/sparc64/stand/ofwboot/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.2 2015/07/19 16:12:10 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.3 2015/07/23 16:35:34 krw Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> @@ -222,7 +222,7 @@ srprobe(void) bv->sbv_chunk_no = md->ssdi.ssd_chunk_no; bv->sbv_flags = md->ssdi.ssd_vol_flags; bv->sbv_size = md->ssdi.ssd_size; - bv->sbv_data_offset = md->ssd_data_offset; + bv->sbv_data_blkno = md->ssd_data_blkno; bcopy(&md->ssdi.ssd_uuid, &bv->sbv_uuid, sizeof(md->ssdi.ssd_uuid)); SLIST_INIT(&bv->sbv_chunks); @@ -358,7 +358,7 @@ sr_strategy(struct sr_boot_volume *bv, int rw, daddr32_t blk, size_t size, dip = (struct diskinfo *)bc->sbc_diskinfo; pp = &dip->disklabel.d_partitions[bc->sbc_part - 'a']; - blk += bv->sbv_data_offset; + blk += bv->sbv_data_blkno; /* XXX - If I/O failed we should try another chunk... */ ihandle = OF_open(dip->path); @@ -403,7 +403,7 @@ sr_strategy(struct sr_boot_volume *bv, int rw, daddr32_t blk, size_t size, bp = ((u_char *)buf) + i * DEV_BSIZE; err = strategy(&ofdev, rw, - bv->sbv_data_offset + blkno, + bv->sbv_data_blkno + blkno, DEV_BSIZE, bp, rsize); if (err != 0 || *rsize != DEV_BSIZE) { printf("Read from crypto volume failed " |