Skip to content

Commit

Permalink
libmount: cleanup comments
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Aug 27, 2024
1 parent d191775 commit ca79329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions libmount/src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,8 @@ struct libmnt_optlist *mnt_context_get_optlist(struct libmnt_context *cxt)
* @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.
*/
Expand Down
11 changes: 5 additions & 6 deletions libmount/src/context_umount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ca79329

Please sign in to comment.