From: Darrick J. Wong <djwong@xxxxxxxxxx> Set the access time on files that we're creating, to match the behavior of the kernel. Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> --- libxfs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libxfs/inode.c b/libxfs/inode.c index c14a4c5a27f..7f8f1164e08 100644 --- a/libxfs/inode.c +++ b/libxfs/inode.c @@ -73,7 +73,8 @@ libxfs_icreate( struct xfs_inode *pip = args->pip; struct xfs_inode *ip; unsigned int flags; - int times = XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG; + int times = XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG | + XFS_ICHGTIME_ACCESS; int error; error = libxfs_iget(tp->t_mountp, tp, ino, 0, &ip);