mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
Disable a check on a disk size because it's too strict. This change is
to avoid using incorrect geometry. It seems that this is the same problem in g_part_bsd_read()@g_part_bsd.c. Reviewed by: rink MFC after: 3 days
This commit is contained in:
parent
cb8461c836
commit
1764b93ab2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197374
@ -47,9 +47,11 @@ Sanitize_Bios_Geom(struct disk *disk)
|
||||
if (disk->bios_sect > 63)
|
||||
sane = 0;
|
||||
#endif
|
||||
#if 0 /* Disable a check on a disk size. It's too strict. */
|
||||
if (disk->bios_cyl * disk->bios_hd * disk->bios_sect !=
|
||||
disk->chunks->size)
|
||||
sane = 0;
|
||||
#endif
|
||||
if (sane)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user