block: also check /proc/self/mountinfo to find mountpoint
authorDaniel Golle <daniel@makrotopia.org>
Thu, 21 Jul 2016 01:55:48 +0000 (03:55 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 21 Jul 2016 02:11:41 +0000 (04:11 +0200)
commitbef7987f4b4ccc343f619172e28bcaaa12a19403
tree0cd6bcd37752010fa140300f1012c5b00157d0d8
parentb5f6b8266465d8401a9699d5245c1058424f733c
block: also check /proc/self/mountinfo to find mountpoint

Matching only the device name doesn't always work, e.g. in case of
/dev/root. Thus also check the device(minor,major) which can be scraped
from /proc/self/mountinfo.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c