From: Zbigniew Jędrzejewski-Szmek Date: Mon, 7 Nov 2022 10:21:29 +0000 (+0100) Subject: shared/mount-util: fix comment X-Git-Tag: v253-rc1~563^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ca4ec20120a88de815200400607e679df7f0783;p=thirdparty%2Fsystemd.git shared/mount-util: fix comment Just typos and grammar. In the end didn't add a use of a function, but I read the comment carefully, and this commit is the result of that. --- diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index 6742b7c755b..1f827e20611 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -718,20 +718,18 @@ int mount_option_mangle( _cleanup_free_ char *ret = NULL; int r; - /* This extracts mount flags from the mount options, and store + /* This extracts mount flags from the mount options, and stores * non-mount-flag options to '*ret_remaining_options'. * E.g., * "rw,nosuid,nodev,relatime,size=1630748k,mode=700,uid=1000,gid=1000" * is split to MS_NOSUID|MS_NODEV|MS_RELATIME and * "size=1630748k,mode=700,uid=1000,gid=1000". - * See more examples in test-mount-utils.c. + * See more examples in test-mount-util.c. * - * Note that if 'options' does not contain any non-mount-flag options, + * If 'options' does not contain any non-mount-flag options, * then '*ret_remaining_options' is set to NULL instead of empty string. - * Note that this does not check validity of options stored in - * '*ret_remaining_options'. - * Note that if 'options' is NULL, then this just copies 'mount_flags' - * to '*ret_mount_flags'. */ + * The validity of options stored in '*ret_remaining_options' is not checked. + * If 'options' is NULL, this just copies 'mount_flags' to *ret_mount_flags. */ assert(ret_mount_flags); assert(ret_remaining_options);