cxt->optsmode &= ~MNT_OMODE_FORCE;
}
- if (mnt_context_get_mflags(cxt, &mflags) == 0 && mflags & MS_REMOUNT) {
- /* preffer mtab on remount */
- DBG(CXT, ul_debugobj(cxt, "force mtab parsing on remount"));
- cxt->optsmode |= MNT_OMODE_MTAB;
- cxt->optsmode &= ~MNT_OMODE_FSTAB;
+ if (mnt_context_get_mflags(cxt, &mflags) == 0 && mflags & MS_REMOUNT)
isremount = 1;
- }
if (cxt->fs) {
src = mnt_fs_get_source(cxt->fs);
used to change the mount flags for a filesystem, especially to make a
readonly filesystem writable. It does not change device or mount point.
-The remount functionality follows the standard way the mount command works with
-options, but preferred source for the options is mtab (or /proc/self/mouninfo)
-rather than fstab. The mount command only does not read mtab
-when both the
+The remount functionality follows the standard way the mount command works
+with options from fstab. This means that the mount command only doesn't
+read fstab (or mtab) when both the
.I device
and
.I dir
.B "mount \-o remount,rw /dev/foo /dir"
After this call all old mount options are replaced and arbitrary stuff from
-mtab is ignored, except the loop= option which is internally generated and
-maintained by the mount command.
+fstab (or mtab) is ignored, except the loop= option which is internally
+generated and maintained by the mount command.
.B "mount \-o remount,rw /dir"
-After this call mount reads mtab and merges these options with
+After this call mount reads fstab and merges these options with
the options from the command line (\c
.B \-o\c
-). If no mtab (or /proc/self/mountinfo) is available than remount with unspecified
-source is allowed.
+). If no mountpoint found in fstab than remount with unspecified source is
+allowed.
.TP
.B ro
Mount the filesystem read-only.