- diff --git a/sys/nfs41sys_fileinfo.c b/sys/nfs41sys_fileinfo.c
- index 4c7dceb..a403e91 100644
- --- a/sys/nfs41sys_fileinfo.c
- +++ b/sys/nfs41sys_fileinfo.c
- @@ -440,6 +440,7 @@ NTSTATUS nfs41_QueryFileInformation(
- {
- PFILE_STANDARD_INFORMATION std_info;
- std_info = (PFILE_STANDARD_INFORMATION)RxContext->Info.Buffer;
- +#if 0
- if (nfs41_fcb->StandardInfo.AllocationSize.QuadPart >
- std_info->AllocationSize.QuadPart) {
- #ifdef DEBUG_FILE_QUERY
- @@ -458,6 +459,7 @@ NTSTATUS nfs41_QueryFileInformation(
- std_info->EndOfFile.QuadPart =
- nfs41_fcb->StandardInfo.EndOfFile.QuadPart;
- }
- +#endif
- std_info->DeletePending = nfs41_fcb->DeletePending;
- }
- if (nfs41_fcb->StandardInfo.DeletePending)
- @@ -470,6 +472,17 @@ NTSTATUS nfs41_QueryFileInformation(
- #endif
- break;
- case FileNetworkOpenInformation:
- + {
- + PFILE_NETWORK_OPEN_INFORMATION fnoinfo;
- + fnoinfo = (PFILE_NETWORK_OPEN_INFORMATION)RxContext->Info.Buffer;
- + nfs41_fcb->BasicInfo.CreationTime.QuadPart = fnoinfo->CreationTime.QuadPart;
- + nfs41_fcb->BasicInfo.LastAccessTime.QuadPart = fnoinfo->LastAccessTime.QuadPart;
- + nfs41_fcb->BasicInfo.LastWriteTime.QuadPart = fnoinfo->LastWriteTime.QuadPart;
- + nfs41_fcb->BasicInfo.ChangeTime.QuadPart = fnoinfo->ChangeTime.QuadPart;
- + nfs41_fcb->StandardInfo.AllocationSize.QuadPart = fnoinfo->AllocationSize.QuadPart;
- + nfs41_fcb->StandardInfo.EndOfFile.QuadPart = fnoinfo->EndOfFile.QuadPart;
- + }
- + break;
- case FileRemoteProtocolInformation:
- case FileIdInformation:
- case FileInternalInformation:
prototype FileNetworkOpenInformation should update nfs41_fcb-Cache
Posted by Anonymous on Tue 18th Mar 2025 15:37
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.