diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2008-01-24 17:50:18 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2008-01-24 17:50:18 +0000 |
commit | 09bf642dedeb502a88e5e3dc119257a18a1167c6 (patch) | |
tree | ee35d14117384b9215a6bc82b4993a1d6b633bfd /sys/dev/softraid_raid1.c | |
parent | fa0d145b74edd2ec5341babcd7eab0f0424e4808 (diff) |
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 { |