Re: 回复: [PATCH 2/2] hfs: fix to update ctime after rename

From: Viacheslav Dubeyko
Date: Fri May 09 2025 - 13:51:59 EST


On Wed, 2025-05-07 at 14:22 +0000, 李扬韬 wrote:
> Hi Slava,
>
> >    +ERROR: access time has changed for file1 after remount
> >    +ERROR: access time has changed after modifying file1
> >    +ERROR: access time has changed for file in read-only filesystem
>
> > It looks like that it is not the whole fix of the issue for HFS
> > case.
>
> The test cases that failed after applying this patch are all related
> to the atime not being updated,

If I understood correctly "ERROR: access time has changed for file1
after remount" means atime has been changed.

> but hfs actually does not have atime.
>

But how the test detects that atime has been updated? If HFS hasn't
atime, then test cannot detect such update, from my point of view.

> So the current fix is ​​sufficient, should we modify the 003 test
> case?
>

I don't think so. Probably, something is wrong in HFS code. We need to
double check it.

Thanks,
Slava.

>    dirCrDat:      LongInt;    {date and time of creation}
>    dirMdDat:      LongInt;    {date and time of last modification}
>    dirBkDat:      LongInt;    {date and time of last backup}
>
>    filCrDat:      LongInt;    {date and time of creation}
>    filMdDat:      LongInt;    {date and time of last modification}
>    filBkDat:      LongInt;    {date and time of last backup}
>
> Thanks,
> Yangtao