]> Zhao Yanbai Git Server - minix.git/commitdiff
Allow repartition(8) subpartitions above 4G 54/3354/1
authorAntoine Leca <Antoine.Leca.1@gmail.com>
Fri, 5 Aug 2016 18:03:38 +0000 (20:03 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Sat, 6 Aug 2016 08:52:38 +0000 (10:52 +0200)
Change-Id: I058ab3b58b2e7822b59365b1ce222c5588f442cd

minix/commands/repartition/repartition.c

index ace391b60e29458e8bd563a993ac43674fcc686c..bd7e82af4e0dbe1b19ca93976a20f0cef89daa56 100644 (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);