mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:15:59 +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,
|
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…
Add table
Add a link
Reference in a new issue