]> Savannah Git Hosting - gnulib.git/commit
mountlist: add me_mntroot field on Linux machines
authorDave Chiluk <chiluk@canonical.com>
Mon, 31 Aug 2015 21:07:58 +0000 (16:07 -0500)
committerPádraig Brady <P@draigBrady.com>
Tue, 8 Sep 2015 21:46:53 +0000 (22:46 +0100)
commitc6148bca89e9465fd6ba3a10d273ec4cb58c2dbe
treef2168efaf80d8033cc289badc50d3cd3cc052ff5
parent8b7d8f7a32e0d99d1b3f9ee4668e9a1498b91429
mountlist: add me_mntroot field on Linux machines

* lib/mountlist.c (read_file_system_list): Populate me_mntroot in
mount_entry so Linux machines based on /proc/self/mountinfo can
distinguish between bind mounts and original mounts.  In reality bind
mounts aren't treated differently than mountroot=/ mounts by the
kernel, but the user often wants these bind mounts distinguished.
* lib/mountlist.h (struct mount_entry): Add me_mntroot element.
More details at https://pad.lv/1432871
ChangeLog
lib/mountlist.c
lib/mountlist.h