Messages in this thread | | | From | Herton Ronaldo Krzesinski <> | Subject | Re: Partition check considered as error is breaking mounting in 2.6.27 | Date | Sat, 13 Sep 2008 20:25:39 -0300 |
| |
On Saturday 13 September 2008 06:24:27 Bodo Eggert wrote: > Herton Ronaldo Krzesinski <herton@mandriva.com.br> 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)?)
Trim was already proposed here before (not accepted): http://lkml.org/lkml/2006/10/12/364
-- []'s Herton
| |