- diff --git a/sys/nfs41sys_fileinfo.c b/sys/nfs41sys_fileinfo.c
- index d7dc5e7..4f2acbe 100644
- --- a/sys/nfs41sys_fileinfo.c
- +++ b/sys/nfs41sys_fileinfo.c
- @@ -668,6 +668,10 @@ NTSTATUS nfs41_SetFileInformation(
- PFILE_DISPOSITION_INFORMATION dinfo =
- (PFILE_DISPOSITION_INFORMATION)RxContext->Info.Buffer;
- if (dinfo->DeleteFile) {
- +#if 1
- + nfs41_fcb->DeletePending = TRUE;
- + nfs41_fcb->StandardInfo.DeletePending = TRUE;
- +#else
- nfs41_fcb->DeletePending = TRUE;
- // we can delete directories right away
- if (nfs41_fcb->StandardInfo.Directory)
- @@ -682,6 +686,7 @@ NTSTATUS nfs41_SetFileInformation(
- nfs41_fcb->Renamed = TRUE;
- break;
- }
- +#endif
- } else {
- /* section 4.3.3 of [FSBO]
- * "file system behavior in the microsoft windows environment"
- diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
- index 9a4431f..d10a999 100644
- --- a/sys/nfs41sys_openclose.c
- +++ b/sys/nfs41sys_openclose.c
- @@ -957,12 +957,26 @@ retry_on_link:
- if (Fcb->OpenCount > 0 && (isDataAccess(params->DesiredAccess) ||
- nfs41_fcb->changeattr != entry->ChangeTime) &&
- !nfs41_fcb->StandardInfo.Directory) {
- +#if 0
- ULONG flag = DISABLE_CACHING;
- +#endif
- #ifdef DEBUG_OPEN
- DbgP("nfs41_Create: reopening (changed) file '%wZ'\n",
- SrvOpen->pAlreadyPrefixedName);
- #endif
- +#if 0
- RxChangeBufferingState((PSRV_OPEN)SrvOpen, ULongToPtr(flag), 1);
- +#else
- +#pragma warning( push )
- +/*
- + * C4127: "conditional expression is constant"
- + */
- +#pragma warning (disable : 4127)
- + /* Wait for lazywriter */
- + RxAcquirePagingIoResource(NULL, Fcb);
- + RxReleasePagingIoResource(NULL, Fcb);
- +#pragma warning( pop )
- +#endif
- }
- if (!nfs41_fcb->StandardInfo.Directory &&
delete_waitforlazywriter_experiment20250806_001.diff
Posted by Anonymous on Wed 6th Aug 2025 12:12
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.