mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: maintain FO_FILE_MODIFIED bit
This commit is contained in:
@ -229,6 +229,9 @@ static NTSTATUS FspFsvolWriteCached(
|
||||
if (SynchronousIo)
|
||||
FileObject->CurrentByteOffset.QuadPart = WriteEndOffset;
|
||||
|
||||
/* mark the file object as modified (if not paging I/O) */
|
||||
SetFlag(FileObject->Flags, FO_FILE_MODIFIED);
|
||||
|
||||
FspFileNodeRelease(FileNode, Main);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
@ -432,6 +435,10 @@ NTSTATUS FspFsvolWriteComplete(
|
||||
Response->Rsp.Write.FileInfo.FileSize :
|
||||
WriteOffset.QuadPart + Response->IoStatus.Information;
|
||||
|
||||
/* mark the file object as modified (if not paging I/O) */
|
||||
if (!PagingIo)
|
||||
SetFlag(FileObject->Flags, FO_FILE_MODIFIED);
|
||||
|
||||
FspIopResetRequest(Request, 0);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user