mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Fixed `mount -a -u ...'. Rev.1.19 broke this by trying too hard to
avoid mounting filesystems multiple times. PR: 10572 Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca>
This commit is contained in:
parent
dbffaab09b
commit
98201b0c60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44811
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: mount.c,v 1.28 1998/07/06 07:12:38 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -192,7 +192,8 @@ main(argc, argv)
|
||||
continue;
|
||||
if (hasopt(fs->fs_mntops, "noauto"))
|
||||
continue;
|
||||
if (ismounted(fs, mntbuf, mntsize))
|
||||
if (!(init_flags & MNT_UPDATE) &&
|
||||
ismounted(fs, mntbuf, mntsize))
|
||||
continue;
|
||||
if (mountfs(fs->fs_vfstype, fs->fs_spec,
|
||||
fs->fs_file, init_flags, options,
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: mount.c,v 1.28 1998/07/06 07:12:38 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -192,7 +192,8 @@ main(argc, argv)
|
||||
continue;
|
||||
if (hasopt(fs->fs_mntops, "noauto"))
|
||||
continue;
|
||||
if (ismounted(fs, mntbuf, mntsize))
|
||||
if (!(init_flags & MNT_UPDATE) &&
|
||||
ismounted(fs, mntbuf, mntsize))
|
||||
continue;
|
||||
if (mountfs(fs->fs_vfstype, fs->fs_spec,
|
||||
fs->fs_file, init_flags, options,
|
||||
|
Loading…
Reference in New Issue
Block a user