Changes between Initial Version and Version 1 of Ticket #8990, comment 8


Ignore:
Timestamp:
Jan 26, 2015, 10:56:42 AM (10 years ago)
Author:
kushalsingh007

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8990, comment 8

    initial v1  
    111.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^42}}} which is 8TB.
     2  For instance, If BlockSize = 2048 ={{{2^11}}}.Then partition->Size() < {{{2^32}}}*{{{2^11}}} or {{{2^43}}} which is 8TB.
    33Thus clearly the condition fails.Also there can be overflow error using the previous    condition.
    442.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?