Lines Matching refs:op

173 	struct open_param *op = &sr->arg.open;  in smb_pre_nt_create_andx()  local
179 bzero(op, sizeof (sr->arg.open)); in smb_pre_nt_create_andx()
183 &op->nt_flags, in smb_pre_nt_create_andx()
184 &op->rootdirfid, in smb_pre_nt_create_andx()
185 &op->desired_access, in smb_pre_nt_create_andx()
186 &op->dsize, in smb_pre_nt_create_andx()
187 &op->dattr, in smb_pre_nt_create_andx()
188 &op->share_access, in smb_pre_nt_create_andx()
189 &op->create_disposition, in smb_pre_nt_create_andx()
190 &op->create_options, in smb_pre_nt_create_andx()
196 op->fqi.fq_path.pn_path = "\\"; in smb_pre_nt_create_andx()
203 &op->fqi.fq_path.pn_path); in smb_pre_nt_create_andx()
207 op->op_oplock_level = SMB_OPLOCK_NONE; in smb_pre_nt_create_andx()
208 if (op->nt_flags & NT_CREATE_FLAG_REQUEST_OPLOCK) { in smb_pre_nt_create_andx()
209 if (op->nt_flags & NT_CREATE_FLAG_REQUEST_OPBATCH) in smb_pre_nt_create_andx()
210 op->op_oplock_level = SMB_OPLOCK_BATCH; in smb_pre_nt_create_andx()
212 op->op_oplock_level = SMB_OPLOCK_EXCLUSIVE; in smb_pre_nt_create_andx()
237 struct open_param *op = &sr->arg.open; in smb_com_nt_create_andx() local
238 smb_attr_t *ap = &op->fqi.fq_fattr; in smb_com_nt_create_andx()
244 if (op->create_options & ~SMB_NTCREATE_VALID_OPTIONS) { in smb_com_nt_create_andx()
250 if (op->create_options & FILE_OPEN_BY_FILE_ID) { in smb_com_nt_create_andx()
256 if ((op->create_options & FILE_DELETE_ON_CLOSE) && in smb_com_nt_create_andx()
257 !(op->desired_access & DELETE)) { in smb_com_nt_create_andx()
263 if (op->create_disposition > FILE_MAXIMUM_DISPOSITION) { in smb_com_nt_create_andx()
269 if (op->dattr & FILE_FLAG_WRITE_THROUGH) in smb_com_nt_create_andx()
270 op->create_options |= FILE_WRITE_THROUGH; in smb_com_nt_create_andx()
272 if (op->dattr & FILE_FLAG_DELETE_ON_CLOSE) in smb_com_nt_create_andx()
273 op->create_options |= FILE_DELETE_ON_CLOSE; in smb_com_nt_create_andx()
275 if (op->dattr & FILE_FLAG_BACKUP_SEMANTICS) in smb_com_nt_create_andx()
276 op->create_options |= FILE_OPEN_FOR_BACKUP_INTENT; in smb_com_nt_create_andx()
278 if (op->create_options & FILE_OPEN_FOR_BACKUP_INTENT) in smb_com_nt_create_andx()
281 if (op->rootdirfid == 0) { in smb_com_nt_create_andx()
282 op->fqi.fq_dnode = sr->tid_tree->t_snode; in smb_com_nt_create_andx()
284 op->dir = smb_ofile_lookup_by_fid(sr, (uint16_t)op->rootdirfid); in smb_com_nt_create_andx()
285 if (op->dir == NULL) { in smb_com_nt_create_andx()
290 op->fqi.fq_dnode = op->dir->f_node; in smb_com_nt_create_andx()
298 if (op->op_oplock_level != SMB_OPLOCK_NONE) { in smb_com_nt_create_andx()
313 if (op->create_options & FILE_DELETE_ON_CLOSE) in smb_com_nt_create_andx()
328 if ((op->nt_flags & NT_CREATE_FLAG_EXTENDED_RESPONSE) != 0 && in smb_com_nt_create_andx()
364 op->op_oplock_level, /* (b) */ in smb_com_nt_create_andx()
366 op->action_taken, /* (l) */ in smb_com_nt_create_andx()
371 op->dattr & FILE_ATTRIBUTE_MASK, /* (l) */ in smb_com_nt_create_andx()
374 op->ftype, /* (w) */ in smb_com_nt_create_andx()
375 op->devstate, /* (w) */ in smb_com_nt_create_andx()
388 op->op_oplock_level, /* (b) */ in smb_com_nt_create_andx()
390 op->action_taken, /* (l) */ in smb_com_nt_create_andx()
395 op->dattr & FILE_ATTRIBUTE_MASK, /* (l) */ in smb_com_nt_create_andx()
398 op->ftype, /* (w) */ in smb_com_nt_create_andx()
399 op->devstate, /* (w) */ in smb_com_nt_create_andx()