Signed-off-by: Dmitry Timoshkov dmitry@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 );