turning off caching if WRITE_THROUGH or NO_BUFFERING is set
This commit is contained in:
parent
48081b9f00
commit
20493b9e88
1 changed files with 6 additions and 0 deletions
|
|
@ -2951,6 +2951,12 @@ NTSTATUS nfs41_Create(
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.CreateOptions & FILE_WRITE_THROUGH ||
|
||||||
|
params.CreateOptions & FILE_NO_INTERMEDIATE_BUFFERING) {
|
||||||
|
DbgP("Disable caching\n");
|
||||||
|
SrvOpen->BufferingFlags |= FCB_STATE_DISABLE_LOCAL_BUFFERING;
|
||||||
|
}
|
||||||
|
|
||||||
if (params.CreateOptions & FILE_DELETE_ON_CLOSE) {
|
if (params.CreateOptions & FILE_DELETE_ON_CLOSE) {
|
||||||
DbgP("We need to delete this file on close\n");
|
DbgP("We need to delete this file on close\n");
|
||||||
nfs41_fcb->StandardInfo.DeletePending = TRUE;
|
nfs41_fcb->StandardInfo.DeletePending = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue