Re: Partition check considered as error is breaking mounting in 2.6.27

From: Bodo Eggert
Date: Sat Sep 13 2008 - 05:16:20 EST


Herton Ronaldo Krzesinski <herton@xxxxxxxxxxxxxxx> wrote:

> +++ b/fs/partitions/check.c
> @@ -499,9 +499,9 @@ int rescan_partitions(struct gendisk *disk, struct
> block_device *bdev)
> if (!size)
> continue;
> if (from + size > get_capacity(disk)) {
> - printk(KERN_ERR " %s: p%d exceeds device capacity\n",
> + printk(KERN_WARNING
> + " %s: p%d exceeds device capacity"
", trimmed\n",
> disk->disk_name, p);

Add "size = get_capacity(disk) - from" here?
(Possibly using a cached value for get_capacity(disk)?)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/