driver: turning write-only caching on
let's try write-only caching again but only because of the next patch that will use a special stateid for reads when file is opened write-only.
This commit is contained in:
parent
06fa6934cb
commit
3b7c04e136
1 changed files with 3 additions and 3 deletions
|
|
@ -2617,7 +2617,7 @@ NTSTATUS nfs41_Create(
|
||||||
// we current CANT turn on write-only caching because RDBSS translates a write
|
// we current CANT turn on write-only caching because RDBSS translates a write
|
||||||
// into a read first which leads to a NFS4ERR_IO error from the server because
|
// into a read first which leads to a NFS4ERR_IO error from the server because
|
||||||
// the file was opened read-only.
|
// the file was opened read-only.
|
||||||
if ((params.DesiredAccess & FILE_READ_DATA) &&
|
if (/*(params.DesiredAccess & FILE_READ_DATA) && */
|
||||||
(params.DesiredAccess & FILE_WRITE_DATA ||
|
(params.DesiredAccess & FILE_WRITE_DATA ||
|
||||||
params.DesiredAccess & FILE_APPEND_DATA))
|
params.DesiredAccess & FILE_APPEND_DATA))
|
||||||
SrvOpen->BufferingFlags |=
|
SrvOpen->BufferingFlags |=
|
||||||
|
|
@ -3707,11 +3707,11 @@ NTSTATUS nfs41_ComputeNewBufferingState(
|
||||||
pSrvOpen->BufferingFlags |= FCB_STATE_DISABLE_LOCAL_BUFFERING;
|
pSrvOpen->BufferingFlags |= FCB_STATE_DISABLE_LOCAL_BUFFERING;
|
||||||
break;
|
break;
|
||||||
case ENABLE_READ_CACHING:
|
case ENABLE_READ_CACHING:
|
||||||
pSrvOpen->BufferingFlags =
|
pSrvOpen->BufferingFlags |=
|
||||||
(FCB_STATE_READBUFFERING_ENABLED | FCB_STATE_READCACHING_ENABLED);
|
(FCB_STATE_READBUFFERING_ENABLED | FCB_STATE_READCACHING_ENABLED);
|
||||||
break;
|
break;
|
||||||
case ENABLE_WRITE_CACHING:
|
case ENABLE_WRITE_CACHING:
|
||||||
pSrvOpen->BufferingFlags =
|
pSrvOpen->BufferingFlags |=
|
||||||
(FCB_STATE_WRITECACHING_ENABLED | FCB_STATE_WRITEBUFFERING_ENABLED);
|
(FCB_STATE_WRITECACHING_ENABLED | FCB_STATE_WRITEBUFFERING_ENABLED);
|
||||||
break;
|
break;
|
||||||
case ENABLE_READWRITE_CACHING:
|
case ENABLE_READWRITE_CACHING:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue