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_open_andx.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_open_andx.c
↓ open down ↓ 219 lines elided ↑ open up ↑
 220  220  {
 221  221          struct open_param *op = &sr->arg.open;
 222  222          int rc;
 223  223  
 224  224          bzero(op, sizeof (sr->arg.open));
 225  225  
 226  226          rc = smbsr_decode_vwv(sr, "ww", &op->omode, &op->fqi.fq_sattr);
 227  227          if (rc == 0)
 228  228                  rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
 229  229  
 230      -        DTRACE_SMB_2(op__Open__start, smb_request_t *, sr,
 231      -            struct open_param *, op);
      230 +        DTRACE_SMB_1(op__Open__start, smb_request_t *, sr); /* arg.open */
 232  231  
 233  232          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 234  233  }
 235  234  
 236  235  void
 237  236  smb_post_open(smb_request_t *sr)
 238  237  {
 239  238          DTRACE_SMB_1(op__Open__done, smb_request_t *, sr);
 240  239  }
 241  240  
↓ open down ↓ 118 lines elided ↑ open up ↑
 360  359                          op->nt_flags |= NT_CREATE_FLAG_EXTENDED_RESPONSE;
 361  360  
 362  361                  if ((creation_time != 0) && (creation_time != UINT_MAX))
 363  362                          op->crtime.tv_sec =
 364  363                              smb_time_local_to_gmt(sr, creation_time);
 365  364                  op->crtime.tv_nsec = 0;
 366  365  
 367  366                  op->create_disposition = smb_ofun_to_crdisposition(op->ofun);
 368  367          }
 369  368  
 370      -        DTRACE_SMB_2(op__OpenX__start, smb_request_t *, sr,
 371      -            struct open_param *, op);
      369 +        DTRACE_SMB_1(op__OpenX__start, smb_request_t *, sr); /* arg.open */
 372  370  
 373  371          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 374  372  }
 375  373  
 376  374  void
 377  375  smb_post_open_andx(smb_request_t *sr)
 378  376  {
 379  377          DTRACE_SMB_1(op__OpenX__done, smb_request_t *, sr);
 380  378  }
 381  379  
↓ open down ↓ 219 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX