block: genhd: Add disk/partition specific uevent callbacks for partition info
authorSan Mehat <san@google.com>
Sat, 10 Oct 2009 16:35:24 +0000 (09:35 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 25 Nov 2015 12:04:41 +0000 (20:04 +0800)
commit4258bc23b8760f975b6b755a0862dfb0047ad55b
tree87e0f288773c85a5bb5712b3ccc69b712fcf62c6
parent361ddf2d69082a2f43fa58e14a407833bc62827d
block: genhd: Add disk/partition specific uevent callbacks for partition info

For disk devices, a new uevent parameter 'NPARTS' specifies the number
of partitions detected by the kernel. Partition devices get 'PARTN' which
specifies the partitions index in the table, and 'PARTNAME', which
specifies PARTNAME specifices the partition name of a partition device

Signed-off-by: Dima Zavin <dima@android.com>
(cherry picked from commit 9b9ae694cce47e568fd8f7619c70f1fc91e5b81d)

Change-Id: I5cb7496c9dcd7659116f1b4d5577ac85be102fb5
block/genhd.c
block/partition-generic.c