Skip to content

Commit c86dab5

Browse files
committed
revert r72459 (there were difference between blocks which I assumed as identical)
svn path=/branches/GSoC_2016/USB/; revision=72462
1 parent 319fedc commit c86dab5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/filesystems/fastfat/flush.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@ VfatFlushVolume(
7777
/* FIXME: Stop flushing if this is a removable media and the media was removed */
7878
}
7979

80+
ListEntry = DeviceExt->FcbListHead.Flink;
81+
while (ListEntry != &DeviceExt->FcbListHead)
82+
{
83+
Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
84+
ListEntry = ListEntry->Flink;
85+
if (vfatFCBIsDirectory(Fcb))
86+
{
87+
ExAcquireResourceExclusiveLite(&Fcb->MainResource, TRUE);
88+
Status = VfatFlushFile(DeviceExt, Fcb);
89+
ExReleaseResourceLite (&Fcb->MainResource);
90+
if (!NT_SUCCESS(Status))
91+
{
92+
DPRINT1("VfatFlushFile failed, status = %x\n", Status);
93+
ReturnStatus = Status;
94+
}
95+
}
96+
/* FIXME: Stop flushing if this is a removable media and the media was removed */
97+
}
98+
8099
Fcb = (PVFATFCB) DeviceExt->FATFileObject->FsContext;
81100

82101
ExAcquireResourceExclusiveLite(&DeviceExt->FatResource, TRUE);

0 commit comments

Comments
 (0)