cvs commit: src/sbin/mount mount.c

Guido van Rooij guido at gvr.org
Thu Jan 29 05:36:58 PST 2004


On Thu, Jan 29, 2004 at 03:27:32PM +0200, Ruslan Ermilov wrote:
> On Thu, Jan 29, 2004 at 05:16:51AM -0800, Guido van Rooij wrote:
> > guido       2004/01/29 05:16:51 PST
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     sbin/mount           mount.c 
> >   Log:
> >   Unbreak -o fstab and -o current in combination with -a
> >   
> >   MFC after:      2 weeks
> >   
> >   Revision  Changes    Path
> >   1.59      +2 -0      src/sbin/mount/mount.c
> > 
> Did you mean -u here, because -a is not listed as allowed
> in combination with the -o option?
> 

Does it matter?

In case it is not with -u, and the filessytem is already mounted,
the mount will not do anything due to:
                                if (!(init_flags & MNT_UPDATE) &&
                                    ismounted(fs, mntbuf, mntsize))
                                        continue;

In case it is not mounted, -o current will be void, and -o fstab
will be implied.

-Guido


More information about the cvs-all mailing list