pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


wintar 0bytes issue, prototype fix 2024-12-18-002
Posted by Anonymous on Wed 18th Dec 2024 17:32
raw | new post

  1. diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
  2. index 86473e5..0e2f11c 100644
  3. --- a/sys/nfs41sys_openclose.c
  4. +++ b/sys/nfs41sys_openclose.c
  5. @@ -851,6 +851,20 @@ retry_on_link:
  6.  #ifdef DEBUG_OPEN
  7.          DbgP("nfs41_Create: received delegation %d\n", entry->u.Open.deleg_type);
  8.  #endif
  9. +
  10. +        /*
  11. +         * We cannot have a file cached on a write-only handle,
  12. +         * so we have to set |SRVOPEN_FLAG_DONTUSE_WRITE_CACHING|
  13. +         * in this case.
  14. +         */
  15. +        if (((params->DesiredAccess & (FILE_EXECUTE|FILE_READ_DATA)) == 0) &&
  16. +            ((params->DesiredAccess & (FILE_WRITE_DATA|FILE_APPEND_DATA)) != 0)) {
  17. +            SrvOpen->Flags |= SRVOPEN_FLAG_DONTUSE_WRITE_CACHING;
  18. +            DbgP("nfs41_Create: write-only handle for file '%wZ', "
  19. +                "setting SRVOPEN_FLAG_DONTUSE_WRITE_CACHING\n",
  20. +                SrvOpen->pAlreadyPrefixedName);
  21. +        }
  22. +
  23.          if (!(params->CreateOptions & FILE_WRITE_THROUGH) &&
  24.                  !pVNetRootContext->write_thru &&
  25.                  (entry->u.Open.deleg_type == 2 ||

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at