From 4aa33638eb33650fbc13c6c618f6c03ee02f487f Mon Sep 17 00:00:00 2001 From: dg Date: Tue, 3 Sep 1996 07:09:11 +0000 Subject: Implemented kernel side of MNT_NOATIME mount option. This option disables the file access time update on reads and can be useful in reducing filesystem overhead in cases where the access time is not important (like Usenet news spools). --- sys/ufs/ufs/ufs_readwrite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index ff2c540..415e7c6 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_readwrite.c 8.7 (Berkeley) 1/21/94 - * $Id: ufs_readwrite.c,v 1.20 1996/01/19 03:59:26 dyson Exp $ + * $Id: ufs_readwrite.c,v 1.21 1996/06/25 03:00:44 davidg Exp $ */ #ifdef LFS_READWRITE @@ -163,7 +163,8 @@ READ(ap) } if (bp != NULL) bqrelse(bp); - ip->i_flag |= IN_ACCESS; + if (!(vp->v_mount->mnt_flag & MNT_NOATIME)) + ip->i_flag |= IN_ACCESS; return (error); } -- cgit v1.1