From 5cbf01b75d0dc6736a3ea1c8c93bfedaf85b0c61 Mon Sep 17 00:00:00 2001 From: Vaclav Dolezal Date: Tue, 20 Mar 2018 14:46:18 +0100 Subject: libmount: note namespaces in mnt_reset_context() docs Signed-off-by: Vaclav Dolezal --- libmount/src/context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmount') diff --git a/libmount/src/context.c b/libmount/src/context.c index 8928a7d96..da315a1d2 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. -- cgit v1.2.3-55-g7522