diff options
author | 2008-01-24 17:50:17 +0000 | |
---|---|---|
committer | 2008-01-24 17:50:17 +0000 | |
commit | 2f108521ded34cbda6bcd2c9fcb43ccf3aad9462 (patch) | |
tree | c0be27a2b99817401fe0dd0ee0f17b88341a112a /sys/dev/softraid_raid0.c | |
parent | Finish the beep(4) driver by hooking it up to the ukbd(4) beep handler (diff) | |
download | wireguard-openbsd-2f108521ded34cbda6bcd2c9fcb43ccf3aad9462.tar.xz wireguard-openbsd-2f108521ded34cbda6bcd2c9fcb43ccf3aad9462.zip |
Bring softraid into the world of 16 byte commands; this allows for > 2TB disks
Fix bioctl size output which was off by *512; diagnosed by otto
Diffstat (limited to 'sys/dev/softraid_raid0.c')
-rw-r--r-- | sys/dev/softraid_raid0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c index 2719b1c708f..2e2f7dbe6f6 100644 --- a/sys/dev/softraid_raid0.c +++ b/sys/dev/softraid_raid0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid0.c,v 1.3 2008/01/24 14:01:06 marco Exp $ */ +/* $OpenBSD: softraid_raid0.c,v 1.4 2008/01/24 17:50:17 marco Exp $ */ /* * Copyright (c) 2008 Marco Peereboom <marco@peereboom.us> * @@ -123,6 +123,8 @@ sr_raid0_rw(struct sr_workunit *wu) if (xs->cmdlen == 10) blk = _4btol(((struct scsi_rw_big *)xs->cmd)->addr); + else if (xs->cmdlen == 16) + blk = _8btol(((struct scsi_rw_16 *)xs->cmd)->addr); else if (xs->cmdlen == 6) blk = _3btol(((struct scsi_rw *)xs->cmd)->addr); else { |