Add noatime option to new filesystems to speed up initial extraction.

Suggested by:	bde
This commit is contained in:
Jordan K. Hubbard 1998-03-19 15:02:09 +00:00
parent 8d17ea527b
commit 75ea99e2df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34679
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/*
* Miscellaneous support routines..
*
* $Id: misc.c,v 1.36 1997/11/05 06:11:30 obrien Exp $
* $Id: misc.c,v 1.37 1998/01/16 15:07:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -338,7 +338,7 @@ Mount(char *mountp, void *dev)
msgDebug("mount %s %s\n", device, mountpoint);
ufsargs.fspec = device;
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC : 0,
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC | MNT_NOATIME : 0,
(caddr_t)&ufsargs) == -1) {
msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno));
return DITEM_FAILURE;

View File

@ -1,7 +1,7 @@
/*
* Miscellaneous support routines..
*
* $Id: misc.c,v 1.36 1997/11/05 06:11:30 obrien Exp $
* $Id: misc.c,v 1.37 1998/01/16 15:07:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -338,7 +338,7 @@ Mount(char *mountp, void *dev)
msgDebug("mount %s %s\n", device, mountpoint);
ufsargs.fspec = device;
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC : 0,
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC | MNT_NOATIME : 0,
(caddr_t)&ufsargs) == -1) {
msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno));
return DITEM_FAILURE;

View File

@ -1,7 +1,7 @@
/*
* Miscellaneous support routines..
*
* $Id: misc.c,v 1.36 1997/11/05 06:11:30 obrien Exp $
* $Id: misc.c,v 1.37 1998/01/16 15:07:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -338,7 +338,7 @@ Mount(char *mountp, void *dev)
msgDebug("mount %s %s\n", device, mountpoint);
ufsargs.fspec = device;
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC : 0,
if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC | MNT_NOATIME : 0,
(caddr_t)&ufsargs) == -1) {
msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno));
return DITEM_FAILURE;