Allow repartition(8) subpartitions above 4G

Change-Id: I058ab3b58b2e7822b59365b1ce222c5588f442cd
This commit is contained in:
Antoine Leca 2016-08-05 20:03:38 +02:00 committed by David van Moolenbroek
parent 3c71801e8e
commit 6ddb33542a

View File

@ -262,8 +262,8 @@ int main(int argc, char **argv)
pe->size= part_limit - pe->lowsec;
}
entry.base= pe->lowsec * SECTOR_SIZE;
entry.size= pe->size * SECTOR_SIZE;
entry.base= (off_t)pe->lowsec * SECTOR_SIZE;
entry.size= (off_t)pe->size * SECTOR_SIZE;
if (diocntl(makedev(hd_major, device), DSETP, &entry) < 0)
fatal(dev_file);