Messages in this thread Patch in this message |  | | From | Bartlomiej Zolnierkiewicz <> | | Date | Sun, 31 May 2009 16:39:18 +0200 | | Subject | [PATCH 1/4] partitions: warn about the partition exceeding device capacity |
| |
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> 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 <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> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> --- fs/partitions/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Index: b/fs/partitions/check.c =================================================================== --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -574,7 +574,8 @@ int rescan_partitions(struct gendisk *di * 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; }
|  |