mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 13:02:10 -05:00
memfs: do not update LastAccessTime on Open
This commit is contained in:
parent
599430e649
commit
d89baea193
@ -443,7 +443,8 @@ static NTSTATUS Open(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
*
|
*
|
||||||
* To properly implement this we should maintain some state of whether
|
* To properly implement this we should maintain some state of whether
|
||||||
* we modified the file or not. Alternatively we could have the driver
|
* 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.
|
* TBD.
|
||||||
*/
|
*/
|
||||||
@ -451,8 +452,6 @@ static NTSTATUS Open(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
Request->Req.Create.DesiredAccess & (FILE_WRITE_DATA | FILE_APPEND_DATA))
|
Request->Req.Create.DesiredAccess & (FILE_WRITE_DATA | FILE_APPEND_DATA))
|
||||||
FileNode->FileInfo.FileAttributes |= FILE_ATTRIBUTE_ARCHIVE;
|
FileNode->FileInfo.FileAttributes |= FILE_ATTRIBUTE_ARCHIVE;
|
||||||
|
|
||||||
FileNode->FileInfo.LastAccessTime = MemfsGetSystemTime();
|
|
||||||
|
|
||||||
FileNode->RefCount++;
|
FileNode->RefCount++;
|
||||||
*PFileNode = FileNode;
|
*PFileNode = FileNode;
|
||||||
*FileInfo = FileNode->FileInfo;
|
*FileInfo = FileNode->FileInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user