Add noatime option to new filesystems to speed up initial extraction.
Suggested by: bde
This commit is contained in:
parent
8d17ea527b
commit
75ea99e2df
@ -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