]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
block: adjust formatting for large minors and add ext_range sysfs attr
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:47:23 +0000 (19:47 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:06 +0000 (08:56 +0200)
commit1f0142905d4812966831613847db38a66da29eb8
tree0db3c802fccfa7b2b8b74bfd0078258e8fb8e22d
parentbcce3de1be61e424deef35d1e86e86a35c4b6e65
block: adjust formatting for large minors and add ext_range sysfs attr

With extended minors and the soon-to-follow debug feature, large minor
numbers for block devices will be common.  This patch does the
followings to make printouts pretty.

* Adapt print formats such that large minors don't break the
  formatting.

* For extended MAJ:MIN, %02x%02x for MAJ:MIN used in
  printk_all_partitions() doesn't cut it anymore.  Update it such that
  %03x:%05x is used if either MAJ or MIN doesn't fit in %02x.

* Implement ext_range sysfs attribute which shows total minors the
  device can use including both conventional minor space and the
  extended one.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c
include/linux/fs.h