ps3disk: Provide a gendisk per accessible region
commit8913f52db2a4b831b55e81b51a2b6340b7bd0870
authorAndre Heider <a.heider@gmail.com>
Sat, 30 Jul 2011 12:11:26 +0000 (30 14:11 +0200)
committerdhewg <dhewg@wiibrew.org>
Sun, 3 Jun 2012 09:24:29 +0000 (3 11:24 +0200)
treec07945d72b60f95e92d41c3fe024355a3b516a2e
parent5e3a1ff58c8f430d0b6253d70818f086aec3e0a0
ps3disk: Provide a gendisk per accessible region

This changes the behavior to name the block devices for lpars
other than OtherOS. Instead of a single disk with an alphanumeric
suffix (/dev/ps3da), disks are now numeric, while each
accessible region gets its own alphanumeric suffix:

/dev/ps3d1a
/dev/ps3d1b

The old behavior for OtherOS is kept:
- only one region will be exposed as block device
- the block device name stays the same

Signed-off-by: Andre Heider <a.heider@gmail.com>
drivers/block/ps3disk.c