server: Add support for FILE_WRITE_THROUGH to create_file() request.

Dmitry Timoshkov dmitry at baikal.ru
Thu Aug 2 01:01:53 CDT 2018


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 server/file.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/server/file.c b/server/file.c
index 446621a997..9299530a4f 100644
--- a/server/file.c
+++ b/server/file.c
@@ -224,6 +224,11 @@ static struct object *create_file( struct fd *root, const char *nameptr, data_si
     default:                set_error( STATUS_INVALID_PARAMETER ); goto done;
     }
 
+#ifdef O_DIRECT
+    if (options & FILE_WRITE_THROUGH)
+        flags |= O_DIRECT;
+#endif
+
     if (sd)
     {
         const SID *owner = sd_get_owner( sd );
-- 
2.17.1




More information about the wine-devel mailing list