From 02c33b123e59cab5771e52a012aeb810500260a2 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Sun, 7 Jun 2009 13:52:51 +0200 Subject: [PATCH] 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 --- fs/partitions/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }