Lines Matching refs:op

107 	smb_arg_open_t *op = &sr->arg.open;  in smb2_create()  local
125 op->create_ctx = &cctx; /* for debugging */ in smb2_create()
150 &op->op_oplock_level, /* b */ in smb2_create()
154 &op->desired_access, /* l */ in smb2_create()
155 &op->dattr, /* l */ in smb2_create()
156 &op->share_access, /* l */ in smb2_create()
157 &op->create_disposition, /* l */ in smb2_create()
158 &op->create_options, /* l */ in smb2_create()
189 op->fqi.fq_path.pn_path = ""; in smb2_create()
192 NameLength, &op->fqi.fq_path.pn_path); in smb2_create()
197 if (op->fqi.fq_path.pn_path[0] == '\\') { in smb2_create()
202 op->fqi.fq_dnode = sr->tid_tree->t_snode; in smb2_create()
288 op->dh_vers = SMB2_NOT_DURABLE; in smb2_create()
293 op->dh_vers = SMB2_DURABLE_V2; in smb2_create()
295 op->dh_vers = SMB2_DURABLE_V1; in smb2_create()
313 op->op_oplock_level = SMB2_OPLOCK_LEVEL_LEASE; in smb2_create()
315 op->op_oplock_level = 0; in smb2_create()
338 switch (op->op_oplock_level) { in smb2_create()
363 switch (op->lease_state) { in smb2_create()
377 op->lease_state = SMB2_LEASE_NONE; in smb2_create()
392 op->op_oplock_level = SMB2_OPLOCK_LEVEL_NONE; in smb2_create()
397 op->dh_v2_flags &= ~DH_PERSISTENT; in smb2_create()
402 op->dh_vers = SMB2_DURABLE_V2; in smb2_create()
404 op->dh_vers = SMB2_DURABLE_V1; in smb2_create()
430 if ((op->create_options & FILE_DELETE_ON_CLOSE) && in smb2_create()
431 !(op->desired_access & DELETE)) { in smb2_create()
436 if (op->dattr & FILE_FLAG_WRITE_THROUGH) in smb2_create()
437 op->create_options |= FILE_WRITE_THROUGH; in smb2_create()
438 if (op->dattr & FILE_FLAG_DELETE_ON_CLOSE) in smb2_create()
439 op->create_options |= FILE_DELETE_ON_CLOSE; in smb2_create()
440 if (op->dattr & FILE_FLAG_BACKUP_SEMANTICS) in smb2_create()
441 op->create_options |= FILE_OPEN_FOR_BACKUP_INTENT; in smb2_create()
442 if (op->create_options & FILE_OPEN_FOR_BACKUP_INTENT) in smb2_create()
444 if (op->create_disposition > FILE_MAXIMUM_DISPOSITION) { in smb2_create()
466 if ((op->dh_v2_flags & DH_PERSISTENT) != 0) in smb2_create()
479 op->op_oplock_level = SMB2_OPLOCK_LEVEL_NONE; in smb2_create()
490 if (op->action_taken == SMB_OACT_CREATED) { in smb2_create()
496 if (op->op_oplock_level == SMB2_OPLOCK_LEVEL_LEASE) { in smb2_create()
498 } else if (op->op_oplock_level != SMB2_OPLOCK_LEVEL_NONE) { in smb2_create()
515 if (op->dh_vers == SMB2_DURABLE_V2) { in smb2_create()
517 op->create_guid, UUID_LEN); in smb2_create()
519 if ((op->dh_v2_flags & DH_PERSISTENT) != 0) { in smb2_create()
523 op->dh_v2_flags = 0; in smb2_create()
527 if (op->dh_vers != SMB2_NOT_DURABLE) { in smb2_create()
530 of->dh_vers = op->dh_vers; in smb2_create()
537 msto = op->dh_timeout; in smb2_create()
545 op->dh_timeout = msto; in smb2_create()
549 op->dh_vers = SMB2_NOT_DURABLE; in smb2_create()
550 op->dh_v2_flags = 0; in smb2_create()
569 if (op->create_options & FILE_DELETE_ON_CLOSE) in smb2_create()
579 op->maximum_access = 0; in smb2_create()
582 &op->maximum_access); in smb2_create()
584 op->maximum_access |= of->f_granted_access; in smb2_create()
590 op->op_fsid = SMB_NODE_FSID(of->f_node); in smb2_create()
617 op->op_oplock_level == SMB2_OPLOCK_LEVEL_LEASE) in smb2_create()
657 attr = &op->fqi.fq_fattr; in smb2_create()
662 op->op_oplock_level, /* b */ in smb2_create()
663 op->action_taken, /* l */ in smb2_create()
709 if (op->sd != NULL) { in smb2_create()
710 smb_sd_term(op->sd); in smb2_create()
711 kmem_free(op->sd, sizeof (*op->sd)); in smb2_create()
726 smb_arg_open_t *op = &sr->arg.open; in smb2_decode_create_ctx() local
883 op->sd = kmem_alloc(sizeof (smb_sd_t), KM_SLEEP); in smb2_decode_create_ctx()
884 if (smb_decode_sd(&cce->cce_mbc, op->sd) != 0) in smb2_decode_create_ctx()
889 rc = smb_mbc_decodef(&cce->cce_mbc, "q", &op->dsize); in smb2_decode_create_ctx()
918 smb_time_nt_to_unix(nttime, &op->timewarp); in smb2_decode_create_ctx()
919 op->create_timewarp = B_TRUE; in smb2_decode_create_ctx()
928 op->lease_version = 2; in smb2_decode_create_ctx()
930 op->lease_version = 1; in smb2_decode_create_ctx()
937 op->lease_key, /* c */ in smb2_decode_create_ctx()
938 &op->lease_state, /* l */ in smb2_decode_create_ctx()
939 &op->lease_flags, /* l */ in smb2_decode_create_ctx()
943 if (op->lease_version == 2) { in smb2_decode_create_ctx()
947 op->parent_lease_key, in smb2_decode_create_ctx()
948 &op->lease_epoch); in smb2_decode_create_ctx()
952 bzero(op->parent_lease_key, UUID_LEN); in smb2_decode_create_ctx()
958 &op->dh_fileid.persistent, /* q */ in smb2_decode_create_ctx()
959 &op->dh_fileid.temporal, /* q */ in smb2_decode_create_ctx()
961 op->create_guid, /* c */ in smb2_decode_create_ctx()
962 &op->dh_v2_flags); /* l */ in smb2_decode_create_ctx()
969 &op->dh_fileid.persistent, /* q */ in smb2_decode_create_ctx()
970 &op->dh_fileid.temporal); /* q */ in smb2_decode_create_ctx()
973 bzero(op->create_guid, UUID_LEN); in smb2_decode_create_ctx()
974 op->dh_v2_flags = 0; in smb2_decode_create_ctx()
980 &op->dh_timeout, /* l */ in smb2_decode_create_ctx()
981 &op->dh_v2_flags, /* l */ in smb2_decode_create_ctx()
984 op->create_guid); /* c */ in smb2_decode_create_ctx()
994 op->dh_timeout = 0; /* default */ in smb2_decode_create_ctx()
995 op->dh_v2_flags = 0; in smb2_decode_create_ctx()
1037 smb_arg_open_t *op = &sr->arg.open; in smb2_encode_create_ctx() local
1048 "ll", 0, op->maximum_access); in smb2_encode_create_ctx()
1065 op->fileid, /* q */ in smb2_encode_create_ctx()
1066 op->op_fsid.val[0], /* l */ in smb2_encode_create_ctx()
1067 op->op_fsid.val[1]); /* l */ in smb2_encode_create_ctx()
1098 op->lease_key, /* c */ in smb2_encode_create_ctx()
1099 op->lease_state, /* l */ in smb2_encode_create_ctx()
1100 op->lease_flags, /* l */ in smb2_encode_create_ctx()
1102 if (op->lease_version == 2) { in smb2_encode_create_ctx()
1107 op->parent_lease_key, in smb2_encode_create_ctx()
1108 op->lease_epoch); in smb2_encode_create_ctx()
1140 op->dh_timeout, op->dh_v2_flags); in smb2_encode_create_ctx()