Skip to content

Commit

Permalink
partitions: warn about the partition exceeding device capacity
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 7, 2009
1 parent 669165d commit 02c33b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 02c33b1

Please sign in to comment.