diff options
author | Karel Zak | 2007-07-26 14:39:03 +0200 |
---|---|---|
committer | Karel Zak | 2007-07-26 14:45:55 +0200 |
commit | 3821f4888a5ae37443fecfca861c35d28092c0ed (patch) | |
tree | e91b86e1045638dcef97b903b5af4c3191657c02 /mount/mount.c | |
parent | rdev: should be delivered on amd64 as well as i386. (diff) | |
download | kernel-qcow2-util-linux-3821f4888a5ae37443fecfca861c35d28092c0ed.tar.gz kernel-qcow2-util-linux-3821f4888a5ae37443fecfca861c35d28092c0ed.tar.xz kernel-qcow2-util-linux-3821f4888a5ae37443fecfca861c35d28092c0ed.zip |
mount: fix -f -o remount
Bug:
$ mount -fv / -o remount
mount: according to mtab, /dev/sda3 is already mounted on /
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/mount.c b/mount/mount.c index 50089a9ac..6caea64a0 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1036,7 +1036,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0, /* The "mount -f" checks for for existing record in /etc/mtab (with * regular non-fake mount this is usually done by kernel) */ - if (fake && mounted (spec, node)) + if (!(flags & MS_REMOUNT) && fake && mounted (spec, node)) die(EX_USAGE, _("mount: according to mtab, " "%s is already mounted on %s\n"), spec, node); |