[ROSAUTOTEST] Don't disallow buffering for journal file
authorPierre Schweitzer <pierre@reactos.org>
Fri, 3 May 2019 10:13:51 +0000 (12:13 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 4 May 2019 09:54:39 +0000 (11:54 +0200)
This fixes back journal in ReactOS "at low costs". Indeed,
because write are improperly aligned right now, journaling
just fails.
With that patch, Cc will take care of aligning writes and
journal will be written again. Because flush operations
happen at each and every write to the journal, we expect
changes to land on disk quickly (not as quickly as if
they were directly written). But that's a good trade off
between over engineering and fixing a broken feature.

CORE-15973

modules/rostests/rosautotest/CJournaledTestList.cpp

index cd3c9a8..925a408 100644 (file)
@@ -70,7 +70,7 @@ CJournaledTestList::OpenJournal(DWORD DesiredAccess, bool CreateNew)
         0,
         NULL,
         (CreateNew ? CREATE_ALWAYS : OPEN_EXISTING),
-        FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH,
+        FILE_ATTRIBUTE_NORMAL | FILE_FLAG_WRITE_THROUGH,
         NULL
     );