mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Relax the test for when to use LBA instead of CHS size.
This commit is contained in:
parent
512563b060
commit
3a6fb16ff1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114389
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user