From: Karel Zak Date: Mon, 1 Feb 2016 10:01:44 +0000 (+0100) Subject: libmount: add 'force-mountinfo' to features list, improve debug X-Git-Tag: v2.28-rc1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=314c3358d53b99338d32f30dde720bf173e61c1b;p=thirdparty%2Futil-linux.git libmount: add 'force-mountinfo' to features list, improve debug Signed-off-by: Karel Zak --- diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index 873dd06bf6..f3d473f5e5 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -992,7 +992,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt, tgt = mnt_fs_get_target(*fs); } while (!tgt); - DBG(CXT, ul_debugobj(cxt, "next-umount: trying %s", tgt)); + DBG(CXT, ul_debugobj(cxt, "next-umount: trying %s [fstype: %s, t-pattern: %s, options: %s, O-pattern: %s]", tgt, + mnt_fs_get_fstype(*fs), cxt->fstype_pattern, mnt_fs_get_options(*fs), cxt->optstr_pattern)); /* ignore filesystems which don't match options patterns */ if ((cxt->fstype_pattern && !mnt_fs_match_fstype(*fs, @@ -1003,12 +1004,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt, cxt->optstr_pattern))) { if (ignored) *ignored = 1; - DBG(CXT, ul_debugobj(cxt, "next-umount: not-match " - "[fstype: %s, t-pattern: %s, options: %s, O-pattern: %s]", - mnt_fs_get_fstype(*fs), - cxt->fstype_pattern, - mnt_fs_get_options(*fs), - cxt->optstr_pattern)); + + DBG(CXT, ul_debugobj(cxt, "next-umount: not-match")); return 0; } diff --git a/libmount/src/version.c b/libmount/src/version.c index d0f61c9283..b9902b9d97 100644 --- a/libmount/src/version.c +++ b/libmount/src/version.c @@ -28,6 +28,9 @@ static const char *lib_features[] = { #ifdef HAVE_BTRFS_SUPPORT "btrfs", #endif +#ifdef USE_LIBMOUNT_FORCE_MOUNTINFO + "force-mountinfo", +#endif #if !defined(NDEBUG) "assert", /* libc assert.h stuff */ #endif