CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/29 23:08:06
Modified files:
sys/ufs/ext2fs : ext2fs_vnops.c
Log message:
ext2fs: no atime update on a read-only mount
ext2fs_getattr() ran EXT2FS_ITIMES() directly, so a read on a read-only
mount (which sets IN_ACCESS) stamped the in-core atime with the current
time, and stat(2) reported it, although nothing reached the disk. Call
ufs_itimes() instead, as ufs_getattr() does: it skips the update on a
read-only mount and hands ext2 inodes to EXT2FS_ITIMES() otherwise.
Found by xfstests generic/003.
OK miod@