memfs: do not update LastAccessTime on Open

This commit is contained in:
Bill Zissimopoulos 2016-05-20 18:39:32 -07:00
parent 599430e649
commit d89baea193

View File

@ -443,7 +443,8 @@ static NTSTATUS Open(FSP_FILE_SYSTEM *FileSystem,
*
* To properly implement this we should maintain some state of whether
* we modified the file or not. Alternatively we could have the driver
* report to us at Cleanup time whether the file was modified (FO_FILE_MODIFIED).
* report to us at Cleanup time whether the file was modified. [The
* driver does not currently maintain the FO_FILE_MODIFIED bit however.]
*
* TBD.
*/
@ -451,8 +452,6 @@ static NTSTATUS Open(FSP_FILE_SYSTEM *FileSystem,
Request->Req.Create.DesiredAccess & (FILE_WRITE_DATA | FILE_APPEND_DATA))
FileNode->FileInfo.FileAttributes |= FILE_ATTRIBUTE_ARCHIVE;
FileNode->FileInfo.LastAccessTime = MemfsGetSystemTime();
FileNode->RefCount++;
*PFileNode = FileNode;
*FileInfo = FileNode->FileInfo;