turning off caching if WRITE_THROUGH or NO_BUFFERING is set

This commit is contained in:
Olga Kornievskaia 2011-04-14 19:50:25 -04:00 committed by unknown
parent 48081b9f00
commit 20493b9e88

View file

@ -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;