get_part_info: refactor to not need disk device name
commit216ef2ac473c4f828073eb1771a8d66f317a0883
authorJan Krüger <jk@jk.gs>
Sun, 2 Sep 2012 18:56:06 +0000 (2 20:56 +0200)
committerJan Krüger <jk@jk.gs>
Sun, 2 Sep 2012 18:59:41 +0000 (2 20:59 +0200)
tree464b14197d18d7e0574bfa66455ac0f0f18344f2
parentf14d50662af56357079c81e6a755ada756718d74
get_part_info: refactor to not need disk device name

I don't know whether this was already possible back when I wrote the
code, but apparently we have info for all partitions in
/sys/class/block. So use that and save a bunch of parameters.

Thanks-to: der hede <http://der-he.de/>
main.c