aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-06-07 07:52:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-06-07 07:52:51 -0400
commit02c33b123e59cab5771e52a012aeb810500260a2 (patch)
treee9920f58c500a88820d2e1df29d464df21e650a1
parent669165daad2ec839df85b8c5f7bc155e76a2f404 (diff)
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 <hancockrwd@gmail.com> Cc: Frans Pop <elendil@planet.nl> Cc: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl> Cc: Al Viro <viro@zeniv.linux.org.uk> Emphatically-Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--fs/partitions/check.c3
1 files changed, 2 insertions, 1 deletions
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)
564 * creating invalid block devices 564 * creating invalid block devices
565 */ 565 */
566 printk(KERN_WARNING 566 printk(KERN_WARNING
567 "%s: p%d size %llu limited to end of disk\n", 567 "%s: p%d size %llu exceeds device capacity, "
568 "limited to end of disk\n",
568 disk->disk_name, p, (unsigned long long) size); 569 disk->disk_name, p, (unsigned long long) size);
569 size = get_capacity(disk) - from; 570 size = get_capacity(disk) - from;
570 } 571 }