Author: ekohl
Date: Fri Apr 18 12:07:55 2014
New Revision: 62772
URL:
http://svn.reactos.org/svn/reactos?rev=62772&view=rev
Log:
[FASTFAT]
Add file and directory removal notification.
Modified:
trunk/reactos/drivers/filesystems/fastfat/close.c
Modified: trunk/reactos/drivers/filesystems/fastfat/close.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/close.c [iso-8859-1] Fri Apr 18 12:07:55
2014
@@ -28,7 +28,7 @@
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("VfatCloseFile(DeviceExt %p, FileObject %p)\n",
- DeviceExt, FileObject);
+ DeviceExt, FileObject);
/* FIXME : update entry in directory? */
pCcb = (PVFATCCB) (FileObject->FsContext2);
@@ -52,6 +52,17 @@
if (pFcb->Flags & FCB_DELETE_PENDING)
{
VfatDelEntry(DeviceExt, pFcb);
+
+ FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
+ &(DeviceExt->NotifyList),
+ (PSTRING)&pFcb->PathNameU,
+ pFcb->PathNameU.Length -
pFcb->LongNameU.Length,
+ NULL,
+ NULL,
+ ((*pFcb->Attributes &
FILE_ATTRIBUTE_DIRECTORY) ?
+ FILE_NOTIFY_CHANGE_DIR_NAME :
FILE_NOTIFY_CHANGE_FILE_NAME),
+ FILE_ACTION_REMOVED,
+ NULL);
}
else
{