Changes between Initial Version and Version 1 of Ticket #8990, comment 8
- Timestamp:
- Jan 26, 2015, 10:56:42 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8990, comment 8
initial v1 1 1 1.Using {{{partition->Size() / partition->BlockSize() < UINT32_MAX}}} causes the condition to fail. 2 For instance, If BlockSize = 2048 ={{{2^11}}}.Then partition->Size() < {{{2^32}}}*{{{2^11}}} or {{{2^4 2}}} which is 8TB.2 For instance, If BlockSize = 2048 ={{{2^11}}}.Then partition->Size() < {{{2^32}}}*{{{2^11}}} or {{{2^43}}} which is 8TB. 3 3 Thus clearly the condition fails.Also there can be overflow error using the previous condition. 4 4 2.Yeah I assumed the sector size to be 512 which is wrong in some cases. So I think the max limit is {{{UINT32_MAX * SECTOR_SIZE}}}, so how do I get the SectorSize directly?