On Wed, Jul 25, 2007 at 07:28:54PM -0400, Mike Frysinger wrote:
> seems like -vf has broken along the way ... with util-linux-2.12, you could 
> get a nice fstabish output:
> $ mount -nfv / -o remount
> /dev/sda3 on / type ext3 (rw,noatime)
> 
> with current 2.13 though, mount gets angry:
> $ mount -nfv / -o remount
> mount: according to mtab, /dev/sda3 is already mounted on /
> -mike

 Good catch.

 discussion:

  http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/107/focus=153

 patch:

  
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=bb369b14044f822e36097928efe9c121a225f9cb;hp=8d5807b942631fc9bd7894f7a254ed4fd54cb039

 code:

 /* 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))
     die(EX_USAGE, _("mount: according to mtab, "
                     "%s is already mounted on %s\n"),
                    spec, node);


 There should be

   if (!(flags & MS_REMOUNT) && fake && mounted (spec, node))


    Karel

-- 
 Karel Zak  <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to