mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[FASTFAT]
Add file and directory removal notification. svn path=/trunk/; revision=62772
This commit is contained in:
parent
cfbe5a5693
commit
15ceab25f8
1 changed files with 12 additions and 1 deletions
|
@ -28,7 +28,7 @@ VfatCloseFile(
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
DPRINT("VfatCloseFile(DeviceExt %p, FileObject %p)\n",
|
DPRINT("VfatCloseFile(DeviceExt %p, FileObject %p)\n",
|
||||||
DeviceExt, FileObject);
|
DeviceExt, FileObject);
|
||||||
|
|
||||||
/* FIXME : update entry in directory? */
|
/* FIXME : update entry in directory? */
|
||||||
pCcb = (PVFATCCB) (FileObject->FsContext2);
|
pCcb = (PVFATCCB) (FileObject->FsContext2);
|
||||||
|
@ -52,6 +52,17 @@ VfatCloseFile(
|
||||||
if (pFcb->Flags & FCB_DELETE_PENDING)
|
if (pFcb->Flags & FCB_DELETE_PENDING)
|
||||||
{
|
{
|
||||||
VfatDelEntry(DeviceExt, pFcb);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue