Bug:
$ mount -fv / -o remount
mount: according to mtab, /dev/sda3 is already mounted on /
Signed-off-by: Karel Zak <kzak@redhat.com>
/* 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);