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_nt_create_andx.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_nt_create_andx.c
↓ open down ↓ 204 lines elided ↑ open up ↑
 205  205          }
 206  206  
 207  207          op->op_oplock_level = SMB_OPLOCK_NONE;
 208  208          if (op->nt_flags & NT_CREATE_FLAG_REQUEST_OPLOCK) {
 209  209                  if (op->nt_flags & NT_CREATE_FLAG_REQUEST_OPBATCH)
 210  210                          op->op_oplock_level = SMB_OPLOCK_BATCH;
 211  211                  else
 212  212                          op->op_oplock_level = SMB_OPLOCK_EXCLUSIVE;
 213  213          }
 214  214  
 215      -        DTRACE_SMB_2(op__NtCreateX__start, smb_request_t *, sr,
 216      -            struct open_param *, op);
      215 +        DTRACE_SMB_1(op__NtCreateX__start, smb_request_t *, sr); /* arg.open */
 217  216  
 218  217          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 219  218  }
 220  219  
 221  220  void
 222  221  smb_post_nt_create_andx(smb_request_t *sr)
 223  222  {
 224  223          DTRACE_SMB_1(op__NtCreateX__done, smb_request_t *, sr);
 225  224  
 226  225          if (sr->arg.open.dir != NULL) {
↓ open down ↓ 175 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX