mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FASTFAT] When a file gets overwritten, notify about the changes
This commit is contained in:
parent
ffeb3f070b
commit
2a36b632ef
1 changed files with 13 additions and 0 deletions
|
@ -1013,6 +1013,19 @@ VfatCreateFile(
|
|||
FILE_ACTION_ADDED,
|
||||
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++;
|
||||
DeviceExt->OpenHandleCount++;
|
||||
|
|
Loading…
Reference in a new issue