File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
drivers/filesystems/fastfat Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,25 @@ VfatFlushVolume(
77
77
/* FIXME: Stop flushing if this is a removable media and the media was removed */
78
78
}
79
79
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
+
80
99
Fcb = (PVFATFCB ) DeviceExt -> FATFileObject -> FsContext ;
81
100
82
101
ExAcquireResourceExclusiveLite (& DeviceExt -> FatResource , TRUE);
You can’t perform that action at this time.
0 commit comments