Print this page
Build provider 3rd arg from smb_request_t
hacking...
*** 45,56 ****
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_OVERWRITE_IF;
op->create_options = FILE_NON_DIRECTORY_FILE;
! DTRACE_SMB_2(op__Create__start, smb_request_t *, sr,
! struct open_param *, op);
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void
--- 45,55 ----
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_OVERWRITE_IF;
op->create_options = FILE_NON_DIRECTORY_FILE;
! DTRACE_SMB_1(op__Create__start, smb_request_t *, sr); /* arg.open */
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void
*** 87,98 ****
if (rc == 0)
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_CREATE;
! DTRACE_SMB_2(op__CreateNew__start, smb_request_t *, sr,
! struct open_param *, op);
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void
--- 86,96 ----
if (rc == 0)
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_CREATE;
! DTRACE_SMB_1(op__CreateNew__start, smb_request_t *, sr); /* arg.open */
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void
*** 130,141 ****
if (rc == 0)
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_CREATE;
! DTRACE_SMB_2(op__CreateTemporary__start, smb_request_t *, sr,
! struct open_param *, op);
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void
--- 128,138 ----
if (rc == 0)
rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
op->create_disposition = FILE_CREATE;
! DTRACE_SMB_1(op__CreateTemporary__start, smb_request_t *, sr); /* arg.open */
return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
}
void