New API: part-to-partnum
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Oct 2011 11:46:05 +0000 (12:46 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 25 Oct 2011 11:46:05 +0000 (12:46 +0100)
commit47412f137f2b09dbc2b44b78ba84c0b348e3f402
tree5bfc088fc2d7099b9b32b8e4529b49f158f527fa
parent1e891d900714b84a84f9c9e79c6e033aa56c0fcc
New API: part-to-partnum

This converts a partition device name (eg. /dev/sda1) to a partition
number (eg. 1).  This is useful in conjunction with the parted APIs
that mostly take a disk device + partnum.
daemon/devsparts.c
generator/generator_actions.ml
src/MAX_PROC_NR