mirror of
https://github.com/winfsp/winfsp.git
synced 2025-12-25 21:42:55 -06:00
dll: add fuse directio flag support
This commit is contained in:
@@ -1046,13 +1046,15 @@ static NTSTATUS fsp_fuse_intf_Create(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ignore fuse_file_info::direct_io, fuse_file_info::keep_cache.
|
* Ignore fuse_file_info::keep_cache.
|
||||||
* NOTE: Originally WinFsp did not support disabling the cache manager
|
* NOTE: Originally WinFsp did not support disabling the cache manager
|
||||||
* for an individual file. This is now possible and we should revisit.
|
* for an individual file. This is now possible and we should revisit.
|
||||||
*
|
*
|
||||||
* Ignore fuse_file_info::nonseekable.
|
* Ignore fuse_file_info::nonseekable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
FspFileSystemGetOperationContext()->Response->Rsp.Create.Opened.DisableCache = fi.direct_io;
|
||||||
|
|
||||||
*PFileDesc = filedesc;
|
*PFileDesc = filedesc;
|
||||||
memcpy(FileInfo, &FileInfoBuf, sizeof FileInfoBuf);
|
memcpy(FileInfo, &FileInfoBuf, sizeof FileInfoBuf);
|
||||||
|
|
||||||
@@ -1191,13 +1193,15 @@ static NTSTATUS fsp_fuse_intf_Open(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ignore fuse_file_info::direct_io, fuse_file_info::keep_cache.
|
* Ignore fuse_file_info::keep_cache.
|
||||||
* NOTE: Originally WinFsp did not support disabling the cache manager
|
* NOTE: Originally WinFsp did not support disabling the cache manager
|
||||||
* for an individual file. This is now possible and we should revisit.
|
* for an individual file. This is now possible and we should revisit.
|
||||||
*
|
*
|
||||||
* Ignore fuse_file_info::nonseekable.
|
* Ignore fuse_file_info::nonseekable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
FspFileSystemGetOperationContext()->Response->Rsp.Create.Opened.DisableCache = fi.direct_io;
|
||||||
|
|
||||||
*PFileDesc = filedesc;
|
*PFileDesc = filedesc;
|
||||||
memcpy(FileInfo, &FileInfoBuf, sizeof FileInfoBuf);
|
memcpy(FileInfo, &FileInfoBuf, sizeof FileInfoBuf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user