From: Darrick J. Wong Date: Wed, 2 Oct 2024 01:11:13 +0000 (-0700) Subject: libxfs: set access time when creating files X-Git-Tag: v6.11.0~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d1e5c013750d781efa1f793a5bd1b6fd179df04;p=thirdparty%2Fxfsprogs-dev.git libxfs: set access time when creating files Set the access time on files that we're creating, to match the behavior of the kernel. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/inode.c b/libxfs/inode.c index b302bbbf..132cf990 100644 --- a/libxfs/inode.c +++ b/libxfs/inode.c @@ -94,7 +94,8 @@ libxfs_icreate( struct inode *inode; 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(mp, tp, ino, XFS_IGET_CREATE, &ip);