- diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
- index 86473e5..0e2f11c 100644
- --- a/sys/nfs41sys_openclose.c
- +++ b/sys/nfs41sys_openclose.c
- @@ -851,6 +851,20 @@ retry_on_link:
- #ifdef DEBUG_OPEN
- DbgP("nfs41_Create: received delegation %d\n", entry->u.Open.deleg_type);
- #endif
- +
- + /*
- + * We cannot have a file cached on a write-only handle,
- + * so we have to set |SRVOPEN_FLAG_DONTUSE_WRITE_CACHING|
- + * in this case.
- + */
- + if (((params->DesiredAccess & (FILE_EXECUTE|FILE_READ_DATA)) == 0) &&
- + ((params->DesiredAccess & (FILE_WRITE_DATA|FILE_APPEND_DATA)) != 0)) {
- + SrvOpen->Flags |= SRVOPEN_FLAG_DONTUSE_WRITE_CACHING;
- + DbgP("nfs41_Create: write-only handle for file '%wZ', "
- + "setting SRVOPEN_FLAG_DONTUSE_WRITE_CACHING\n",
- + SrvOpen->pAlreadyPrefixedName);
- + }
- +
- if (!(params->CreateOptions & FILE_WRITE_THROUGH) &&
- !pVNetRootContext->write_thru &&
- (entry->u.Open.deleg_type == 2 ||
wintar 0bytes issue, prototype fix 2024-12-18-002
Posted by Anonymous on Wed 18th Dec 2024 17:32
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.