From: Ben Gras Date: Thu, 19 Apr 2007 14:08:41 +0000 (+0000) Subject: Don't limit partitions to 4GB. X-Git-Tag: v3.1.4~440 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/man.7.ps?a=commitdiff_plain;h=3b614085c62750fca8503c16952d12eef558e843;p=minix.git Don't limit partitions to 4GB. --- diff --git a/commands/ibm/autopart.c b/commands/ibm/autopart.c index 70c384d56..dca991a5d 100755 --- a/commands/ibm/autopart.c +++ b/commands/ibm/autopart.c @@ -63,9 +63,6 @@ int min_region_mb = 500; #define MIN_REGION_SECTORS (1024*1024*min_region_mb/SECTOR_SIZE) -#define MAX_REGION_MB 4095 -#define MAX_REGION_SECTORS (1024*(1024/SECTOR_SIZE)*MAX_REGION_MB) - #define arraysize(a) (sizeof(a) / sizeof((a)[0])) #define arraylimit(a) ((a) + arraysize(a)) @@ -339,7 +336,7 @@ void newdevice(char *name, int scanning, int disk_only) if (curdev->rdev != DEV_C0D0) curdev= firstdev; } -void getdevices() +void getdevices(void) /* Get all block devices from /dev that look interesting. */ { DIR *d; @@ -2154,18 +2151,8 @@ scribble_region(region_t *reg, struct part_entry **pe, int *made_new) { int ex, changed = 0, i; struct part_entry *newpart; - if(reg->is_used_part && reg->used_part.size > MAX_REGION_SECTORS) { - reg->used_part.size = MAX_REGION_SECTORS; - changed = 1; - cylinderalign(reg); - } if(!reg->is_used_part) { ex = reg->free_sec_last - reg->free_sec_start + 1; - if(ex > MAX_REGION_SECTORS) { - reg->free_sec_last -= ex - MAX_REGION_SECTORS; - changed = 1; - cylinderalign(reg); - } if(made_new) *made_new = 1; } else if(made_new) *made_new = 0; if(!reg->is_used_part) {