pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


QoCFileStatInformation+QoCFileLxInformation wrappers
Posted by Anonymous on Tue 9th Dec 2025 21:01
raw | new post

  1. $ git diff
  2. diff --git a/sys/nfs41sys_openclose.c b/sys/nfs41sys_openclose.c
  3. index 27ea22f..2506053 100644
  4. --- a/sys/nfs41sys_openclose.c
  5. +++ b/sys/nfs41sys_openclose.c
  6. @@ -675,6 +675,15 @@ out:
  7.      return status;
  8.  }
  9.  
  10. +static
  11. +void qocec_file_stat_information()
  12. +{
  13. +}
  14. +
  15. +static
  16. +void qocec_file_stat_lx_information(QUERY_ON_CREATE_FILE_LX_INFORMATION *restrict )
  17. +{
  18. +}
  19.  
  20.  NTSTATUS nfs41_Create(
  21.      IN OUT PRX_CONTEXT RxContext)
  22. @@ -1269,6 +1278,25 @@ retry_on_link:
  23.              !pVNetRootContext->read_only)
  24.          nfs41_fcb->StandardInfo.DeletePending = TRUE;
  25.  
  26. +    if (qocec) {
  27. +        if (qocec->RequestedClasses & QoCFileStatInformation) {
  28. +            qocec_file_stat_information(&qocec->StatInformation
  29. +                &nfs41_fcb->BasicInfo, &nfs41_fcb->StandardInfo);
  30. +
  31. +            qocec->ClassesProcessed |= QoCFileStatInformation;
  32. +        }                                                                                                                                                                                                                                                
  33. +                                                                                                                                                                                                                                                        
  34. +        if (qocec->RequestedClasses & QoCFileLxInformation) {                                                                                                                                                                                            
  35. +            qocec_file_stat_lx_information(&qocec->LxInformation,                                                                                                                                                                                        
  36. +                &nfs41_fcb->BasicInfo, &nfs41_fcb->StandardInfo);                                                                                                                                                                                        
  37. +                                                                                                                                                                                                                                                        
  38. +            qocec->ClassesProcessed |= QoCFileLxInformation;                                                                                                                                                                                            
  39. +        }                                                                                                                                                                                                                                                
  40. +                                                                                                                                                                                                                                                        
  41. +        qocec->ClassesWithErrors = 0;                                                                                                                                                                                                                    
  42. +        qocec->ClassesWithNoData = 0;                                                                                                                                                                                                                    
  43. +    }                                                                                                                                                                                                                                                    
  44. +                                                                                                                                                                                                                                                        
  45.      RxContext->Create.ReturnedCreateInformation =                                                                                                                                                                                                        
  46.          map_disposition_to_create_retval(params->Disposition, entry->errno);                                                                                                                                                                            
  47.                                                                                                                                                                                                                                                          
  48. @@ -1454,7 +1482,27 @@ NTSTATUS nfs41_CollapseOpen(                                                                                                                                                                                                      
  49.      if (status)                                                                                                                                                                                                                                          
  50.          goto out;                                                                                                                                                                                                                                        
  51.                                                                                                                                                                                                                                                          
  52. +    if (qocec) {                                                                                                                                                                                                                                        
  53. +        if (qocec->RequestedClasses & QoCFileStatInformation) {                                                                                                                                                                                          
  54. +            qocec_file_stat_information(&qocec->StatInformation                                                                                                                                                                                          
  55. +                &nfs41_fcb->BasicInfo, &nfs41_fcb->StandardInfo);                                                                                                                                                                                        
  56. +                                                                                                                                                                                                                                                        
  57. +            qocec->ClassesProcessed |= QoCFileStatInformation;                                                                                                                                                                                          
  58. +        }                                                                                                                                                                                                                                                
  59. +                                                                                                                                                                                                                                                        
  60. +        if (qocec->RequestedClasses & QoCFileLxInformation) {                                                                                                                                                                                            
  61. +            qocec_file_stat_lx_information(&qocec->LxInformation,                                                                                                                                                                                        
  62. +                &nfs41_fcb->BasicInfo, &nfs41_fcb->StandardInfo);
  63. +
  64. +            qocec->ClassesProcessed |= QoCFileLxInformation;
  65. +        }
  66. +
  67. +        qocec->ClassesWithErrors = 0;
  68. +        qocec->ClassesWithNoData = 0;
  69. +    }
  70. +
  71.      RxContext->pFobx->OffsetOfNextEaToReturn = 1; /* FIXME: Why ? */
  72. +
  73.      status = STATUS_SUCCESS;

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