From 36bda5cbd0a18b2ae6aadd36fd54813f29566602 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 17 Dec 2010 17:46:24 +0100 Subject: libmount: cleanup MS_RDONLY usageand mnt_update_* symbols Signed-off-by: Karel Zak --- shlibs/mount/src/context_umount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shlibs/mount/src/context_umount.c') 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); -- cgit v1.2.3-55-g7522