Print this page
Build provider 3rd arg from smb_request_t
hacking...

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbsrv/smb_directory.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_directory.c
↓ open down ↓ 51 lines elided ↑ open up ↑
  52   52   * USHORT ByteCount;                  Count of data bytes = 0
  53   53   */
  54   54  smb_sdrc_t
  55   55  smb_pre_create_directory(smb_request_t *sr)
  56   56  {
  57   57          int rc;
  58   58  
  59   59          rc = smbsr_decode_data(sr, "%S", sr,
  60   60              &sr->arg.dirop.fqi.fq_path.pn_path);
  61   61  
  62      -        DTRACE_SMB_2(op__CreateDirectory__start, smb_request_t *, sr,
  63      -            struct dirop *, &sr->arg.dirop);
       62 +        DTRACE_SMB_1(op__CreateDirectory__start, smb_request_t *, sr); /* arg.dirop */
  64   63  
  65   64          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  66   65  }
  67   66  
  68   67  void
  69   68  smb_post_create_directory(smb_request_t *sr)
  70   69  {
  71   70          DTRACE_SMB_1(op__CreateDirectory__done, smb_request_t *, sr);
  72   71  }
  73   72  
↓ open down ↓ 125 lines elided ↑ open up ↑
 199  198   * USHORT ByteCount;                  Count of data bytes = 0
 200  199   */
 201  200  smb_sdrc_t
 202  201  smb_pre_delete_directory(smb_request_t *sr)
 203  202  {
 204  203          int rc;
 205  204  
 206  205          rc = smbsr_decode_data(sr, "%S", sr,
 207  206              &sr->arg.dirop.fqi.fq_path.pn_path);
 208  207  
 209      -        DTRACE_SMB_2(op__DeleteDirectory__start, smb_request_t *, sr,
 210      -            struct dirop *, &sr->arg.dirop);
      208 +        DTRACE_SMB_1(op__DeleteDirectory__start, smb_request_t *, sr); /* arg.dirop */
 211  209  
 212  210          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 213  211  }
 214  212  
 215  213  void
 216  214  smb_post_delete_directory(smb_request_t *sr)
 217  215  {
 218  216          DTRACE_SMB_1(op__DeleteDirectory__done, smb_request_t *, sr);
 219  217  }
 220  218  
↓ open down ↓ 133 lines elided ↑ open up ↑
 354  352   * not found.
 355  353   */
 356  354  smb_sdrc_t
 357  355  smb_pre_check_directory(smb_request_t *sr)
 358  356  {
 359  357          int rc;
 360  358  
 361  359          rc = smbsr_decode_data(sr, "%S", sr,
 362  360              &sr->arg.dirop.fqi.fq_path.pn_path);
 363  361  
 364      -        DTRACE_SMB_2(op__CheckDirectory__start, smb_request_t *, sr,
 365      -            struct dirop *, &sr->arg.dirop);
      362 +        DTRACE_SMB_1(op__CheckDirectory__start, smb_request_t *, sr); /* arg.dirop */
 366  363  
 367  364          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 368  365  }
 369  366  
 370  367  void
 371  368  smb_post_check_directory(smb_request_t *sr)
 372  369  {
 373  370          DTRACE_SMB_1(op__CheckDirectory__done, smb_request_t *, sr);
 374  371  }
 375  372  
↓ open down ↓ 79 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX