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_raid1.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_raid1.c')
| -rw-r--r-- | sys/dev/softraid_raid1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c index 94dd8be3823..6e20c959802 100644 --- a/sys/dev/softraid_raid1.c +++ b/sys/dev/softraid_raid1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid1.c,v 1.1 2007/11/27 17:21:52 tedu Exp $ */ +/* $OpenBSD: softraid_raid1.c,v 1.2 2008/01/24 17:50:17 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -114,6 +114,8 @@ sr_raid1_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 { |
