aboutsummaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/cache.c2
-rw-r--r--libmount/src/context.c10
-rw-r--r--libmount/src/context_mount.c6
-rw-r--r--libmount/src/context_umount.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/libmount/src/cache.c b/libmount/src/cache.c
index 0e76891b85..2fafdd0fab 100644
--- a/libmount/src/cache.c
+++ b/libmount/src/cache.c
@@ -153,7 +153,7 @@ void mnt_unref_cache(struct libmnt_cache *cache)
* @cache: cache pointer
* @mtab: table with already canonicalized mountpoints
*
- * Add to @cache reference to @mtab. This allows to avoid unnecessary paths
+ * Add to @cache reference to @mtab. This can be used to avoid unnecessary paths
* canonicalization in mnt_resolve_target().
*
* Returns: negative number in case of error, or 0 o success.
diff --git a/libmount/src/context.c b/libmount/src/context.c
index 7d4370d354..6196c7156b 100644
--- a/libmount/src/context.c
+++ b/libmount/src/context.c
@@ -900,7 +900,7 @@ int mnt_context_is_loopdel(struct libmnt_context *cxt)
* @cxt: mount context
* @fs: filesystem description
*
- * The mount context uses private @fs by default. This function allows to
+ * The mount context uses private @fs by default. This function can be used to
* overwrite the private @fs with an external instance. This function
* increments @fs reference counter (and decrement reference counter of the
* old fs).
@@ -1190,7 +1190,7 @@ int mnt_context_set_options_pattern(struct libmnt_context *cxt, const char *patt
* @tb: fstab
*
* The mount context reads /etc/fstab to the private struct libmnt_table by default.
- * This function allows to overwrite the private fstab with an external
+ * This function can be used to overwrite the private fstab with an external
* instance.
*
* This function modify the @tb reference counter. This function does not set
@@ -1493,7 +1493,7 @@ int mnt_context_set_tables_errcb(struct libmnt_context *cxt,
* @cache: cache instance or NULL
*
* The mount context maintains a private struct libmnt_cache by default. This
- * function allows to overwrite the private cache with an external instance.
+ * function can be used to overwrite the private cache with an external instance.
* This function increments cache reference counter.
*
* If the @cache argument is NULL, then the current cache instance is reset.
@@ -1611,7 +1611,7 @@ struct libmnt_lock *mnt_context_get_lock(struct libmnt_context *cxt)
*
* Sets mount flags (see mount(2) man page).
*
- * Note that mount context allows to define mount options by mount flags. It
+ * Note that mount context can be used to define mount options by mount flags. It
* means you can for example use
*
* mnt_context_set_mflags(cxt, MS_NOEXEC | MS_NOSUID);
@@ -1740,7 +1740,7 @@ int mnt_context_get_user_mflags(struct libmnt_context *cxt, unsigned long *flags
* @data: mount(2) data
*
* The mount context generates mountdata from mount options by default. This
- * function allows to overwrite this behavior, and @data will be used instead
+ * function can be used to overwrite this behavior, and @data will be used instead
* of mount options.
*
* The libmount does not deallocate the data by mnt_free_context(). Note that
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index c00e732613..e0ef550b0f 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -293,8 +293,8 @@ static int fix_optstr(struct libmnt_context *cxt)
se_rem = 1;
else if (cxt->mountflags & MS_REMOUNT)
/*
- * Linux kernel < 2.6.39 does not allow to remount with any
- * selinux specific mount options.
+ * Linux kernel < 2.6.39 does not support remount operation
+ * with any selinux specific mount options.
*
* Kernel 2.6.39 commits: ff36fe2c845cab2102e4826c1ffa0a6ebf487c65
* 026eb167ae77244458fa4b4b9fc171209c079ba7
@@ -1080,7 +1080,7 @@ int mnt_context_do_mount(struct libmnt_context *cxt)
/*
* Mounted by mount(2), do some post-mount checks
*
- * Kernel allows to use MS_RDONLY for bind mounts, but the
+ * Kernel can be used to use MS_RDONLY for bind mounts, but the
* read-only request could be silently ignored. Check it to
* avoid 'ro' in mtab and 'rw' in /proc/mounts.
*/
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index f33b626444..df9a2ebf54 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -64,7 +64,7 @@ static int __mtab_find_umount_fs(struct libmnt_context *cxt,
/*
* The mount table may be huge, and on systems with utab we have to
* merge userspace mount options into /proc/self/mountinfo. This all is
- * expensive. The tab filter allows to filter out entries, then a mount
+ * expensive. The tab filter can be used to filter out entries, then a mount
* table and utab are very tiny files.
*
* The filter uses mnt_fs_streq_{target,srcpath} function where all