From: Vaclav Dolezal Date: Tue, 20 Mar 2018 13:46:18 +0000 (+0100) Subject: libmount: note namespaces in mnt_reset_context() docs X-Git-Tag: v2.33-rc1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cbf01b75d0dc6736a3ea1c8c93bfedaf85b0c61;p=thirdparty%2Futil-linux.git libmount: note namespaces in mnt_reset_context() docs Signed-off-by: Vaclav Dolezal --- diff --git a/libmount/src/context.c b/libmount/src/context.c index 8928a7d960..da315a1d26 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -113,13 +113,14 @@ void mnt_free_context(struct libmnt_context *cxt) * Resets all information in the context that is directly related to * the latest mount (spec, source, target, mount options, ...). * - * The match patterns, cached fstab, cached canonicalized paths and tags and - * [e]uid are not reset. You have to use + * The match patterns, target namespace, cached fstab, cached canonicalized + * paths and tags and [e]uid are not reset. You have to use * * mnt_context_set_fstab(cxt, NULL); * mnt_context_set_cache(cxt, NULL); * mnt_context_set_fstype_pattern(cxt, NULL); * mnt_context_set_options_pattern(cxt, NULL); + * mnt_context_set_target_ns(cxt, NULL); * * * to reset this stuff.