diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-05-26 12:17:36 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-05-26 12:17:36 +0000 |
commit | f11125202098e763efa8b52b0e92bfac7a124175 (patch) | |
tree | d922cf98f53e128581516598d23bb1d773ae6fb9 /sys/dev | |
parent | dd1019fe6097646764d06cab8fcd7aa9aed4abbf (diff) |
the addr field in read cap 16 is 8 bytes, not 4. pity, i had really big
disks for a few minutes there.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/atascsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index f0ca3666503..ea122834b05 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.84 2010/05/05 11:33:26 dlg Exp $ */ +/* $OpenBSD: atascsi.c,v 1.85 2010/05/26 12:17:35 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -884,7 +884,7 @@ atascsi_disk_capacity16(struct scsi_xfer *xs) bzero(&rcd, sizeof(rcd)); - _lto4b(ata_identify_blocks(&ap->ap_identify), rcd.addr); + _lto8b(ata_identify_blocks(&ap->ap_identify), rcd.addr); _lto4b(ata_identify_blocksize(&ap->ap_identify), rcd.length); rcd.logical_per_phys = ata_identify_block_l2p_exp(&ap->ap_identify); align = ata_identify_block_logical_align(&ap->ap_identify); |