pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


|RxFlushFcbInSystemCache()| patch
Posted by Anonymous on Tue 15th Oct 2024 14:31
raw | new post

  1. diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
  2. index 0018105..89c3573 100644
  3. --- a/sys/nfs41sys_openclose.c
  4. +++ b/sys/nfs41sys_openclose.c
  5. @@ -817,6 +817,14 @@ retry_on_link:
  6.       * and by opening it again, we will not have the correct representation of
  7.       * the file size and data content. fileio tests 208, 219, 221.
  8.       */
  9. +#if 1
  10. +    NTSTATUS flushstatus;
  11. +
  12. +    flushstatus = RxFlushFcbInSystemCache((PFCB)Fcb, TRUE);
  13. +    DbgP("nfs41_Create: "
  14. +        "RxFlushFcbInSystemCache() returned status=%lx\n",
  15. +        flushstatus);
  16. +#else
  17.      if (Fcb->OpenCount > 0 && (isDataAccess(params->DesiredAccess) ||
  18.              nfs41_fcb->changeattr != entry->ChangeTime) &&
  19.                  !nfs41_fcb->StandardInfo.Directory) {
  20. @@ -827,6 +835,7 @@ retry_on_link:
  21.  #endif
  22.          RxChangeBufferingState((PSRV_OPEN)SrvOpen, ULongToPtr(flag), 1);
  23.      }
  24. +#endif
  25.      if (!nfs41_fcb->StandardInfo.Directory &&
  26.              isDataAccess(params->DesiredAccess)) {
  27.          nfs41_fobx->deleg_type = entry->u.Open.deleg_type;
  28. @@ -991,6 +1000,14 @@ NTSTATUS nfs41_CloseSrvOpen(
  29.          nfs41_remove_fcb_entry(RxContext->pFcb);
  30.      }
  31.  
  32. +#if 1
  33. +    NTSTATUS flushstatus;
  34. +
  35. +    flushstatus = RxFlushFcbInSystemCache((PFCB)RxContext->pFcb, TRUE);
  36. +    DbgP("nfs41_CloseSrvOpen: "
  37. +        "RxFlushFcbInSystemCache() returned status=%lx\n",
  38. +        flushstatus);
  39. +#endif
  40.      status = nfs41_UpcallCreate(NFS41_CLOSE, &nfs41_fobx->sec_ctx,
  41.          pVNetRootContext->session, nfs41_fobx->nfs41_open_state,
  42.          pNetRootContext->nfs41d_version, SrvOpen->pAlreadyPrefixedName, &entry);

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