- diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
- index 0018105..89c3573 100644
- --- a/sys/nfs41sys_openclose.c
- +++ b/sys/nfs41sys_openclose.c
- @@ -817,6 +817,14 @@ retry_on_link:
- * and by opening it again, we will not have the correct representation of
- * the file size and data content. fileio tests 208, 219, 221.
- */
- +#if 1
- + NTSTATUS flushstatus;
- +
- + flushstatus = RxFlushFcbInSystemCache((PFCB)Fcb, TRUE);
- + DbgP("nfs41_Create: "
- + "RxFlushFcbInSystemCache() returned status=%lx\n",
- + flushstatus);
- +#else
- if (Fcb->OpenCount > 0 && (isDataAccess(params->DesiredAccess) ||
- nfs41_fcb->changeattr != entry->ChangeTime) &&
- !nfs41_fcb->StandardInfo.Directory) {
- @@ -827,6 +835,7 @@ retry_on_link:
- #endif
- RxChangeBufferingState((PSRV_OPEN)SrvOpen, ULongToPtr(flag), 1);
- }
- +#endif
- if (!nfs41_fcb->StandardInfo.Directory &&
- isDataAccess(params->DesiredAccess)) {
- nfs41_fobx->deleg_type = entry->u.Open.deleg_type;
- @@ -991,6 +1000,14 @@ NTSTATUS nfs41_CloseSrvOpen(
- nfs41_remove_fcb_entry(RxContext->pFcb);
- }
- +#if 1
- + NTSTATUS flushstatus;
- +
- + flushstatus = RxFlushFcbInSystemCache((PFCB)RxContext->pFcb, TRUE);
- + DbgP("nfs41_CloseSrvOpen: "
- + "RxFlushFcbInSystemCache() returned status=%lx\n",
- + flushstatus);
- +#endif
- status = nfs41_UpcallCreate(NFS41_CLOSE, &nfs41_fobx->sec_ctx,
- pVNetRootContext->session, nfs41_fobx->nfs41_open_state,
- pNetRootContext->nfs41d_version, SrvOpen->pAlreadyPrefixedName, &entry);
|RxFlushFcbInSystemCache()| patch
Posted by Anonymous on Tue 15th Oct 2024 14:31
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.