/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_srv_oplock.c | 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() 227 if (ofile->f_user != NULL) { in smb_oplock_ind_break_in_ack() 231 if (ofile->f_lease != NULL) in smb_oplock_ind_break_in_ack() 357 sr->fid_ofile = ofile; in smb_oplock_ind_break() 358 if (ofile->f_tree != NULL) { in smb_oplock_ind_break() 362 if (ofile->f_user != NULL) { in smb_oplock_ind_break() 366 if (ofile->f_lease != NULL) in smb_oplock_ind_break() 457 if (ofile->f_lease != NULL) in smb_oplock_send_break() 575 if (ofile->dh_persist) { in smb_oplock_hdl_update() [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() 163 if (ofile->dh_persist) in smb2_oplock_break_ack() 164 smb2_dh_update_oplock(sr, ofile); in smb2_oplock_break_ack() 259 smb2fid.temporal = ofile->f_fid; in smb2_oplock_break_notification() 339 smb_ofile_close(ofile, 0); in smb2_oplock_send_break() 387 if (ofile->dh_persist) in smb2_oplock_send_break() 494 if (ofile->dh_persist) { in smb2_oplock_acquire() [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() 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() 139 smb_ofile_t *ofile = sr->fid_ofile; in smb1_oplock_send_break() local 140 smb_node_t *node = ofile->f_node; in smb1_oplock_send_break() 177 smb_ofile_close(ofile, 0); in smb1_oplock_send_break() [all …]
|
H A D | smb_cmn_oplock.c | 575 if (ofile->f_oplock_closing) in smb_oplock_req_excl() 664 if (o == ofile) in smb_oplock_req_excl() 1490 smb_ofile_t *ofile, in smb_oplock_ack_break() argument 1618 sr, ofile, in smb_oplock_ack_break() 1727 sr, ofile, in smb_oplock_ack_break() 1767 sr, ofile, in smb_oplock_ack_break() 1799 sr, ofile, in smb_oplock_ack_break() 1952 sr, ofile, in smb_oplock_ack_break() 1984 sr, ofile, in smb_oplock_ack_break() 2040 sr, ofile, in smb_oplock_ack_break() [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() 415 if (ofile->dh_persist) in smb2_lease_break_ack() 520 smb_node_t *node = ofile->f_node; in lease_send_any_cn() 718 old_ofile = ofile; in smb2_lease_send_break() 729 ofile = sr->fid_ofile; in smb2_lease_send_break() 744 if (ofile->dh_persist) in smb2_lease_send_break() 966 lease->ls_oplock_ofile = ofile; in smb2_lease_acquire() 972 if (ofile->dh_persist) { in smb2_lease_acquire() 1051 if (o == ofile) in smb2_lease_ofile_close() [all …]
|
H A D | smb2_fsctl_sparse.c | 36 smb_ofile_t *ofile = sr->fid_ofile; in smb2_fsctl_set_sparse() local 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() 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() 149 rc = smb_fsop_freesp(sr, ofile->f_cr, ofile, in smb2_fsctl_set_zero_data() 200 status = smb_ofile_access(ofile, ofile->f_cr, FILE_READ_DATA); in smb2_fsctl_query_alloc_ranges() 215 status = smb_node_getattr(sr, ofile->f_node, kcr, ofile, &attr); in smb2_fsctl_query_alloc_ranges() 494 status = smb_ofile_access(ofile, ofile->f_cr, FILE_READ_DATA); in smb2_fsctl_query_file_regions() [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 | 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() 415 opipe = ofile->f_pipe; in smb_opipe_write() 457 smb_ofile_t *ofile; in smb_opipe_read() local 463 ofile = sr->fid_ofile; in smb_opipe_read() 465 opipe = ofile->f_pipe; in smb_opipe_read() 545 smb_ofile_t *ofile; in smb_opipe_ioctl() local 550 ofile = sr->fid_ofile; in smb_opipe_ioctl() 552 opipe = ofile->f_pipe; in smb_opipe_ioctl() [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() 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() 390 smb_ofile_t *ofile = sr->fid_ofile; in smb2_fsctl_odx_write() local 406 status = smb_ofile_access(ofile, ofile->f_cr, FILE_WRITE_DATA); in smb2_fsctl_odx_write() 459 if (!smb_node_is_file(ofile->f_node)) in smb2_fsctl_odx_write() [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() 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() 552 mutex_exit(&ofile->f_mutex); in smb_common_write() 570 smb_ofile_t *ofile = sr->fid_ofile; in smb_write_truncate() local 571 smb_node_t *node = ofile->f_node; in smb_write_truncate() 599 mutex_enter(&ofile->f_mutex); in smb_write_truncate() [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 | 171 if (ofile->f_refcnt) { in do_open() 181 ofile->f_refcnt++; in do_open() 196 if (ofile->f_refcnt <= 0) { in do_close() 204 smb_oplock_break_CLOSE(ofile->f_node, ofile); in do_close() 212 ofile->f_refcnt--; in do_close() 261 ofile->f_oplock.og_breaking = 0; in do_ack() 278 run_ind_break_in_ack(ofile); in do_ack() 325 status = smb_oplock_break_READ(ofile->f_node, ofile); in do_brk_read() 336 status = smb_oplock_break_WRITE(ofile->f_node, ofile); in do_brk_write() 352 &test_node, ofile, infoclass); in do_brk_setinfo() [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 737 fprintf(arg->ofile, 1071 fprintf(arg->ofile, 1295 fputc('\t', arg->ofile); in dump_ov_princ() 1351 char *ofile; local 1372 ofile = (char *) NULL; 1430 ofile = argv[aindex]; 1495 if (ofile && strcmp(ofile, "-")) { 1499 if (ofile[0] == '-') 1511 unlink(ofile); [all …]
|
/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/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/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 3124 diff -u $ofile $nfile > $WDIR/$DIR/$F.patch 3176 elif [[ -f $ofile ]]; then 3196 $MANDOC -Tascii $ofile | $COL -b > $ofile.man.txt 3197 ${CDIFFCMD:-diff -bt -C 5} $ofile.man.txt \ 3211 $ofile.man.txt $nfile.man.txt > \ 3224 rm -f $ofile.man.txt $nfile.man.txt [all …]
|