Lines Matching defs:file
4 * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29 * requests for a file by applying lock rules and marks file range
124 * Checks for integrity of file lock operation for the given range of file data.
132 * with existing range lock for the file. Otherwise smb request is filed
146 smb_ofile_t *file = sr->fid_ofile;
147 smb_node_t *node = file->f_node;
161 result = smb_lock_range_lckrules(sr, file, node, lock, &clock);
220 * If the last lock attempt to fail on this file handle
224 mutex_enter(&file->f_mutex);
225 if ((file->f_flags & SMB_OFLAGS_LLF_POS_VALID) &&
226 (lock->l_start == file->f_llf_pos)) {
229 mutex_exit(&file->f_mutex);
233 mutex_enter(&file->f_mutex);
234 file->f_llf_pos = lock->l_start;
235 file->f_flags |= SMB_OFLAGS_LLF_POS_VALID;
236 mutex_exit(&file->f_mutex);
308 smb_node_destroy_lock_by_ofile(smb_node_t *node, smb_ofile_t *file)
318 * Move locks matching the specified file from the node->n_lock_list
332 if (lock->l_file == file) {
334 smb_lock_posix_unlock(node, lock, file->f_user->u_cred);
528 smb_ofile_t *file,
536 /* Check if file is closed */
537 if (!smb_ofile_is_open(file)) {