mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 06:53:00 +00:00
[FASTFAT] Add a wrapper around FsRtlNotifyFullReportChange
This commit is contained in:
parent
168223aeb8
commit
8294118174
6 changed files with 82 additions and 125 deletions
|
@ -1002,29 +1002,19 @@ VfatCreateFile(
|
|||
|
||||
if (Irp->IoStatus.Information == FILE_CREATED)
|
||||
{
|
||||
FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
|
||||
&(DeviceExt->NotifyList),
|
||||
(PSTRING)&pFcb->PathNameU,
|
||||
pFcb->PathNameU.Length - pFcb->LongNameU.Length,
|
||||
NULL,
|
||||
NULL,
|
||||
(vfatFCBIsDirectory(pFcb) ?
|
||||
FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME),
|
||||
FILE_ACTION_ADDED,
|
||||
NULL);
|
||||
vfatReportChange(DeviceExt,
|
||||
pFcb,
|
||||
(vfatFCBIsDirectory(pFcb) ?
|
||||
FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME),
|
||||
FILE_ACTION_ADDED);
|
||||
}
|
||||
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);
|
||||
vfatReportChange(DeviceExt,
|
||||
pFcb,
|
||||
FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_ATTRIBUTES | FILE_NOTIFY_CHANGE_SIZE,
|
||||
FILE_ACTION_MODIFIED);
|
||||
}
|
||||
|
||||
pFcb->OpenHandleCount++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue