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_create.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_create.c
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40  
  41   41          bzero(op, sizeof (sr->arg.open));
  42   42  
  43   43          rc = smbsr_decode_vwv(sr, "wl", &op->dattr, &op->mtime.tv_sec);
  44   44          if (rc == 0)
  45   45                  rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
  46   46  
  47   47          op->create_disposition = FILE_OVERWRITE_IF;
  48   48          op->create_options = FILE_NON_DIRECTORY_FILE;
  49   49  
  50      -        DTRACE_SMB_2(op__Create__start, smb_request_t *, sr,
  51      -            struct open_param *, op);
       50 +        DTRACE_SMB_1(op__Create__start, smb_request_t *, sr); /* arg.open */
  52   51  
  53   52          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  54   53  }
  55   54  
  56   55  void
  57   56  smb_post_create(smb_request_t *sr)
  58   57  {
  59   58          DTRACE_SMB_1(op__Create__done, smb_request_t *, sr);
  60   59  }
  61   60  
↓ open down ↓ 20 lines elided ↑ open up ↑
  82   81          int rc;
  83   82  
  84   83          bzero(op, sizeof (sr->arg.open));
  85   84  
  86   85          rc = smbsr_decode_vwv(sr, "wl", &op->dattr, &op->mtime.tv_sec);
  87   86          if (rc == 0)
  88   87                  rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
  89   88  
  90   89          op->create_disposition = FILE_CREATE;
  91   90  
  92      -        DTRACE_SMB_2(op__CreateNew__start, smb_request_t *, sr,
  93      -            struct open_param *, op);
       91 +        DTRACE_SMB_1(op__CreateNew__start, smb_request_t *, sr); /* arg.open */
  94   92  
  95   93          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
  96   94  }
  97   95  
  98   96  void
  99   97  smb_post_create_new(smb_request_t *sr)
 100   98  {
 101   99          DTRACE_SMB_1(op__CreateNew__done, smb_request_t *, sr);
 102  100  }
 103  101  
↓ open down ↓ 21 lines elided ↑ open up ↑
 125  123          int rc;
 126  124  
 127  125          bzero(op, sizeof (sr->arg.open));
 128  126  
 129  127          rc = smbsr_decode_vwv(sr, "wl", &reserved, &op->mtime.tv_sec);
 130  128          if (rc == 0)
 131  129                  rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
 132  130  
 133  131          op->create_disposition = FILE_CREATE;
 134  132  
 135      -        DTRACE_SMB_2(op__CreateTemporary__start, smb_request_t *, sr,
 136      -            struct open_param *, op);
      133 +        DTRACE_SMB_1(op__CreateTemporary__start, smb_request_t *, sr); /* arg.open */
 137  134  
 138  135          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 139  136  }
 140  137  
 141  138  void
 142  139  smb_post_create_temporary(smb_request_t *sr)
 143  140  {
 144  141          DTRACE_SMB_1(op__CreateTemporary__done, smb_request_t *, sr);
 145  142  }
 146  143  
↓ open down ↓ 69 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX