[PATCH] D85669: Fix "last accessed time" test failing on Windows

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 01:28:57 PDT 2020


jhenderson added a comment.

In D85669#2210806 <https://reviews.llvm.org/D85669#2210806>, @aganea wrote:

> Hi @jhenderson!
> I had `NtfsDisableLastAccessUpdate = 0x80000002`. With this, `touch -a -t 199505050555.55 %t.1.o` fails to update the "Last access time" to the requested date.
> Setting it to `0x80000003` or `3` or `1` works (ie. touch succeeds)
> I'm not sure exactly what is going on here, maybe NTFS sets the "Last access time" when the handle is closed, and thus overrides what `touch` does?
> The bottom line is that other users could be in the same situation: the test will succeed or fail depending on the settings on their machine.

Okay, thanks. Looks like there's more values than are actually documented. Out of interest, what does `fsutil behavior disablelastaccess` say for you?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85669/new/

https://reviews.llvm.org/D85669



More information about the llvm-commits mailing list