From 6ddb33542af04356a66b658478494d3179562f63 Mon Sep 17 00:00:00 2001 From: Antoine Leca Date: Fri, 5 Aug 2016 20:03:38 +0200 Subject: [PATCH] Allow repartition(8) subpartitions above 4G Change-Id: I058ab3b58b2e7822b59365b1ce222c5588f442cd --- minix/commands/repartition/repartition.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minix/commands/repartition/repartition.c b/minix/commands/repartition/repartition.c index ace391b60..bd7e82af4 100644 --- a/minix/commands/repartition/repartition.c +++ b/minix/commands/repartition/repartition.c @@ -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); -- 2.44.0