Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c33b12 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarRobert 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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 669165da
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}