回复: 回复: [PATCH 2/2] hfs: fix to update ctime after rename
From: 李扬韬
Date: Sat May 10 2025 - 01:32:20 EST
Hi Slava,
> If I understood correctly "ERROR: access time has changed for file1 after remount" means atime has been changed.
In fact, it seems that it is not the atime that has been changed, but the disk atime that has been not changed.
The inode in memory has a newer atime, but the atime is not updated to the disk when write_inode is executed(hfs has no atime in disk format).
For ERROR: access time has changed for file1 after remount
Before:
Access: 2025-05-09 14:05:40
Modify: 2025-05-09 14:05:38
Change: 2025-05-09 14:05:38
After umount&mount:
Access: 2025-05-09 14:05:38 <-- back to mtime
Modify: 2025-05-09 14:05:38
Change: 2025-05-09 14:05:38
So we get inconsistent results for atime.
Am I missing something?
Thx,
Yangtao