partitions: warn about the partition exceeding device capacity

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 10:59 am

Gitweb:     http://git.kernel.org/linus/02c33b123e59cab5771e52a012aeb810500260a2
Commit:     02c33b123e59cab5771e52a012aeb810500260a2
Parent:     669165daad2ec839df85b8c5f7bc155e76a2f404
Author:     Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
AuthorDate: Sun Jun 7 13:52:51 2009 +0200
Committer:  Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
CommitDate: Sun Jun 7 13:52:51 2009 +0200

    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>
---
 fs/partitions/check.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 99e33ef..137a708 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;
 		}
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
partitions: warn about the partition exceeding device capacity, Linux Kernel Mailing ..., (Fri Jun 12, 10:59 am)