From: Karel Zak Date: Thu, 10 Dec 2015 10:45:31 +0000 (+0100) Subject: libmount: add comment, remove TODO item X-Git-Tag: v2.28-rc1~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f1cbe943037f73ce114ac264f784730412b22b2;p=thirdparty%2Futil-linux.git libmount: add comment, remove TODO item Signed-off-by: Karel Zak --- 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) {