Add a NODEVMTIME compile-time option. This will inhibit the updating
of modification times on device special files. Probably only useful for low-power systems.
This commit is contained in:
parent
16b7174fcb
commit
466e22e1b7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ufs_vnops.c,v 1.48 1998/08/30 00:16:04 rvb Exp $ */
|
||||
/* $NetBSD: ufs_vnops.c,v 1.49 1998/09/04 16:04:26 kenh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993, 1995
|
||||
|
@ -1700,7 +1700,9 @@ ufsspec_read(v)
|
|||
/*
|
||||
* Set access flag.
|
||||
*/
|
||||
#ifndef NODEVMTIME
|
||||
VTOI(ap->a_vp)->i_flag |= IN_ACCESS;
|
||||
#endif
|
||||
return (VOCALL (spec_vnodeop_p, VOFFSET(vop_read), ap));
|
||||
}
|
||||
|
||||
|
@ -1721,7 +1723,9 @@ ufsspec_write(v)
|
|||
/*
|
||||
* Set update and change flags.
|
||||
*/
|
||||
#ifndef NODEVMTIME
|
||||
VTOI(ap->a_vp)->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||
#endif
|
||||
return (VOCALL (spec_vnodeop_p, VOFFSET(vop_write), ap));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue