mirror of
https://github.com/winfsp/winfsp.git
synced 2026-01-03 17:58:55 -06:00
sys: FSP_FILE_DESC::DidSetMetadata
This commit is contained in:
@@ -149,7 +149,21 @@ NTSTATUS FspFsvolFlushBuffersComplete(
|
||||
else if (!NT_SUCCESS(FlushResult))
|
||||
Result = FlushResult;
|
||||
else
|
||||
{
|
||||
PFILE_OBJECT FileObject = IrpSp->FileObject;
|
||||
FSP_FILE_NODE *FileNode = FileObject->FsContext;
|
||||
|
||||
/*
|
||||
* A flush request on the volume (or the root directory according to FastFat)
|
||||
* is a request to flush the whole volume.
|
||||
*/
|
||||
if (!FspFileNodeIsValid(FileNode) || FileNode->IsRootDirectory)
|
||||
;
|
||||
else
|
||||
SetFlag(FileObject->Flags, FO_FILE_MODIFIED);
|
||||
|
||||
Result = STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
FSP_LEAVE_IOC("FileObject=%p",
|
||||
IrpSp->FileObject);
|
||||
|
||||
Reference in New Issue
Block a user