From ca793296272206a56af8e6ca8f77a044c5495b28 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 27 Aug 2024 11:14:01 +0200 Subject: [PATCH] libmount: cleanup comments Signed-off-by: Karel Zak --- libmount/src/context.c | 4 ++-- libmount/src/context_umount.c | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/libmount/src/context.c b/libmount/src/context.c index d38e3671f..a9cb4ef26 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1146,8 +1146,8 @@ fail: * @cxt: mount context * @optstr: comma delimited mount options * - * Note that MS_MOVE cannot be specified as "string". It's operation that - * is no supported in fstab (etc.) + * Please note that MS_MOVE cannot be specified as a "string". The move operation + * cannot be specified in fstab. * * Returns: 0 on success, negative number in case of error. */ diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index c22ffbd80..499cc43ac 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -347,13 +347,12 @@ static int lookup_umount_fs_by_mountinfo(struct libmnt_context *cxt, const char return 0; } -/* This function searches for FS according to cxt->fs->target, - * apply result to cxt->fs and it's umount replacement to - * mnt_context_apply_fstab(), use mnt_context_tab_applied() - * to check result. +/* + * This function searches for the file system according to cxt->fs->target and + * applies the result to cxt->fs. This function is a umount replacement for + * mnt_context_apply_fstab(). Use mnt_context_tab_applied() to check the result. * - * The goal is to minimize situations when we need to parse - * /proc/self/mountinfo. + * The goal is to minimize situations when we need to parse /proc/self/mountinfo. */ static int lookup_umount_fs(struct libmnt_context *cxt) { -- 2.47.2