From 0f1cbe943037f73ce114ac264f784730412b22b2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 10 Dec 2015 11:45:31 +0100 Subject: [PATCH] libmount: add comment, remove TODO item Signed-off-by: Karel Zak --- Documentation/TODO | 4 ---- libmount/src/context_umount.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/TODO b/Documentation/TODO index 6b4ee30207..22fa0e06f7 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -1,10 +1,6 @@ Note that items with (!) have high priority. -canonicalize ------------- - - reimplement realpath(3) (for lib/canonicalize()) to use fstatat(AT_NO_AUTOMOUNT) - lsblk ----- - currently it does not show mountpoint for all devices in btrfs RAID. It's because diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index b67f48b918..873dd06bf6 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) { -- 2.47.2