libfstools: gather mountpoints from /proc/self/mountinfo
authorDaniel Golle <daniel@makrotopia.org>
Sun, 11 Sep 2016 14:52:52 +0000 (16:52 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Sep 2016 00:50:52 +0000 (02:50 +0200)
commit7874d580ff965bebbe19ea157353749d9f007b39
tree46e49ab2228055b9c98ffb29c36c1b0461e1ef86
parentfe514c9a20365ba00232c2c981463f43a4a41a7d
libfstools: gather mountpoints from /proc/self/mountinfo

This allows identifying /dev/root by its major:minor number which
are part of /proc/self/mountinfo but aren't contained in /proc/mounts.
Also fix jffs2reset when using an ext4 overlay by adding it to the
list of filesystems allowed if the root_only parameter of
find_mount_point is set.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/find.c