[FASTFAT_NEW]
[reactos.git] / reactos / drivers / filesystems / fastfat_new / cleanup.c
index 49ae955..3414c97 100644 (file)
@@ -221,7 +221,8 @@ FatiCleanup(PFAT_IRP_CONTEXT IrpContext, PIRP Irp)
             Fcb->Condition == FcbGood)
         {
             /* Yes, a delayed one */
-            SetFlag(Fcb->State, FCB_STATE_DELAY_CLOSE);
+            //SetFlag(Fcb->State, FCB_STATE_DELAY_CLOSE);
+            DPRINT1("Setting a delay on close for some reason for FCB %p, FF handle %p, file name '%wZ'\n", Fcb, Fcb->FatHandle, &Fcb->FullFileName);
         }
 
         /* Unlock all file locks */
@@ -303,12 +304,11 @@ FatiCleanup(PFAT_IRP_CONTEXT IrpContext, PIRP Irp)
                 if (FlagOn(Fcb->State, FCB_STATE_DELETE_ON_CLOSE) &&
                     Fcb->Header.AllocationSize.LowPart == 0)
                 {
-                    UNIMPLEMENTED;
-                    /*FatNotifyReportChange(IrpContext,
+                    FatNotifyReportChange(IrpContext,
                                           Vcb,
                                           Fcb,
                                           FILE_NOTIFY_CHANGE_FILE_NAME,
-                                          FILE_ACTION_REMOVED );*/
+                                          FILE_ACTION_REMOVED);
                 }
 
                 /* Remove the entry from the splay table if the file was deleted */