mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[FASTFAT] When a file gets overwritten, notify about the changes
This commit is contained in:
parent
ffeb3f070b
commit
2a36b632ef
|
@ -1013,6 +1013,19 @@ VfatCreateFile(
|
||||||
FILE_ACTION_ADDED,
|
FILE_ACTION_ADDED,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
else if (Irp->IoStatus.Information == FILE_OVERWRITTEN ||
|
||||||
|
Irp->IoStatus.Information == FILE_SUPERSEDED)
|
||||||
|
{
|
||||||
|
FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
|
||||||
|
&(DeviceExt->NotifyList),
|
||||||
|
(PSTRING)&pFcb->PathNameU,
|
||||||
|
pFcb->PathNameU.Length - pFcb->LongNameU.Length,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE,
|
||||||
|
FILE_ACTION_MODIFIED,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
|
||||||
pFcb->OpenHandleCount++;
|
pFcb->OpenHandleCount++;
|
||||||
DeviceExt->OpenHandleCount++;
|
DeviceExt->OpenHandleCount++;
|
||||||
|
|
Loading…
Reference in a new issue