From: Darrick J. Wong Date: Tue, 9 Jan 2024 17:39:35 +0000 (-0800) Subject: libxfs: set access time when creating files X-Git-Tag: xfs-zoned-old-2024-06-10~300 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c4c821aa682eb5e331d2ea9ca4e4b484fd6ce33d;p=users%2Fhch%2Fxfsprogs.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 --- diff --git a/libxfs/inode.c b/libxfs/inode.c index 326c88a42..f3766b849 100644 --- a/libxfs/inode.c +++ b/libxfs/inode.c @@ -91,7 +91,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, XFS_IGET_CREATE, &ip);