/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_srv_oplock.c | 161 smb_oplock_ind_break_in_ack(smb_request_t *ack_sr, smb_ofile_t *ofile, in smb_oplock_ind_break_in_ack() argument 164 smb_server_t *sv = ofile->f_server; in smb_oplock_ind_break_in_ack() 165 smb_node_t *node = ofile->f_node; in smb_oplock_ind_break_in_ack() 178 smb_oplock_ind_break(ofile, NewLevel, in smb_oplock_ind_break_in_ack() 187 if (!smb_ofile_hold_olbrk(ofile)) { in smb_oplock_ind_break_in_ack() 214 smb_llist_post(&node->n_ofile_list, ofile, in smb_oplock_ind_break_in_ack() 222 sr->fid_ofile = ofile; in smb_oplock_ind_break_in_ack() 223 if (ofile->f_tree != NULL) { in smb_oplock_ind_break_in_ack() 224 sr->tid_tree = ofile->f_tree; in smb_oplock_ind_break_in_ack() 227 if (ofile->f_user != NULL) { in smb_oplock_ind_break_in_ack() [all …]
|
H A D | smb2_oplock.c | 41 smb_ofile_t *ofile; in smb2_oplock_break_ack() local 129 ofile = sr->fid_ofile; in smb2_oplock_break_ack() 130 og = &ofile->f_oplock; in smb2_oplock_break_ack() 131 node = ofile->f_node; in smb2_oplock_break_ack() 157 ofile->f_oplock.og_breaking = B_FALSE; in smb2_oplock_break_ack() 158 cv_broadcast(&ofile->f_oplock.og_ack_cv); in smb2_oplock_break_ack() 160 status = smb_oplock_ack_break(sr, ofile, &NewLevel); in smb2_oplock_break_ack() 162 ofile->f_oplock.og_state = NewLevel; in smb2_oplock_break_ack() 163 if (ofile->dh_persist) in smb2_oplock_break_ack() 164 smb2_dh_update_oplock(sr, ofile); in smb2_oplock_break_ack() [all …]
|
H A D | smb_oplock.c | 43 smb_ofile_t *ofile; in smb1_oplock_ack_break() local 47 ofile = sr->fid_ofile; in smb1_oplock_ack_break() 48 node = ofile->f_node; in smb1_oplock_ack_break() 58 ofile->f_oplock.og_breaking = B_FALSE; in smb1_oplock_ack_break() 59 cv_broadcast(&ofile->f_oplock.og_ack_cv); in smb1_oplock_ack_break() 61 (void) smb_oplock_ack_break(sr, ofile, &NewLevel); in smb1_oplock_ack_break() 63 ofile->f_oplock.og_state = NewLevel; in smb1_oplock_ack_break() 77 smb_ofile_t *ofile = sr->fid_ofile; in smb1_oplock_break_notification() local 99 sr->smb_tid = ofile->f_tree->t_tid; in smb1_oplock_break_notification() 103 fid = ofile->f_fid; in smb1_oplock_break_notification() [all …]
|
H A D | smb_cmn_oplock.c | 46 smb_ofile_t *ofile, /* in: the "Open" */ 51 smb_ofile_t *ofile, /* the "Open" */ 56 smb_ofile_t *ofile, uint32_t BreakCacheLevel); 315 smb_oplock_request(smb_request_t *sr, smb_ofile_t *ofile, uint32_t *statep) in smb_oplock_request() argument 317 smb_node_t *node = ofile->f_node; in smb_oplock_request() 323 status = smb_oplock_request_LH(sr, ofile, statep); in smb_oplock_request() 332 smb_oplock_request_LH(smb_request_t *sr, smb_ofile_t *ofile, uint32_t *statep) in smb_oplock_request_LH() argument 334 smb_node_t *node = ofile->f_node; in smb_oplock_request_LH() 392 status = smb_oplock_req_excl(ofile, statep); in smb_oplock_request_LH() 422 status = smb_oplock_req_shared(ofile, statep, B_FALSE); in smb_oplock_request_LH() [all …]
|
H A D | smb2_lease.c | 315 smb_ofile_t *ofile; in smb2_lease_break_ack() local 376 ofile = sr->fid_ofile; in smb2_lease_break_ack() 403 ofile->f_oplock.og_breaking = B_FALSE; in smb2_lease_break_ack() 404 cv_broadcast(&ofile->f_oplock.og_ack_cv); in smb2_lease_break_ack() 409 status = smb_oplock_ack_break(sr, ofile, &LeaseState); in smb2_lease_break_ack() 411 ofile->f_oplock.og_state = LeaseState; in smb2_lease_break_ack() 415 if (ofile->dh_persist) in smb2_lease_break_ack() 416 smb2_dh_update_oplock(sr, ofile); in smb2_lease_break_ack() 518 smb_ofile_t *ofile = sr->fid_ofile; in lease_send_any_cn() local 519 smb_lease_t *lease = ofile->f_lease; in lease_send_any_cn() [all …]
|
H A D | smb2_fsctl_sparse.c | 36 smb_ofile_t *ofile = sr->fid_ofile; in smb2_fsctl_set_sparse() local 47 if (!smb_node_is_file(ofile->f_node)) in smb2_fsctl_set_sparse() 55 if ((ofile->f_granted_access & amask) == 0) in smb2_fsctl_set_sparse() 64 status = smb_node_getattr(sr, ofile->f_node, kcr, ofile, &attr); in smb2_fsctl_set_sparse() 81 status = smb_node_setattr(sr, ofile->f_node, kcr, ofile, &attr); in smb2_fsctl_set_sparse() 94 smb_ofile_t *ofile = sr->fid_ofile; in smb2_fsctl_set_zero_data() local 112 if (!smb_node_is_file(ofile->f_node)) in smb2_fsctl_set_zero_data() 118 status = smb_ofile_access(ofile, ofile->f_cr, FILE_WRITE_DATA); in smb2_fsctl_set_zero_data() 127 status = smb_node_getattr(sr, ofile->f_node, ofile->f_cr, in smb2_fsctl_set_zero_data() 128 ofile, &attr); in smb2_fsctl_set_zero_data() [all …]
|
H A D | smb_nt_transact_quota.c | 89 smb_ofile_t *ofile; in smb_nt_transact_query_quota() local 119 ofile = sr->fid_ofile; in smb_nt_transact_query_quota() 120 if (ofile == NULL) { in smb_nt_transact_query_quota() 125 if ((ofile->f_node == NULL) || (ofile->f_ftype != SMB_FTYPE_DISK)) { in smb_nt_transact_query_quota() 153 status = smb_quota_init_sids(&xa->req_data_mb, &request, ofile); in smb_nt_transact_query_quota() 163 &request, &reply, ofile); in smb_nt_transact_query_quota() 176 smb_ofile_set_quota_resume(ofile, NULL); in smb_nt_transact_query_quota() 226 smb_ofile_t *ofile; in smb_nt_transact_set_quota() local 255 ofile = sr->fid_ofile; in smb_nt_transact_set_quota() 256 if (ofile == NULL) { in smb_nt_transact_set_quota() [all …]
|
H A D | smb_opipe.c | 303 smb_opipe_open(smb_request_t *sr, smb_ofile_t *ofile) in smb_opipe_open() argument 341 smb_ofile_open(sr, op, ofile); in smb_opipe_open() 345 opipe->p_ofile = ofile; in smb_opipe_open() 350 (void) smb_opipe_getattr(ofile, &op->fqi.fq_fattr); in smb_opipe_open() 361 sr->smb_fid = ofile->f_fid; in smb_opipe_open() 362 sr->fid_ofile = ofile; in smb_opipe_open() 407 smb_ofile_t *ofile; in smb_opipe_write() local 413 ofile = sr->fid_ofile; in smb_opipe_write() 414 ASSERT(ofile->f_ftype == SMB_FTYPE_MESG_PIPE); in smb_opipe_write() 415 opipe = ofile->f_pipe; in smb_opipe_write() [all …]
|
H A D | smb2_fsctl_odx.c | 185 smb_ofile_t *ofile = sr->fid_ofile; in smb2_fsctl_odx_read() local 209 status = smb_ofile_access(ofile, ofile->f_cr, FILE_READ_DATA); in smb2_fsctl_odx_read() 250 if (!smb_node_is_file(ofile->f_node)) in smb2_fsctl_odx_read() 252 if (SMB_IS_STREAM(ofile->f_node)) in smb2_fsctl_odx_read() 258 if (ofile->f_node->flags & NODE_FLAGS_DELETE_COMMITTED) in smb2_fsctl_odx_read() 273 status = smb_lock_range_access(sr, ofile->f_node, in smb2_fsctl_odx_read() 284 status = smb2_ofile_getattr(sr, ofile, &src_attr); in smb2_fsctl_odx_read() 317 rc = smb_fsop_next_alloc_range(ofile->f_cr, ofile->f_node, in smb2_fsctl_odx_read() 360 tn1->tn1_fid.persistent = ofile->f_persistid; in smb2_fsctl_odx_read() 361 tn1->tn1_fid.temporal = ofile->f_fid; in smb2_fsctl_odx_read() [all …]
|
H A D | smb2_qinfo_quota.c | 52 smb_ofile_t *ofile = sr->fid_ofile; in smb2_qinfo_quota() local 64 if ((ofile->f_node == NULL) || in smb2_qinfo_quota() 65 (ofile->f_ftype != SMB_FTYPE_DISK)) in smb2_qinfo_quota() 101 status = smb_quota_init_sids(&sr->smb_data, &request, ofile); in smb2_qinfo_quota() 111 &request, &reply, ofile); in smb2_qinfo_quota() 122 smb_ofile_set_quota_resume(ofile, NULL); in smb2_qinfo_quota()
|
H A D | smb_write.c | 489 smb_ofile_t *ofile = sr->fid_ofile; in smb_common_write() local 498 node = ofile->f_node; in smb_common_write() 515 rc = smb_fsop_write(sr, sr->user_cr, node, ofile, in smb_common_write() 521 (void) smb_oplock_break_WRITE(node, ofile); in smb_common_write() 529 if (ofile->f_written == B_FALSE) { in smb_common_write() 530 ofile->f_written = B_TRUE; in smb_common_write() 550 mutex_enter(&ofile->f_mutex); in smb_common_write() 551 ofile->f_seek_pos = param->rw_offset + param->rw_count; in smb_common_write() 552 mutex_exit(&ofile->f_mutex); in smb_common_write() 570 smb_ofile_t *ofile = sr->fid_ofile; in smb_write_truncate() local [all …]
|
H A D | smb2_lock.c | 353 smb2_lock_chk_lockseq(smb_ofile_t *ofile, uint32_t lockseq) in smb2_lock_chk_lockseq() argument 371 mutex_enter(&ofile->f_mutex); in smb2_lock_chk_lockseq() 373 if (ofile->f_lock_seq[lsi] == lsn) { in smb2_lock_chk_lockseq() 376 ofile->f_lock_seq[lsi] = (uint8_t)-1; /* "Empty" */ in smb2_lock_chk_lockseq() 380 mutex_exit(&ofile->f_mutex); in smb2_lock_chk_lockseq() 386 smb2_lock_set_lockseq(smb_ofile_t *ofile, uint32_t lockseq) in smb2_lock_set_lockseq() argument 405 mutex_enter(&ofile->f_mutex); in smb2_lock_set_lockseq() 407 ofile->f_lock_seq[lsi] = lsn; in smb2_lock_set_lockseq() 409 mutex_exit(&ofile->f_mutex); in smb2_lock_set_lockseq()
|
/illumos-gate/usr/src/cmd/smbsrv/testoplock/ |
H A D | tol_main.c | 166 smb_ofile_t *ofile = &ofile_array[fid]; in do_open() local 171 if (ofile->f_refcnt) { in do_open() 177 (void) strlcpy((char *)ofile->TargetOplockKey, arg2, in do_open() 181 ofile->f_refcnt++; in do_open() 183 smb_llist_insert_tail(&node->n_ofile_list, ofile); in do_open() 191 smb_ofile_t *ofile = &ofile_array[fid]; in do_close() local 196 if (ofile->f_refcnt <= 0) { in do_close() 204 smb_oplock_break_CLOSE(ofile->f_node, ofile); in do_close() 206 smb_llist_remove(&node->n_ofile_list, ofile); in do_close() 212 ofile->f_refcnt--; in do_close() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.include.ksh | 39 ofile=$2 59 echo $inc failed: `cat $errfile | head -1` > $ofile 61 echo $inc succeeded > $ofile 125 ofile=${TMPDIR:-/tmp}/inc.$file.$$.out 127 doit $file $ofile $errfile & 147 ofile=${TMPDIR:-/tmp}/inc.$file.$$.out 149 if [ -f $ofile ]; then 150 cat $ofile >> $bigofile 151 rm $ofile
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | main.c | 51 const char *prog, *ofile = NULL, *pstr = NULL; in main() local 86 ofile = optarg; in main() 119 if (ofile == NULL) in main() 120 ofile = MSG_ORIG(MSG_STR_AWRAPO); in main() 152 if (input64(argc, argv, prog, ofile, &odesc) == 1) in main() 155 if (input32(argc, argv, prog, ofile, &odesc) == 1) in main() 162 if ((fd = open(ofile, (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main() 165 ofile, strerror(err)); in main() 178 return (output64(prog, fd, ofile, mach, &odesc)); in main() 180 return (output32(prog, fd, ofile, mach, &odesc)); in main()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | dump.c | 92 FILE *ofile; member 592 fprintf(arglist->ofile, k5beta_dump_header); 720 fprintf(arg->ofile, "%d\t%d\t%d\t%d\t%d\t%d\t%s\t%d\t", strlen(name), 729 fprintf(arg->ofile, "%02x", pkey->key_data_contents[0][i]); 735 fprintf(arg->ofile, 746 fprintf(arg->ofile, "%02x", pkey->key_data_contents[1][i]); 749 fprintf(arg->ofile, "\t%u\t", akey->key_data_type[0]); 751 fprintf(arg->ofile, "%02x", akey->key_data_contents[0][i]); 754 fprintf(arg->ofile, "\t%u\t", akey->key_data_type[1]); 756 fprintf(arg->ofile, "%02x", akey->key_data_contents[1][i]); [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | debug.c | 86 const char *ofile; in dbg_setup() local 99 if (Dbg_setup(DBG_CALLER_LD, options, dbg_desc, &ofile) == 0) in dbg_setup() 106 if (ofile) { in dbg_setup() 108 if (*ofile != '\0') { in dbg_setup() 109 FILE *fptr = fopen(ofile, MSG_ORIG(MSG_DBG_FOPEN_MODE)); in dbg_setup() 114 MSG_INTL(MSG_SYS_OPEN), ofile, in dbg_setup()
|
/illumos-gate/usr/src/cmd/print/conv_fix/ |
H A D | conv_fix.c | 90 char file[80], ofile[80]; in main() local 108 (void) strlcpy(ofile, optarg, sizeof (ofile)); in main() 120 fd = open(ofile, O_RDWR|O_APPEND); in main() 122 fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644); in main()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_inherit_002_neg.ksh | 64 [[ -f $ofile ]] && log_must rm -f $ofile 84 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 213 compare_acls $node $ofile 230 compare_acls $node $ofile 282 log_must usr_exec touch $ofile 293 log_must usr_exec rm -rf $ofile $odir $basedir
|
H A D | zfs_acl_chmod_inherit_002_pos.ksh | 69 if [[ -f $ofile ]]; then 70 log_must rm -f $ofile 94 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 262 compare_acls $node $ofile 335 log_must usr_exec touch $ofile 351 log_must usr_exec rm -rf $ofile $odir $basedir
|
H A D | zfs_acl_chmod_inherit_003_pos.ksh | 64 [[ -f $ofile ]] && log_must rm -f $ofile 83 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 208 compare_acls $node $ofile 261 log_must usr_exec touch $ofile 272 log_must usr_exec rm -rf $ofile $odir $basedir
|
/illumos-gate/usr/src/grub/grub-0.97/ |
H A D | compile | 74 ofile=$2 96 if test -z "$ofile" || test -z "$cfile"; then 127 mv "$cofile" "$ofile" 129 mv "${cofile}bj" "$ofile"
|
/illumos-gate/usr/src/test/elf-tests/tests/capabilities/ |
H A D | symcap.ksh | 126 typeset ofile="$sc_tmpdir/$i.o" 161 if ! gcc -m64 -o $ofile -c $in; then 162 fatal "failed to create object file $ofile" 171 tolink="$tolink $ofile" 175 if ! ld -r -o $obj $ofile -M$map -Breduce; then
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer1.c | 115 sprintf(ofile, "/tmp/rj%db", getpid()); in main() 116 ftemp = fopen(ofile, "w"); in main() 161 recopy(ofile); in main() 194 if (ofile[0]) in cleanup() 195 unlink(ofile); in cleanup()
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | webrev.sh | 3083 ofile=old/$PF 3085 ofile=old/$PDIR/$PF 3094 cmp $ofile $nfile > /dev/null 2>&1 3117 if [ ! -f "$ofile" ]; then 3121 diff -u $ofile /dev/null | sh -c "$cleanse_rmfile" \ 3124 diff -u $ofile $nfile > $WDIR/$DIR/$F.patch 3127 diff -u $ofile /dev/null | sh -c "$cleanse_rmfile" \ 3141 if [[ -f $ofile && -f $nfile && -z $mv_but_nodiff ]]; then 3142 ${CDIFFCMD:-diff -bt -C 5} $ofile $nfile > $WDIR/$DIR/$F.cdiff 3147 ${UDIFFCMD:-diff -bt -U 5} $ofile $nfile > $WDIR/$DIR/$F.udiff [all …]
|