Fix failure creating read-only view of rescued file systems (#680740)
The mount of lost file systems that were larger than a 32 bit integer could hold (~2 GiB), or started after the first ~2 GiB of disk, would fail. Closes Bug #680740 - Gparted fails when mounting the read-only view of lost filesystems
This commit is contained in:
parent
eb74ed69b8
commit
14374c19f3
|
@ -153,9 +153,9 @@ void Dialog_Rescue_Data::on_view_clicked(int nPart)
|
|||
{
|
||||
Partition part=this->partitions[nPart];
|
||||
|
||||
int initOffset=this->sector_size*part.sector_start;
|
||||
int numSectors=part.sector_end-part.sector_start+1;
|
||||
int totalSize=this->sector_size*numSectors;
|
||||
Byte_Value initOffset=this->sector_size*part.sector_start;
|
||||
Sector numSectors=part.sector_end-part.sector_start+1;
|
||||
Byte_Value totalSize=this->sector_size*numSectors;
|
||||
|
||||
this->check_overlaps(nPart);
|
||||
|
||||
|
|
Loading…
Reference in New Issue