From: Bartlomiej Zolnierkiewicz Date: Sun, 7 Jun 2009 11:52:51 +0000 (+0200) Subject: partitions: warn about the partition exceeding device capacity X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=02c33b123e59cab5771e52a012aeb810500260a2;p=linux-beck.git partitions: warn about the partition exceeding device capacity The current warning message says only about the kernel's action taken without mentioning the underlying reason behind it. Noticed-by: Robert Hancock Cc: Frans Pop Cc: "Andries E. Brouwer" Cc: Al Viro Emphatically-Acked-by: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 99e33ef40be4..137a708bb215 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -564,7 +564,8 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) * creating invalid block devices */ printk(KERN_WARNING - "%s: p%d size %llu limited to end of disk\n", + "%s: p%d size %llu exceeds device capacity, " + "limited to end of disk\n", disk->disk_name, p, (unsigned long long) size); size = get_capacity(disk) - from; }