mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 08:33:20 +00:00
Add noatime option to new filesystems to speed up initial extraction.
Suggested by: bde
This commit is contained in:
parent
8d17ea527b
commit
75ea99e2df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34679
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user