summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context_umount.c
diff options
context:
space:
mode:
authorKarel Zak2010-12-17 17:46:24 +0100
committerKarel Zak2011-01-03 12:28:47 +0100
commit36bda5cbd0a18b2ae6aadd36fd54813f29566602 (patch)
tree5270b2ee85dcc3eeb618b98a16102ae7e2d2a5fd /shlibs/mount/src/context_umount.c
parenttests: add libmount utab tests (diff)
downloadkernel-qcow2-util-linux-36bda5cbd0a18b2ae6aadd36fd54813f29566602.tar.gz
kernel-qcow2-util-linux-36bda5cbd0a18b2ae6aadd36fd54813f29566602.tar.xz
kernel-qcow2-util-linux-36bda5cbd0a18b2ae6aadd36fd54813f29566602.zip
libmount: cleanup MS_RDONLY usageand mnt_update_* symbols
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context_umount.c')
-rw-r--r--shlibs/mount/src/context_umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/mount/src/context_umount.c b/shlibs/mount/src/context_umount.c
index b4da7373a..eeb7f2666 100644
--- a/shlibs/mount/src/context_umount.c
+++ b/shlibs/mount/src/context_umount.c
@@ -496,7 +496,7 @@ int mnt_context_do_umount(mnt_context *cxt)
if ((cxt->flags & MNT_FL_RDONLY_UMOUNT) &&
(cxt->mountflags & (MS_RDONLY | MS_REMOUNT))) {
/*
- * update options to handle remount to read-only
+ * remount --> read-only mount
*/
const char *o = mnt_fs_get_vfs_options(cxt->fs);
char *n = o ? strdup(o) : NULL;
@@ -509,7 +509,7 @@ int mnt_context_do_umount(mnt_context *cxt)
if (!rc)
rc = mnt_fs_set_vfs_options(cxt->fs, n);
- /* refresh options in /etc/mtab as well */
+ /* use "remount" instead of "umount" in /etc/mtab */
if (!rc && cxt->update && cxt->mtab_writable)
rc = mnt_update_set_fs(cxt->update,
cxt->mountflags, NULL, cxt->fs);