-
Andrew Morton authored
From: Neil Brown <neilb@cse.unsw.edu.au> In fs/partitions/check.c there are two pieces of code that add a partition number to a block-device name: - the 'disk_name' function - a snprintf in add_partitions. 'disk_name' inserts a 'p' before the partition number if the device name ends with a digit. The snprintf in add_partitions doesn't. This patch rectifies this anomoly so that names in sysfs can be parsed more reliably. This has been extensively discussed. It will probably break the external `iostat' tool. But only for disks whose name ends in a digit, which appears to be only DAC960.
2ae2199f