--- truecrypt/boot/windows/bootdiskio.h 2018/04/24 17:01:44 1.1.1.5 +++ truecrypt/boot/windows/bootdiskio.h 2018/04/24 17:12:22 1.1.1.10 @@ -1,9 +1,9 @@ /* - Copyright (c) 2008-2009 TrueCrypt Foundation. All rights reserved. + Copyright (c) 2008-2011 TrueCrypt Developers Association. All rights reserved. - Governed by the TrueCrypt License 2.6 the full text of which is contained - in the file License.txt included in TrueCrypt binary and source code - distribution packages. + Governed by the TrueCrypt License 3.0 the full text of which is contained in + the file License.txt included in TrueCrypt binary and source code distribution + packages. */ #ifndef TC_HEADER_Boot_BootDiskIo @@ -13,6 +13,8 @@ #include "BootDebug.h" #include "BootDefs.h" +#define TC_MAX_BIOS_DISK_IO_RETRIES 5 + enum { BiosResultEccCorrected = 0x11 @@ -93,7 +95,7 @@ void ReleaseSectorBuffer (); #endif void ChsToLba (const DriveGeometry &geometry, const ChsAddress &chs, uint64 &lba); -bool GetActiveAndFollowingPartition (byte drive); +bool GetActivePartition (byte drive); BiosResult GetDriveGeometry (byte drive, DriveGeometry &geometry, bool silent = false); BiosResult GetDrivePartitions (byte drive, Partition *partitionArray, size_t partitionArrayCapacity, size_t &partitionCount, bool activeOnly = false, Partition *findPartitionFollowingThis = nullptr, bool silent = false); bool IsLbaSupported (byte drive);