diff options
author | sos <sos@FreeBSD.org> | 2003-05-01 06:17:30 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2003-05-01 06:17:30 +0000 |
commit | 4cf0da39d0a5409f3df27e4bbc17e5f3b36f5d7b (patch) | |
tree | c8e5777f951c92af9667fa4ac91f23469a3ab2a8 /sys/dev/ata/ata-disk.c | |
parent | 6aafb4d5db6da50c01748ec31e3a24714ceceb9b (diff) | |
download | FreeBSD-src-4cf0da39d0a5409f3df27e4bbc17e5f3b36f5d7b.zip FreeBSD-src-4cf0da39d0a5409f3df27e4bbc17e5f3b36f5d7b.tar.gz |
Relax the test for when to use LBA instead of CHS size.
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r-- | sys/dev/ata/ata-disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index fc15ae2..1d622af 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -121,8 +121,8 @@ ad_attach(struct ata_device *atadev) !(atadev->param->atavalid & ATA_FLAG_54_58) || !lbasize) adp->flags |= AD_F_CHS_USED; - /* use the 28bit LBA size if valid */ - if (atadev->param->cylinders == 16383 && adp->total_secs < lbasize) + /* use the 28bit LBA size if valid or bigger than the CHS mapping */ + if (atadev->param->cylinders == 16383 || adp->total_secs < lbasize) adp->total_secs = lbasize; lbasize48 = ((u_int64_t)atadev->param->lba_size48_1) | |