server: Add support for FILE_WRITE_THROUGH to create_file() request.
2 Aug
2018
2 Aug
'18
6:01 a.m.
Signed-off-by: Dmitry Timoshkov <dmitry(a)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
2690
Age (days ago)
2690
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov