Lines Matching defs:sr
81 smb_pre_seek(smb_request_t *sr)
83 DTRACE_SMB_1(op__Seek__start, smb_request_t *, sr);
88 smb_post_seek(smb_request_t *sr)
90 DTRACE_SMB_1(op__Seek__done, smb_request_t *, sr);
94 smb_com_seek(smb_request_t *sr)
101 if (smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &mode, &off) != 0)
104 smbsr_lookup_file(sr);
105 if (sr->fid_ofile == NULL) {
106 smbsr_error(sr, NT_STATUS_INVALID_HANDLE, ERRDOS, ERRbadfid);
110 sr->user_cr = smb_ofile_getcred(sr->fid_ofile);
112 if ((rc = smb_ofile_seek(sr->fid_ofile, mode, off, &off_ret)) != 0) {
114 smbsr_error(sr, 0, ERRDOS, ERRbadfunc);
117 smbsr_error(sr, 0, ERRSRV, ERRerror);
122 if (smbsr_encode_result(sr, 2, 0, "blw", 2, off_ret, 0))