]> Zhao Yanbai Git Server - minix.git/commitdiff
Allow part(8) to make subpartitions above 4G 34/3334/1
authorAntoine Leca <Antoine.Leca.1@gmail.com>
Thu, 14 Jul 2016 12:09:14 +0000 (14:09 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 14 Jul 2016 10:34:41 +0000 (12:34 +0200)
Change-Id: I3fd2c5de7cbb190b857eb34f16463f67a30118a3

minix/commands/part/part.c

index b130b523729223a16fbaf07bb8961bfc05ac8a77..13e6173fe8ce671d22064da398193258aad454f0 100644 (file)
@@ -1578,7 +1578,7 @@ ssize_t boot_readwrite(int rw)
 {
        int r = 0;
 
-       if (lseek(device, offset * SECTOR_SIZE, SEEK_SET) < 0)
+       if (lseek(device, (off_t)offset * SECTOR_SIZE, SEEK_SET) < 0)
                return -1;
 
        switch (rw) {