fs: partitions:
authorlintao <lintao@rock-chips.com>
Tue, 27 May 2014 08:32:17 +0000 (16:32 +0800)
committerlintao <lintao@rock-chips.com>
Tue, 27 May 2014 08:32:17 +0000 (16:32 +0800)
        Fix new partitions size limit bug. Make no sense compare sector_t size
    to PAGE_SIZE, and that will fail partition add when too small part definition in
    parameter. Now, NO LIMIT for partition size.

block/partitions/mtdpart.c

index ac2cf4d8efb5b9bca8b2e024c86f4cff0a8e5117..6f3e0044bfdbd7f3b543315e4693158680aa95a5 100755 (executable)
@@ -73,7 +73,7 @@ static struct mtd_partition * newpart(char *s,
        else
        {
                size = memparse(s, &s);
-               if (size < PAGE_SIZE)
+               if (size < (PAGE_SIZE)>>9)
                {
                        printk(KERN_ERR ERRP "partition size too small (%llx)\n", size);
                        return NULL;