From 83d8fbf434e8c0b7c4ae550ce72e2f09c47020e5 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 3 May 2019 12:13:51 +0200 Subject: [PATCH] [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 cd3c9a87c13..925a408b71f 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 );