summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_umount.c
diff options
context:
space:
mode:
authorKarel Zak2015-12-10 11:45:31 +0100
committerKarel Zak2015-12-10 11:45:31 +0100
commit0f1cbe943037f73ce114ac264f784730412b22b2 (patch)
tree795988ba32211d743a31e6a61f5d0178dd91742d /libmount/src/context_umount.c
parentMerge branch 'test-fixes' of https://github.com/rudimeier/util-linux (diff)
downloadkernel-qcow2-util-linux-0f1cbe943037f73ce114ac264f784730412b22b2.tar.gz
kernel-qcow2-util-linux-0f1cbe943037f73ce114ac264f784730412b22b2.tar.xz
kernel-qcow2-util-linux-0f1cbe943037f73ce114ac264f784730412b22b2.zip
libmount: add comment, remove TODO item
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r--libmount/src/context_umount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index b67f48b91..873dd06bf 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -162,6 +162,10 @@ err:
/* Check if there is something important in the utab file. The parsed utab is
* stored in context->utab and deallocated by mnt_free_context().
+ *
+ * This function exists to avoid (if possible) /proc/self/mountinfo usage, so
+ * don't use thigs like mnt_resolve_target(), mnt_context_get_mtab() etc here.
+ * See lookup_umount_fs() for more details.
*/
static int has_utab_entry(struct libmnt_context *cxt, const char *target)
{