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_print.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_print.c
↓ open down ↓ 70 lines elided ↑ open up ↑
  71   71  
  72   72          if (rc == 0) {
  73   73                  path = smb_srm_zalloc(sr, MAXPATHLEN);
  74   74                  op->fqi.fq_path.pn_path = path;
  75   75                  new_id = atomic_inc_32_nv(&tmp_id);
  76   76                  (void) snprintf(path, MAXPATHLEN, "%s%05u", identifier, new_id);
  77   77          }
  78   78  
  79   79          op->create_disposition = FILE_OVERWRITE_IF;
  80   80          op->create_options = FILE_NON_DIRECTORY_FILE;
  81      -        DTRACE_SMB_2(op__OpenPrintFile__start, smb_request_t *, sr,
  82      -            struct open_param *, op);
       81 +        DTRACE_SMB_1(op__OpenPrintFile__start, smb_request_t *, sr); /* arg.open */
  83   82  
  84   83          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  85   84  }
  86   85  
  87   86  void
  88   87  smb_post_open_print_file(smb_request_t *sr)
  89   88  {
  90   89          DTRACE_SMB_1(op__OpenPrintFile__done, smb_request_t *, sr);
  91   90  }
  92   91  
↓ open down ↓ 229 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX