https://git.reactos.org/?p=reactos.git;a=commitdiff;h=83d8fbf434e8c0b7c4ae5…
commit 83d8fbf434e8c0b7c4ae550ce72e2f09c47020e5
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Fri May 3 12:13:51 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat May 4 11:54:39 2019 +0200
[ROSAUTOTEST] Don't disallow buffering for journal file
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/rostests/rosautotest/CJournaledTestList.cpp
b/modules/rostests/rosautotest/CJournaledTestList.cpp
index cd3c9a87c1..925a408b71 100644
--- a/modules/rostests/rosautotest/CJournaledTestList.cpp
+++ b/modules/rostests/rosautotest/CJournaledTestList.cpp
@@ -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
);