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_rename.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_rename.c
↓ open down ↓ 64 lines elided ↑ open up ↑
  65   65          smb_fqi_t *dst_fqi = &sr->arg.dirop.dst_fqi;
  66   66          int rc;
  67   67  
  68   68          if ((rc = smbsr_decode_vwv(sr, "w", &src_fqi->fq_sattr)) == 0) {
  69   69                  rc = smbsr_decode_data(sr, "%SS", sr, &src_fqi->fq_path.pn_path,
  70   70                      &dst_fqi->fq_path.pn_path);
  71   71  
  72   72                  dst_fqi->fq_sattr = 0;
  73   73          }
  74   74  
  75      -        DTRACE_SMB_2(op__Rename__start, smb_request_t *, sr,
  76      -            struct dirop *, &sr->arg.dirop);
       75 +        DTRACE_SMB_1(op__Rename__start, smb_request_t *, sr); /* arg.dirop */
  77   76  
  78   77          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  79   78  }
  80   79  
  81   80  void
  82   81  smb_post_rename(smb_request_t *sr)
  83   82  {
  84   83          DTRACE_SMB_1(op__Rename__done, smb_request_t *, sr);
  85   84  }
  86   85  
↓ open down ↓ 52 lines elided ↑ open up ↑
 139  138  
 140  139          rc = smbsr_decode_vwv(sr, "wwl", &src_fqi->fq_sattr,
 141  140              &sr->arg.dirop.info_level, &clusters);
 142  141          if (rc == 0) {
 143  142                  rc = smbsr_decode_data(sr, "%SS", sr,
 144  143                      &src_fqi->fq_path.pn_path, &dst_fqi->fq_path.pn_path);
 145  144  
 146  145                  dst_fqi->fq_sattr = 0;
 147  146          }
 148  147  
 149      -        DTRACE_SMB_2(op__NtRename__start, smb_request_t *, sr,
 150      -            struct dirop *, &sr->arg.dirop);
      148 +        DTRACE_SMB_1(op__NtRename__start, smb_request_t *, sr); /* arg.dirop */
 151  149  
 152  150          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 153  151  }
 154  152  
 155  153  void
 156  154  smb_post_nt_rename(smb_request_t *sr)
 157  155  {
 158  156          DTRACE_SMB_1(op__NtRename__done, smb_request_t *, sr);
 159  157  }
 160  158  
↓ open down ↓ 74 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX