pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


prototype FileNetworkOpenInformation should update nfs41_fcb-Cache
Posted by Anonymous on Tue 18th Mar 2025 15:37
raw | new post

  1. diff --git a/sys/nfs41sys_fileinfo.c b/sys/nfs41sys_fileinfo.c
  2. index 4c7dceb..a403e91 100644
  3. --- a/sys/nfs41sys_fileinfo.c
  4. +++ b/sys/nfs41sys_fileinfo.c
  5. @@ -440,6 +440,7 @@ NTSTATUS nfs41_QueryFileInformation(
  6.          {
  7.              PFILE_STANDARD_INFORMATION std_info;
  8.              std_info = (PFILE_STANDARD_INFORMATION)RxContext->Info.Buffer;
  9. +#if 0
  10.              if (nfs41_fcb->StandardInfo.AllocationSize.QuadPart >
  11.                      std_info->AllocationSize.QuadPart) {
  12.  #ifdef DEBUG_FILE_QUERY
  13. @@ -458,6 +459,7 @@ NTSTATUS nfs41_QueryFileInformation(
  14.                  std_info->EndOfFile.QuadPart =
  15.                      nfs41_fcb->StandardInfo.EndOfFile.QuadPart;
  16.              }
  17. +#endif
  18.              std_info->DeletePending = nfs41_fcb->DeletePending;
  19.          }
  20.              if (nfs41_fcb->StandardInfo.DeletePending)
  21. @@ -470,6 +472,17 @@ NTSTATUS nfs41_QueryFileInformation(
  22.  #endif
  23.              break;
  24.          case FileNetworkOpenInformation:
  25. +        {
  26. +            PFILE_NETWORK_OPEN_INFORMATION fnoinfo;
  27. +            fnoinfo = (PFILE_NETWORK_OPEN_INFORMATION)RxContext->Info.Buffer;
  28. +            nfs41_fcb->BasicInfo.CreationTime.QuadPart = fnoinfo->CreationTime.QuadPart;
  29. +            nfs41_fcb->BasicInfo.LastAccessTime.QuadPart = fnoinfo->LastAccessTime.QuadPart;
  30. +            nfs41_fcb->BasicInfo.LastWriteTime.QuadPart = fnoinfo->LastWriteTime.QuadPart;
  31. +            nfs41_fcb->BasicInfo.ChangeTime.QuadPart = fnoinfo->ChangeTime.QuadPart;
  32. +            nfs41_fcb->StandardInfo.AllocationSize.QuadPart = fnoinfo->AllocationSize.QuadPart;
  33. +            nfs41_fcb->StandardInfo.EndOfFile.QuadPart = fnoinfo->EndOfFile.QuadPart;
  34. +        }
  35. +            break;
  36.          case FileRemoteProtocolInformation:
  37.          case FileIdInformation:
  38.          case FileInternalInformation:

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