]> git.hungrycats.org Git - linux/commit
[PATCH] Make naming of parititions in sysfs match /proc/partitions.
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:42:42 +0000 (18:42 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:42:42 +0000 (18:42 -0800)
commit2ae2199ff3e982afe1d24c3c78a09af20ec20e43
tree49ef26d94d598d68d5f7305307cabc40bcd3a75b
parent057ee9099a0f67d0dabda77fe22d42dd5be0fc6f
[PATCH] Make naming of parititions in sysfs match /proc/partitions.

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.
fs/partitions/check.c