linux/fs/partitions
Tejun Heo 3e1a7ff8a0 block: allow disk to have extended device number
Now that disk and partition handlings are mostly unified, it's easy to
allow disk to have extended device number.  This patch makes
add_disk() use extended device number if disk->minors is zero.  Both
sd and ide-disk are updated to use this.

* sd_format_disk_name() is implemented which can generically determine
  the drive name.  This removes disk number restriction stemming from
  limited device names.

* If sd index goes over SD_MAX_DISKS (which can be increased now BTW),
  sd simply doesn't initialize minors letting block layer choose
  extended device number.

* If CONFIG_DEBUG_EXT_DEVT is set, both sd and ide-disk always set
  minors to 0 and use extended device numbers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:08 +02:00
..
2007-07-16 09:05:42 -07:00
2005-04-16 15:20:36 -07:00
2006-12-07 08:39:30 -08:00
2005-04-16 15:20:36 -07:00
2006-12-07 08:39:30 -08:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:44 -07:00
2007-07-10 11:24:44 +02:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:26 -07:00
2008-07-25 10:53:26 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-10 23:50:00 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00