Author: vmikayelyan
Date: Thu Aug 25 18:17:44 2016
New Revision: 72462
URL:
http://svn.reactos.org/svn/reactos?rev=72462&view=rev
Log:
revert r72459 (there were difference between blocks which I assumed as identical)
Modified:
branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c
Modified: branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/USB/drivers/filesyste…
==============================================================================
--- branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c [iso-8859-1] (original)
+++ branches/GSoC_2016/USB/drivers/filesystems/fastfat/flush.c [iso-8859-1] Thu Aug 25
18:17:44 2016
@@ -64,6 +64,25 @@
Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
ListEntry = ListEntry->Flink;
if (!vfatFCBIsDirectory(Fcb))
+ {
+ ExAcquireResourceExclusiveLite(&Fcb->MainResource, TRUE);
+ Status = VfatFlushFile(DeviceExt, Fcb);
+ ExReleaseResourceLite (&Fcb->MainResource);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("VfatFlushFile failed, status = %x\n", Status);
+ ReturnStatus = Status;
+ }
+ }
+ /* FIXME: Stop flushing if this is a removable media and the media was removed
*/
+ }
+
+ ListEntry = DeviceExt->FcbListHead.Flink;
+ while (ListEntry != &DeviceExt->FcbListHead)
+ {
+ Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
+ ListEntry = ListEntry->Flink;
+ if (vfatFCBIsDirectory(Fcb))
{
ExAcquireResourceExclusiveLite(&Fcb->MainResource, TRUE);
Status = VfatFlushFile(DeviceExt, Fcb);