fsp                52 examples/VFS/shadow_copy_test.c static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
fsp                73 examples/VFS/skel_opaque.c static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
fsp                75 examples/VFS/skel_opaque.c 	return vfswrap_get_shadow_copy_data(NULL, fsp, shadow_copy_data, labels);
fsp               125 examples/VFS/skel_opaque.c static int skel_open(vfs_handle_struct *handle,  const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               130 examples/VFS/skel_opaque.c static int skel_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               132 examples/VFS/skel_opaque.c 	return vfswrap_close(NULL, fsp);
fsp               135 examples/VFS/skel_opaque.c static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
fsp               137 examples/VFS/skel_opaque.c 	return vfswrap_read(NULL, fsp, data, n);
fsp               140 examples/VFS/skel_opaque.c static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n, SMB_OFF_T offset)
fsp               142 examples/VFS/skel_opaque.c 	return vfswrap_pread(NULL, fsp, data, n, offset);
fsp               145 examples/VFS/skel_opaque.c static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
fsp               147 examples/VFS/skel_opaque.c 	return vfswrap_write(NULL, fsp, data, n);
fsp               150 examples/VFS/skel_opaque.c ssize_t skel_pwrite(vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
fsp               152 examples/VFS/skel_opaque.c 	return vfswrap_pwrite(NULL, fsp, data, n, offset);
fsp               155 examples/VFS/skel_opaque.c static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T offset, int whence)
fsp               157 examples/VFS/skel_opaque.c 	return vfswrap_lseek(NULL, fsp, offset, whence);
fsp               176 examples/VFS/skel_opaque.c static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp)
fsp               178 examples/VFS/skel_opaque.c 	return vfswrap_fsync(NULL, fsp);
fsp               186 examples/VFS/skel_opaque.c static int skel_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
fsp               188 examples/VFS/skel_opaque.c 	return vfswrap_fstat(NULL, fsp, sbuf);
fsp               206 examples/VFS/skel_opaque.c static int skel_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               208 examples/VFS/skel_opaque.c 	return vfswrap_fchmod(NULL, fsp, mode);
fsp               216 examples/VFS/skel_opaque.c static int skel_fchown(vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid)
fsp               218 examples/VFS/skel_opaque.c 	return vfswrap_fchown(NULL, fsp, uid, gid);
fsp               241 examples/VFS/skel_opaque.c static int skel_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T offset)
fsp               243 examples/VFS/skel_opaque.c 	return vfswrap_ftruncate(NULL, fsp, offset);
fsp               246 examples/VFS/skel_opaque.c static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
fsp               248 examples/VFS/skel_opaque.c 	return vfswrap_lock(NULL, fsp, op, offset, count, type);
fsp               251 examples/VFS/skel_opaque.c static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
fsp               253 examples/VFS/skel_opaque.c 	return vfswrap_getlock(NULL, fsp, poffset, pcount, ptype, ppid);
fsp               305 examples/VFS/skel_opaque.c static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               319 examples/VFS/skel_opaque.c static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               332 examples/VFS/skel_opaque.c static int skel_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               368 examples/VFS/skel_opaque.c static SMB_ACL_T skel_sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               434 examples/VFS/skel_opaque.c static int skel_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_T theacl)
fsp               483 examples/VFS/skel_opaque.c static ssize_t skel_fgetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name, void *value, size_t size)
fsp               501 examples/VFS/skel_opaque.c static ssize_t skel_flistxattr(vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size)
fsp               519 examples/VFS/skel_opaque.c static int skel_fremovexattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name)
fsp               537 examples/VFS/skel_opaque.c static int skel_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name, const void *value, size_t size, int flags)
fsp               543 examples/VFS/skel_opaque.c static int skel_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               545 examples/VFS/skel_opaque.c 	return vfswrap_aio_read(NULL, fsp, aiocb);
fsp               548 examples/VFS/skel_opaque.c static int skel_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               550 examples/VFS/skel_opaque.c 	return vfswrap_aio_write(NULL, fsp, aiocb);
fsp               553 examples/VFS/skel_opaque.c static ssize_t skel_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               555 examples/VFS/skel_opaque.c 	return vfswrap_aio_return(NULL, fsp, aiocb);
fsp               558 examples/VFS/skel_opaque.c static int skel_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               560 examples/VFS/skel_opaque.c 	return vfswrap_aio_cancel(NULL, fsp, aiocb);
fsp               563 examples/VFS/skel_opaque.c static int skel_aio_error(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               565 examples/VFS/skel_opaque.c 	return vfswrap_aio_error(NULL, fsp, aiocb);
fsp               568 examples/VFS/skel_opaque.c static int skel_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb)
fsp               570 examples/VFS/skel_opaque.c 	return vfswrap_aio_fsync(NULL, fsp, op, aiocb);
fsp               573 examples/VFS/skel_opaque.c static int skel_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts)
fsp               575 examples/VFS/skel_opaque.c 	return vfswrap_aio_suspend(NULL, fsp, aiocb, n, ts);
fsp               578 examples/VFS/skel_opaque.c static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp)
fsp               580 examples/VFS/skel_opaque.c 	return vfswrap_aio_force(NULL, fsp);
fsp                67 examples/VFS/skel_transparent.c static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
fsp                69 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data, labels);
fsp               119 examples/VFS/skel_transparent.c static int skel_open(vfs_handle_struct *handle,  const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               121 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               124 examples/VFS/skel_transparent.c static int skel_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               126 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp               129 examples/VFS/skel_transparent.c static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
fsp               131 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_READ(handle, fsp, data, n);
fsp               134 examples/VFS/skel_transparent.c static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n, SMB_OFF_T offset)
fsp               136 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
fsp               139 examples/VFS/skel_transparent.c static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
fsp               141 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
fsp               144 examples/VFS/skel_transparent.c static ssize_t skel_pwrite(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
fsp               146 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
fsp               149 examples/VFS/skel_transparent.c static SMB_OFF_T skel_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T offset, int whence)
fsp               151 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence);
fsp               169 examples/VFS/skel_transparent.c static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp)
fsp               171 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FSYNC(handle, fsp);
fsp               179 examples/VFS/skel_transparent.c static int skel_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
fsp               181 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp               199 examples/VFS/skel_transparent.c static int skel_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               201 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
fsp               209 examples/VFS/skel_transparent.c static int skel_fchown(vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid)
fsp               211 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FCHOWN(handle, fsp, uid, gid);
fsp               234 examples/VFS/skel_transparent.c static int skel_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T offset)
fsp               236 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
fsp               239 examples/VFS/skel_transparent.c static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
fsp               241 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
fsp               244 examples/VFS/skel_transparent.c static bool skel_getlock(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
fsp               246 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid);
fsp               294 examples/VFS/skel_transparent.c static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               297 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, ppdesc);
fsp               306 examples/VFS/skel_transparent.c static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               309 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
fsp               322 examples/VFS/skel_transparent.c static int skel_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               329 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode);
fsp               357 examples/VFS/skel_transparent.c static SMB_ACL_T skel_sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               359 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp);
fsp               412 examples/VFS/skel_transparent.c static int skel_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_T theacl)
fsp               414 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl);
fsp               453 examples/VFS/skel_transparent.c static ssize_t skel_fgetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name, void *value, size_t size)
fsp               455 examples/VFS/skel_transparent.c         return SMB_VFS_NEXT_FGETXATTR(handle, fsp, name, value, size);
fsp               468 examples/VFS/skel_transparent.c static ssize_t skel_flistxattr(vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size)
fsp               470 examples/VFS/skel_transparent.c         return SMB_VFS_NEXT_FLISTXATTR(handle, fsp, list, size);
fsp               483 examples/VFS/skel_transparent.c static int skel_fremovexattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name)
fsp               485 examples/VFS/skel_transparent.c         return SMB_VFS_NEXT_FREMOVEXATTR(handle, fsp, name);
fsp               498 examples/VFS/skel_transparent.c static int skel_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *name, const void *value, size_t size, int flags)
fsp               500 examples/VFS/skel_transparent.c         return SMB_VFS_NEXT_FSETXATTR(handle, fsp, name, value, size, flags);
fsp               503 examples/VFS/skel_transparent.c static int skel_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               505 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_READ(handle, fsp, aiocb);
fsp               508 examples/VFS/skel_transparent.c static int skel_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               510 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_WRITE(handle, fsp, aiocb);
fsp               513 examples/VFS/skel_transparent.c static ssize_t skel_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               515 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_RETURN(handle, fsp, aiocb);
fsp               518 examples/VFS/skel_transparent.c static int skel_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               520 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_CANCEL(handle, fsp, aiocb);
fsp               523 examples/VFS/skel_transparent.c static int skel_aio_error(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               525 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_ERROR(handle, fsp, aiocb);
fsp               528 examples/VFS/skel_transparent.c static int skel_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb)
fsp               530 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_FSYNC(handle, fsp, op, aiocb);
fsp               533 examples/VFS/skel_transparent.c static int skel_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts)
fsp               535 examples/VFS/skel_transparent.c 	return SMB_VFS_NEXT_AIO_SUSPEND(handle, fsp, aiocb, n, ts);
fsp               538 examples/VFS/skel_transparent.c static bool skel_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp)
fsp               540 examples/VFS/skel_transparent.c         return SMB_VFS_NEXT_AIO_FORCE(handle, fsp);
fsp                56 source3/include/locking.h 	struct files_struct *fsp;
fsp                86 source3/include/locking.h 	struct files_struct *fsp;
fsp                46 source3/include/oplock_onefs.h void onefs_set_oplock_callback(uint64 id, files_struct *fsp);
fsp               827 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               830 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               836 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               839 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               845 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               848 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               854 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               857 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               863 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               866 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               872 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               875 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               881 source3/include/proto.h SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp);
fsp               884 source3/include/proto.h int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp              3336 source3/include/proto.h NTSTATUS brl_lock_failed(files_struct *fsp, const struct lock_struct *lock, bool blocking_lock);
fsp              3397 source3/include/proto.h 					files_struct *fsp);
fsp              3399 source3/include/proto.h 					files_struct *fsp);
fsp              3406 source3/include/proto.h void init_strict_lock_struct(files_struct *fsp,
fsp              3412 source3/include/proto.h bool strict_lock_default(files_struct *fsp,
fsp              3414 source3/include/proto.h void strict_unlock_default(files_struct *fsp,
fsp              3416 source3/include/proto.h NTSTATUS query_lock(files_struct *fsp,
fsp              3423 source3/include/proto.h 			files_struct *fsp,
fsp              3434 source3/include/proto.h 			files_struct *fsp,
fsp              3439 source3/include/proto.h NTSTATUS do_lock_cancel(files_struct *fsp,
fsp              3446 source3/include/proto.h 			files_struct *fsp);
fsp              3470 source3/include/proto.h void set_share_mode(struct share_mode_lock *lck, files_struct *fsp,
fsp              3475 source3/include/proto.h bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp);
fsp              3477 source3/include/proto.h bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp);
fsp              3478 source3/include/proto.h bool downgrade_share_oplock(struct share_mode_lock *lck, files_struct *fsp);
fsp              3479 source3/include/proto.h NTSTATUS can_set_delete_on_close(files_struct *fsp, bool delete_on_close,
fsp              3483 source3/include/proto.h bool set_delete_on_close(files_struct *fsp, bool delete_on_close, const UNIX_USER_TOKEN *tok);
fsp              3492 source3/include/proto.h bool is_posix_locked(files_struct *fsp,
fsp              3499 source3/include/proto.h void reduce_windows_lock_ref_count(files_struct *fsp, unsigned int dcount);
fsp              3500 source3/include/proto.h int fd_close_posix(struct files_struct *fsp);
fsp              3501 source3/include/proto.h bool set_posix_lock_windows_flavour(files_struct *fsp,
fsp              3509 source3/include/proto.h bool release_posix_lock_windows_flavour(files_struct *fsp,
fsp              3516 source3/include/proto.h bool set_posix_lock_posix_flavour(files_struct *fsp,
fsp              3521 source3/include/proto.h bool release_posix_lock_posix_flavour(files_struct *fsp,
fsp              3532 source3/include/proto.h ssize_t vfswrap_flistxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size);
fsp              4356 source3/include/proto.h enum brl_flavour lp_posix_cifsu_locktype(files_struct *fsp);
fsp              4894 source3/include/proto.h 			uint16_t current_vuid, files_struct *fsp,
fsp              4896 source3/include/proto.h void print_fsp_end(files_struct *fsp, enum file_close_type close_type);
fsp              5906 source3/include/proto.h bool fsp_is_np(struct files_struct *fsp);
fsp              6132 source3/include/proto.h 			     files_struct *fsp, SMB_OFF_T startpos,
fsp              6136 source3/include/proto.h 			      files_struct *fsp, char *data,
fsp              6139 source3/include/proto.h int wait_for_aio_completion(files_struct *fsp);
fsp              6140 source3/include/proto.h void cancel_aio_by_fsp(files_struct *fsp);
fsp              6148 source3/include/proto.h 		files_struct *fsp,
fsp              6157 source3/include/proto.h void cancel_pending_lock_requests_by_fid(files_struct *fsp, struct byte_range_lock *br_lck);
fsp              6160 source3/include/proto.h struct blocking_lock_record *blocking_lock_cancel(files_struct *fsp,
fsp              6191 source3/include/proto.h void set_close_write_time(struct files_struct *fsp, struct timespec ts);
fsp              6192 source3/include/proto.h NTSTATUS close_file(struct smb_request *req, files_struct *fsp,
fsp              6327 source3/include/proto.h bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec mtime);
fsp              6328 source3/include/proto.h bool update_write_time(struct files_struct *fsp);
fsp              6356 source3/include/proto.h NTSTATUS close_fake_file(struct smb_request *req, files_struct *fsp);
fsp              6370 source3/include/proto.h ssize_t read_file(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n);
fsp              6371 source3/include/proto.h void trigger_write_time_update(struct files_struct *fsp);
fsp              6372 source3/include/proto.h void trigger_write_time_update_immediate(struct files_struct *fsp);
fsp              6374 source3/include/proto.h 			files_struct *fsp,
fsp              6378 source3/include/proto.h void delete_write_cache(files_struct *fsp);
fsp              6379 source3/include/proto.h void set_filelen_write_cache(files_struct *fsp, SMB_OFF_T file_size);
fsp              6380 source3/include/proto.h ssize_t flush_write_cache(files_struct *fsp, enum flush_reason_enum reason);
fsp              6381 source3/include/proto.h NTSTATUS sync_file(connection_struct *conn, files_struct *fsp, bool write_through);
fsp              6382 source3/include/proto.h int fsp_stat(files_struct *fsp, SMB_STRUCT_STAT *pst);
fsp              6408 source3/include/proto.h 	struct files_struct *(*fn)(struct files_struct *fsp,
fsp              6419 source3/include/proto.h void file_free(struct smb_request *req, files_struct *fsp);
fsp              6531 source3/include/proto.h NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
fsp              6536 source3/include/proto.h 				struct files_struct *fsp);
fsp              6538 source3/include/proto.h void remove_pending_change_notify_requests_by_fid(files_struct *fsp,
fsp              6578 source3/include/proto.h int vfs_get_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid, SMB_NTQUOTA_STRUCT *qt);
fsp              6579 source3/include/proto.h int vfs_set_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid, SMB_NTQUOTA_STRUCT *qt);
fsp              6580 source3/include/proto.h int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list);
fsp              6602 source3/include/proto.h NTSTATUS fd_close(files_struct *fsp);
fsp              6605 source3/include/proto.h 				 files_struct *fsp);
fsp              6639 source3/include/proto.h NTSTATUS close_file_fchmod(struct smb_request *req, files_struct *fsp);
fsp              6677 source3/include/proto.h void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp);
fsp              6678 source3/include/proto.h bool set_file_oplock(files_struct *fsp, int oplock_type);
fsp              6679 source3/include/proto.h void release_file_oplock(files_struct *fsp);
fsp              6680 source3/include/proto.h bool remove_oplock(files_struct *fsp);
fsp              6681 source3/include/proto.h bool downgrade_oplock(files_struct *fsp);
fsp              6683 source3/include/proto.h void break_level2_to_none_async(files_struct *fsp);
fsp              6684 source3/include/proto.h void reply_to_oplock_break_requests(files_struct *fsp);
fsp              6690 source3/include/proto.h void contend_level2_oplocks_begin(files_struct *fsp,
fsp              6692 source3/include/proto.h void contend_level2_oplocks_end(files_struct *fsp,
fsp              6749 source3/include/proto.h NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, uint32_t security_info,
fsp              6754 source3/include/proto.h NTSTATUS append_parent_acl(files_struct *fsp,
fsp              6757 source3/include/proto.h NTSTATUS set_nt_acl(files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd);
fsp              6762 source3/include/proto.h int fchmod_acl(files_struct *fsp, mode_t mode);
fsp              6765 source3/include/proto.h bool set_unix_posix_acl(connection_struct *conn, files_struct *fsp, const char *fname, uint16 num_acls, const char *pdata);
fsp              6853 source3/include/proto.h 		    files_struct *fsp);
fsp              6855 source3/include/proto.h 	       files_struct *fsp);
fsp              6857 source3/include/proto.h 			      files_struct *fsp);
fsp              6859 source3/include/proto.h 		      files_struct *fsp);
fsp              6908 source3/include/proto.h 			files_struct *fsp,
fsp              7053 source3/include/proto.h 		      files_struct *fsp, const char *fname,
fsp              7056 source3/include/proto.h 				files_struct *fsp, const char *fname,
fsp              7058 source3/include/proto.h NTSTATUS set_ea(connection_struct *conn, files_struct *fsp, const char *fname, struct ea_list *ea_list);
fsp              7073 source3/include/proto.h 			   files_struct *fsp,
fsp              7116 source3/include/proto.h 				   files_struct *fsp, size_t ext_size,
fsp              7118 source3/include/proto.h void vfs_remove_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
fsp              7119 source3/include/proto.h void *vfs_memctx_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
fsp              7120 source3/include/proto.h void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, files_struct *fsp);
fsp              7125 source3/include/proto.h ssize_t vfs_read_data(files_struct *fsp, char *buf, size_t byte_count);
fsp              7126 source3/include/proto.h ssize_t vfs_pread_data(files_struct *fsp, char *buf,
fsp              7129 source3/include/proto.h 			files_struct *fsp,
fsp              7133 source3/include/proto.h 			files_struct *fsp,
fsp              7137 source3/include/proto.h int vfs_allocate_file_space(files_struct *fsp, uint64_t len);
fsp              7138 source3/include/proto.h int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len);
fsp              7139 source3/include/proto.h int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len);
fsp              1733 source3/include/smb.h 			   files_struct *fsp, int oplock_type);
fsp              1735 source3/include/smb.h 			       files_struct *fsp, int oplock_type);
fsp              1736 source3/include/smb.h 	void (*contend_level2_oplocks_begin)(files_struct *fsp,
fsp              1738 source3/include/smb.h 	void (*contend_level2_oplocks_end)(files_struct *fsp,
fsp                50 source3/include/smb_macros.h #define FSP_BELONGS_CONN(fsp,conn) do {\
fsp                51 source3/include/smb_macros.h 			if (!((fsp) && (conn) && ((conn)==(fsp)->conn) && (current_user.vuid==(fsp)->vuid))) \
fsp                55 source3/include/smb_macros.h #define CHECK_READ(fsp,req) (((fsp)->fh->fd != -1) && ((fsp)->can_read || \
fsp                57 source3/include/smb_macros.h 			 (fsp->access_mask & FILE_EXECUTE))))
fsp                59 source3/include/smb_macros.h #define CHECK_WRITE(fsp) ((fsp)->can_write && ((fsp)->fh->fd != -1))
fsp               310 source3/include/vfs.h 		int (*get_shadow_copy_data)(struct vfs_handle_struct *handle, struct files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels);
fsp               330 source3/include/vfs.h 		int (*open)(struct vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode);
fsp               348 source3/include/vfs.h 		int (*close_fn)(struct vfs_handle_struct *handle, struct files_struct *fsp);
fsp               349 source3/include/vfs.h 		ssize_t (*vfs_read)(struct vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n);
fsp               350 source3/include/vfs.h 		ssize_t (*pread)(struct vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n, SMB_OFF_T offset);
fsp               351 source3/include/vfs.h 		ssize_t (*write)(struct vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n);
fsp               352 source3/include/vfs.h 		ssize_t (*pwrite)(struct vfs_handle_struct *handle, struct files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset);
fsp               353 source3/include/vfs.h 		SMB_OFF_T (*lseek)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_OFF_T offset, int whence);
fsp               357 source3/include/vfs.h 		int (*fsync)(struct vfs_handle_struct *handle, struct files_struct *fsp);
fsp               359 source3/include/vfs.h 		int (*fstat)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_STAT *sbuf);
fsp               361 source3/include/vfs.h 		uint64_t (*get_alloc_size)(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_STAT *sbuf);
fsp               364 source3/include/vfs.h 		int (*fchmod)(struct vfs_handle_struct *handle, struct files_struct *fsp, mode_t mode);
fsp               366 source3/include/vfs.h 		int (*fchown)(struct vfs_handle_struct *handle, struct files_struct *fsp, uid_t uid, gid_t gid);
fsp               371 source3/include/vfs.h 		int (*ftruncate)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_OFF_T offset);
fsp               372 source3/include/vfs.h 		bool (*lock)(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
fsp               373 source3/include/vfs.h 		int (*kernel_flock)(struct vfs_handle_struct *handle, struct files_struct *fsp, uint32 share_mode);
fsp               374 source3/include/vfs.h 		int (*linux_setlease)(struct vfs_handle_struct *handle, struct files_struct *fsp, int leasetype);
fsp               375 source3/include/vfs.h 		bool (*getlock)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid);
fsp               393 source3/include/vfs.h 				       struct files_struct *fsp,
fsp               422 source3/include/vfs.h 					struct files_struct *fsp,
fsp               426 source3/include/vfs.h 					struct files_struct *fsp,
fsp               432 source3/include/vfs.h 					struct files_struct *fsp,
fsp               440 source3/include/vfs.h 					struct files_struct *fsp,
fsp               447 source3/include/vfs.h 		int (*fchmod_acl)(struct vfs_handle_struct *handle, struct files_struct *fsp, mode_t mode);
fsp               454 source3/include/vfs.h 		SMB_ACL_T (*sys_acl_get_fd)(struct vfs_handle_struct *handle, struct files_struct *fsp);
fsp               465 source3/include/vfs.h 		int (*sys_acl_set_fd)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_ACL_T theacl);
fsp               475 source3/include/vfs.h 		ssize_t (*fgetxattr)(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name, void *value, size_t size);
fsp               478 source3/include/vfs.h 		ssize_t (*flistxattr)(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size);
fsp               481 source3/include/vfs.h 		int (*fremovexattr)(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name);
fsp               484 source3/include/vfs.h 		int (*fsetxattr)(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name, const void *value, size_t size, int flags);
fsp               487 source3/include/vfs.h 		int (*aio_read)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               488 source3/include/vfs.h 		int (*aio_write)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               489 source3/include/vfs.h 		ssize_t (*aio_return_fn)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               490 source3/include/vfs.h 		int (*aio_cancel)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               491 source3/include/vfs.h 		int (*aio_error_fn)(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               492 source3/include/vfs.h 		int (*aio_fsync)(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb);
fsp               493 source3/include/vfs.h 		int (*aio_suspend)(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *timeout);
fsp               494 source3/include/vfs.h 		bool (*aio_force)(struct vfs_handle_struct *handle, struct files_struct *fsp);
fsp               727 source3/include/vfs.h #define VFS_ADD_FSP_EXTENSION(handle, fsp, type, destroy_fn)		\
fsp               728 source3/include/vfs.h     vfs_add_fsp_extension_notype(handle, (fsp), sizeof(type), (destroy_fn))
fsp               731 source3/include/vfs.h #define VFS_FETCH_FSP_EXTENSION(handle, fsp) \
fsp               732 source3/include/vfs.h     vfs_fetch_fsp_extension(handle, (fsp))
fsp               735 source3/include/vfs.h #define VFS_MEMCTX_FSP_EXTENSION(handle, fsp) \
fsp               736 source3/include/vfs.h     vfs_memctx_fsp_extension(handle, (fsp))
fsp               739 source3/include/vfs.h #define VFS_REMOVE_FSP_EXTENSION(handle, fsp) \
fsp               740 source3/include/vfs.h     vfs_remove_fsp_extension((handle), (fsp))
fsp                35 source3/include/vfs_macros.h #define SMB_VFS_GET_SHADOW_COPY_DATA(fsp,shadow_copy_data,labels) ((fsp)->conn->vfs.ops.get_shadow_copy_data((fsp)->conn->vfs.handles.get_shadow_copy_data,(fsp),(shadow_copy_data),(labels)))
fsp                51 source3/include/vfs_macros.h #define SMB_VFS_OPEN(conn, fname, fsp, flags, mode) (((conn)->vfs.ops.open)((conn)->vfs.handles.open, (fname), (fsp), (flags), (mode)))
fsp                53 source3/include/vfs_macros.h #define SMB_VFS_CLOSE(fsp) ((fsp)->conn->vfs.ops.close_fn((fsp)->conn->vfs.handles.close_hnd, (fsp)))
fsp                54 source3/include/vfs_macros.h #define SMB_VFS_READ(fsp, data, n) ((fsp)->conn->vfs.ops.vfs_read((fsp)->conn->vfs.handles.vfs_read, (fsp), (data), (n)))
fsp                55 source3/include/vfs_macros.h #define SMB_VFS_PREAD(fsp, data, n, off) ((fsp)->conn->vfs.ops.pread((fsp)->conn->vfs.handles.pread, (fsp), (data), (n), (off)))
fsp                56 source3/include/vfs_macros.h #define SMB_VFS_WRITE(fsp, data, n) ((fsp)->conn->vfs.ops.write((fsp)->conn->vfs.handles.write, (fsp), (data), (n)))
fsp                57 source3/include/vfs_macros.h #define SMB_VFS_PWRITE(fsp, data, n, off) ((fsp)->conn->vfs.ops.pwrite((fsp)->conn->vfs.handles.pwrite, (fsp), (data), (n), (off)))
fsp                58 source3/include/vfs_macros.h #define SMB_VFS_LSEEK(fsp, offset, whence) ((fsp)->conn->vfs.ops.lseek((fsp)->conn->vfs.handles.lseek, (fsp), (offset), (whence)))
fsp                62 source3/include/vfs_macros.h #define SMB_VFS_FSYNC(fsp) ((fsp)->conn->vfs.ops.fsync((fsp)->conn->vfs.handles.fsync, (fsp)))
fsp                64 source3/include/vfs_macros.h #define SMB_VFS_FSTAT(fsp, sbuf) ((fsp)->conn->vfs.ops.fstat((fsp)->conn->vfs.handles.fstat, (fsp), (sbuf)))
fsp                66 source3/include/vfs_macros.h #define SMB_VFS_GET_ALLOC_SIZE(conn, fsp, sbuf) ((conn)->vfs.ops.get_alloc_size((conn)->vfs.handles.get_alloc_size, (fsp), (sbuf)))
fsp                69 source3/include/vfs_macros.h #define SMB_VFS_FCHMOD(fsp, mode) ((fsp)->conn->vfs.ops.fchmod((fsp)->conn->vfs.handles.fchmod, (fsp), (mode)))
fsp                71 source3/include/vfs_macros.h #define SMB_VFS_FCHOWN(fsp, uid, gid) ((fsp)->conn->vfs.ops.fchown((fsp)->conn->vfs.handles.fchown, (fsp), (uid), (gid)))
fsp                76 source3/include/vfs_macros.h #define SMB_VFS_FTRUNCATE(fsp, offset) ((fsp)->conn->vfs.ops.ftruncate((fsp)->conn->vfs.handles.ftruncate, (fsp), (offset)))
fsp                77 source3/include/vfs_macros.h #define SMB_VFS_LOCK(fsp, op, offset, count, type) ((fsp)->conn->vfs.ops.lock((fsp)->conn->vfs.handles.lock, (fsp), (op), (offset), (count), (type)))
fsp                78 source3/include/vfs_macros.h #define SMB_VFS_KERNEL_FLOCK(fsp, share_mode) ((fsp)->conn->vfs.ops.kernel_flock((fsp)->conn->vfs.handles.kernel_flock, (fsp), (share_mode)))
fsp                79 source3/include/vfs_macros.h #define SMB_VFS_LINUX_SETLEASE(fsp, leasetype) ((fsp)->conn->vfs.ops.linux_setlease((fsp)->conn->vfs.handles.linux_setlease, (fsp), (leasetype)))
fsp                80 source3/include/vfs_macros.h #define SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, ppid) ((fsp)->conn->vfs.ops.getlock((fsp)->conn->vfs.handles.getlock, (fsp), (poffset), (pcount), (ptype), (ppid)))
fsp                89 source3/include/vfs_macros.h #define SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams) ((conn)->vfs.ops.streaminfo((conn)->vfs.handles.streaminfo, (fsp), (fname), (mem_ctx), (num_streams), (streams)))
fsp                94 source3/include/vfs_macros.h #define SMB_VFS_STRICT_LOCK(conn, fsp, plock) ((conn)->vfs.ops.strict_lock((conn)->vfs.handles.strict_lock, (fsp), (plock)))
fsp                95 source3/include/vfs_macros.h #define SMB_VFS_STRICT_UNLOCK(conn, fsp, plock) ((conn)->vfs.ops.strict_unlock((conn)->vfs.handles.strict_unlock, (fsp), (plock)))
fsp                98 source3/include/vfs_macros.h #define SMB_VFS_FGET_NT_ACL(fsp, security_info, ppdesc) ((fsp)->conn->vfs.ops.fget_nt_acl((fsp)->conn->vfs.handles.fget_nt_acl, (fsp), (security_info), (ppdesc)))
fsp               100 source3/include/vfs_macros.h #define SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd) ((fsp)->conn->vfs.ops.fset_nt_acl((fsp)->conn->vfs.handles.fset_nt_acl, (fsp), (security_info_sent), (psd)))
fsp               104 source3/include/vfs_macros.h #define SMB_VFS_FCHMOD_ACL(fsp, mode) ((fsp)->conn->vfs.ops.fchmod_acl((fsp)->conn->vfs.handles.fchmod_acl, (fsp), (mode)))
fsp               111 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_FD(fsp) ((fsp)->conn->vfs.ops.sys_acl_get_fd((fsp)->conn->vfs.handles.sys_acl_get_fd, (fsp)))
fsp               122 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_FD(fsp, theacl) ((fsp)->conn->vfs.ops.sys_acl_set_fd((fsp)->conn->vfs.handles.sys_acl_set_fd, (fsp), (theacl)))
fsp               132 source3/include/vfs_macros.h #define SMB_VFS_FGETXATTR(fsp,name,value,size) ((fsp)->conn->vfs.ops.fgetxattr((fsp)->conn->vfs.handles.fgetxattr,(fsp),(name),(value),(size)))
fsp               135 source3/include/vfs_macros.h #define SMB_VFS_FLISTXATTR(fsp,list,size) ((fsp)->conn->vfs.ops.flistxattr((fsp)->conn->vfs.handles.flistxattr,(fsp),(list),(size)))
fsp               138 source3/include/vfs_macros.h #define SMB_VFS_FREMOVEXATTR(fsp,name) ((fsp)->conn->vfs.ops.fremovexattr((fsp)->conn->vfs.handles.fremovexattr,(fsp),(name)))
fsp               141 source3/include/vfs_macros.h #define SMB_VFS_FSETXATTR(fsp,name,value,size,flags) ((fsp)->conn->vfs.ops.fsetxattr((fsp)->conn->vfs.handles.fsetxattr,(fsp),(name),(value),(size),(flags)))
fsp               144 source3/include/vfs_macros.h #define SMB_VFS_AIO_READ(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_read((fsp)->conn->vfs.handles.aio_read,(fsp),(aiocb)))
fsp               145 source3/include/vfs_macros.h #define SMB_VFS_AIO_WRITE(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_write((fsp)->conn->vfs.handles.aio_write,(fsp),(aiocb)))
fsp               146 source3/include/vfs_macros.h #define SMB_VFS_AIO_RETURN(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_return_fn((fsp)->conn->vfs.handles.aio_return,(fsp),(aiocb)))
fsp               147 source3/include/vfs_macros.h #define SMB_VFS_AIO_CANCEL(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_cancel((fsp)->conn->vfs.handles.aio_cancel,(fsp),(aiocb)))
fsp               148 source3/include/vfs_macros.h #define SMB_VFS_AIO_ERROR(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_error_fn((fsp)->conn->vfs.handles.aio_error,(fsp),(aiocb)))
fsp               149 source3/include/vfs_macros.h #define SMB_VFS_AIO_FSYNC(fsp,op,aiocb) ((fsp)->conn->vfs.ops.aio_fsync((fsp)->conn->vfs.handles.aio_fsync,(fsp),(op),(aiocb)))
fsp               150 source3/include/vfs_macros.h #define SMB_VFS_AIO_SUSPEND(fsp,aiocb,n,ts) ((fsp)->conn->vfs.ops.aio_suspend((fsp)->conn->vfs.handles.aio_suspend,(fsp),(aiocb),(n),(ts)))
fsp               151 source3/include/vfs_macros.h #define SMB_VFS_AIO_FORCE(fsp) ((fsp)->conn->vfs.ops.aio_force((fsp)->conn->vfs.handles.aio_force,(fsp)))
fsp               169 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_GET_SHADOW_COPY_DATA(fsp,shadow_copy_data,labels) ((fsp)->conn->vfs_opaque.ops.get_shadow_copy_data((fsp)->conn->vfs_opaque.handles.get_shadow_copy_data,(fsp),(shadow_copy_data),(labels)))
fsp               185 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_OPEN(conn, fname, fsp, flags, mode) (((conn)->vfs_opaque.ops.open)((conn)->vfs_opaque.handles.open, (fname), (fsp), (flags), (mode)))
fsp               187 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_CLOSE(fsp) ((fsp)->conn->vfs_opaque.ops.close_fn((fsp)->conn->vfs_opaque.handles.close_hnd, (fsp)))
fsp               188 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_READ(fsp, data, n) ((fsp)->conn->vfs_opaque.ops.vfs_read((fsp)->conn->vfs_opaque.handles.vfs_read, (fsp), (data), (n)))
fsp               189 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_PREAD(fsp, data, n, off) ((fsp)->conn->vfs_opaque.ops.pread((fsp)->conn->vfs_opaque.handles.pread, (fsp), (data), (n), (off)))
fsp               190 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_WRITE(fsp, data, n) ((fsp)->conn->vfs_opaque.ops.write((fsp)->conn->vfs_opaque.handles.write, (fsp), (data), (n)))
fsp               191 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_PWRITE(fsp, data, n, off) ((fsp)->conn->vfs_opaque.ops.pwrite((fsp)->conn->vfs_opaque.handles.pwrite, (fsp), (data), (n), (off)))
fsp               192 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_LSEEK(fsp, offset, whence) ((fsp)->conn->vfs_opaque.ops.lseek((fsp)->conn->vfs_opaque.handles.lseek, (fsp), (offset), (whence)))
fsp               196 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FSYNC(fsp) ((fsp)->conn->vfs_opaque.ops.fsync((fsp)->conn->vfs_opaque.handles.fsync, (fsp)))
fsp               198 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FSTAT(fsp, sbuf) ((fsp)->conn->vfs_opaque.ops.fstat((fsp)->conn->vfs_opaque.handles.fstat, (fsp), (sbuf)))
fsp               200 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_GET_ALLOC_SIZE(conn, fsp, sbuf) ((conn)->vfs_opaque.ops.get_alloc_size((conn)->vfs_opaque.handles.get_alloc_size, (fsp), (sbuf)))
fsp               203 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FCHMOD(fsp, mode) ((fsp)->conn->vfs_opaque.ops.fchmod((fsp)->conn->vfs_opaque.handles.fchmod, (fsp), (mode)))
fsp               205 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FCHOWN(fsp, uid, gid) ((fsp)->conn->vfs_opaque.ops.fchown((fsp)->conn->vfs_opaque.handles.fchown, (fsp), (uid), (gid)))
fsp               210 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FTRUNCATE(fsp, offset) ((fsp)->conn->vfs_opaque.ops.ftruncate((fsp)->conn->vfs_opaque.handles.ftruncate, (fsp), (offset)))
fsp               211 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_LOCK(fsp, op, offset, count, type) ((fsp)->conn->vfs_opaque.ops.lock((fsp)->conn->vfs_opaque.handles.lock, (fsp), (op), (offset), (count), (type)))
fsp               212 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_KERNEL_FLOCK(fsp, share_mode) ((fsp)->conn->vfs_opaque.ops.kernel_flock((fsp)->conn->vfs_opaque.handles.kernel_flock, (fsp), (share_mode)))
fsp               213 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_LINUX_SETLEASE(fsp, leasetype) ((fsp)->conn->vfs_opaque.ops.linux_setlease((fsp)->conn->vfs_opaque.handles.linux_setlease, (fsp), (leasetype)))
fsp               214 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_GETLOCK(fsp, poffset, pcount, ptype, ppid) ((fsp)->conn->vfs_opaque.ops.getlock((fsp)->conn->vfs_opaque.handles.getlock, (fsp), (poffset), (pcount), (ptype), (ppid)))
fsp               223 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams) ((conn)->vfs_opaque.ops.streaminfo((conn)->vfs_opaque.handles.streaminfo, (fsp), (fname), (mem_ctx), (num_streams), (streams)))
fsp               228 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_STRICT_LOCK(conn, fsp, plock) ((conn)->vfs_opaque.ops.strict_lock((conn)->vfs_opaque.handles.strict_lock, (fsp), (plock)))
fsp               229 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_STRICT_UNLOCK(conn, fsp, plock) ((conn)->vfs_opaque.ops.strict_unlock((conn)->vfs_opaque.handles.strict_unlock, (fsp), (plock)))
fsp               232 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FGET_NT_ACL(fsp, security_info, ppdesc) ((fsp)->conn->vfs_opaque.ops.fget_nt_acl((fsp)->conn->vfs_opaque.handles.fget_nt_acl, (fsp), (security_info), (ppdesc)))
fsp               234 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FSET_NT_ACL(fsp, security_info_sent, psd) ((fsp)->conn->vfs_opaque.ops.fset_nt_acl((fsp)->conn->vfs_opaque.handles.fset_nt_acl, (fsp), (security_info_sent), (psd)))
fsp               238 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FCHMOD_ACL(fsp, mode) ((fsp)->conn->vfs_opaque.ops.fchmod_acl((fsp)->conn->vfs_opaque.handles.fchmod_acl, (fsp), (mode)))
fsp               245 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_SYS_ACL_GET_FD(fsp) ((fsp)->conn->vfs_opaque.ops.sys_acl_get_fd((fsp)->conn->vfs_opaque.handles.sys_acl_get_fd, (fsp)))
fsp               256 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_SYS_ACL_SET_FD(fsp, theacl) ((fsp)->conn->vfs_opaque.ops.sys_acl_set_fd((fsp)->conn->vfs_opaque.handles.sys_acl_set_fd, (fsp), (theacl)))
fsp               266 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FGETXATTR(fsp,name,value,size) ((fsp)->conn->vfs_opaque.ops.fgetxattr((fsp)->conn->vfs_opaque.handles.fgetxattr,(fsp),(name),(value),(size)))
fsp               269 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FLISTXATTR(fsp,list,size) ((fsp)->conn->vfs_opaque.ops.flistxattr((fsp)->conn->vfs_opaque.handles.flistxattr,(fsp),(list),(size)))
fsp               272 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FREMOVEXATTR(fsp,name) ((fsp)->conn->vfs_opaque.ops.fremovexattr((fsp)->conn->vfs_opaque.handles.fremovexattr,(fsp),(name)))
fsp               275 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FSETXATTR(fsp,name,value,size,flags) ((fsp)->conn->vfs_opaque.ops.fsetxattr((fsp)->conn->vfs_opaque.handles.fsetxattr,(fsp),(name),(value),(size),(flags)))
fsp               278 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_READ(fsp,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_read((fsp)->conn->vfs_opaque.handles.aio_read,(fsp),(aiocb)))
fsp               279 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_WRITE(fsp,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_write((fsp)->conn->vfs_opaque.handles.aio_write,(fsp),(aiocb)))
fsp               280 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_RETURN(fsp,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_return_fn((fsp)->conn->vfs_opaque.handles.aio_return,(fsp),(aiocb)))
fsp               281 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_CANCEL(fsp,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_cancel((fsp)->conn->vfs_opaque.handles.cancel,(fsp),(aiocb)))
fsp               282 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_ERROR(fsp,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_error_fn((fsp)->conn->vfs_opaque.handles.aio_error,(fsp),(aiocb)))
fsp               283 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_FSYNC(fsp,op,aiocb) ((fsp)->conn->vfs_opaque.ops.aio_fsync((fsp)->conn->vfs_opaque.handles.aio_fsync,(fsp),(op),(aiocb)))
fsp               284 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_SUSPEND(fsp,aiocb,n,ts) ((fsp)->conn->vfs_opaque.ops.aio_suspend((fsp)->conn->vfs_opaque.handles.aio_suspend,(fsp),(aiocb),(n),(ts)))
fsp               285 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_AIO_FORCE(fsp) ((fsp)->conn->vfs_opaque.ops.aio_force((fsp)->conn->vfs_opaque.handles.aio_force,(fsp)))
fsp               303 source3/include/vfs_macros.h #define SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data ,labels) ((handle)->vfs_next.ops.get_shadow_copy_data((handle)->vfs_next.handles.get_shadow_copy_data,(fsp),(shadow_copy_data),(labels)))
fsp               320 source3/include/vfs_macros.h #define SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode) (((handle)->vfs_next.ops.open)((handle)->vfs_next.handles.open, (fname), (fsp), (flags), (mode)))
fsp               322 source3/include/vfs_macros.h #define SMB_VFS_NEXT_CLOSE(handle, fsp) ((handle)->vfs_next.ops.close_fn((handle)->vfs_next.handles.close_hnd, (fsp)))
fsp               323 source3/include/vfs_macros.h #define SMB_VFS_NEXT_READ(handle, fsp, data, n) ((handle)->vfs_next.ops.vfs_read((handle)->vfs_next.handles.vfs_read, (fsp), (data), (n)))
fsp               324 source3/include/vfs_macros.h #define SMB_VFS_NEXT_PREAD(handle, fsp, data, n, off) ((handle)->vfs_next.ops.pread((handle)->vfs_next.handles.pread, (fsp), (data), (n), (off)))
fsp               325 source3/include/vfs_macros.h #define SMB_VFS_NEXT_WRITE(handle, fsp, data, n) ((handle)->vfs_next.ops.write((handle)->vfs_next.handles.write, (fsp), (data), (n)))
fsp               326 source3/include/vfs_macros.h #define SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, off) ((handle)->vfs_next.ops.pwrite((handle)->vfs_next.handles.pwrite, (fsp), (data), (n), (off)))
fsp               327 source3/include/vfs_macros.h #define SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence) ((handle)->vfs_next.ops.lseek((handle)->vfs_next.handles.lseek, (fsp), (offset), (whence)))
fsp               331 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FSYNC(handle, fsp) ((handle)->vfs_next.ops.fsync((handle)->vfs_next.handles.fsync, (fsp)))
fsp               333 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf) ((handle)->vfs_next.ops.fstat((handle)->vfs_next.handles.fstat, (fsp), (sbuf)))
fsp               335 source3/include/vfs_macros.h #define SMB_VFS_NEXT_GET_ALLOC_SIZE(conn, fsp, sbuf) ((conn)->vfs_next.ops.get_alloc_size((conn)->vfs_next.handles.get_alloc_size, (fsp), (sbuf)))
fsp               338 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FCHMOD(handle, fsp, mode) ((handle)->vfs_next.ops.fchmod((handle)->vfs_next.handles.fchmod, (fsp), (mode)))
fsp               340 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FCHOWN(handle, fsp, uid, gid) ((handle)->vfs_next.ops.fchown((handle)->vfs_next.handles.fchown, (fsp), (uid), (gid)))
fsp               345 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset) ((handle)->vfs_next.ops.ftruncate((handle)->vfs_next.handles.ftruncate, (fsp), (offset)))
fsp               346 source3/include/vfs_macros.h #define SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type) ((handle)->vfs_next.ops.lock((handle)->vfs_next.handles.lock, (fsp), (op), (offset), (count), (type)))
fsp               347 source3/include/vfs_macros.h #define SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode)((handle)->vfs_next.ops.kernel_flock((handle)->vfs_next.handles.kernel_flock, (fsp), (share_mode)))
fsp               348 source3/include/vfs_macros.h #define SMB_VFS_NEXT_LINUX_SETLEASE(handle, fsp, leasetype)((handle)->vfs_next.ops.linux_setlease((handle)->vfs_next.handles.linux_setlease, (fsp), (leasetype)))
fsp               349 source3/include/vfs_macros.h #define SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid) ((handle)->vfs_next.ops.getlock((handle)->vfs_next.handles.getlock, (fsp), (poffset), (pcount), (ptype), (ppid)))
fsp               358 source3/include/vfs_macros.h #define SMB_VFS_NEXT_STREAMINFO(handle, fsp, fname, mem_ctx, num_streams, streams) ((handle)->vfs_next.ops.streaminfo((handle)->vfs_next.handles.streaminfo, (fsp), (fname), (mem_ctx), (num_streams), (streams)))
fsp               363 source3/include/vfs_macros.h #define SMB_VFS_NEXT_STRICT_LOCK(handle, fsp, plock) ((handle)->vfs_next.ops.strict_lock((handle)->vfs_next.handles.strict_lock, (fsp), (plock)))
fsp               364 source3/include/vfs_macros.h #define SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock) ((handle)->vfs_next.ops.strict_unlock((handle)->vfs_next.handles.strict_unlock, (fsp), (plock)))
fsp               367 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, ppdesc) ((handle)->vfs_next.ops.fget_nt_acl((handle)->vfs_next.handles.fget_nt_acl, (fsp), (security_info), (ppdesc)))
fsp               369 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd) ((handle)->vfs_next.ops.fset_nt_acl((handle)->vfs_next.handles.fset_nt_acl, (fsp), (security_info_sent), (psd)))
fsp               373 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode) ((handle)->vfs_next.ops.fchmod_acl((handle)->vfs_next.handles.fchmod_acl, (fsp), (mode)))
fsp               380 source3/include/vfs_macros.h #define SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp) ((handle)->vfs_next.ops.sys_acl_get_fd((handle)->vfs_next.handles.sys_acl_get_fd, (fsp)))
fsp               391 source3/include/vfs_macros.h #define SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl) ((handle)->vfs_next.ops.sys_acl_set_fd((handle)->vfs_next.handles.sys_acl_set_fd, (fsp), (theacl)))
fsp               401 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FGETXATTR(handle,fsp,name,value,size) ((handle)->vfs_next.ops.fgetxattr((handle)->vfs_next.handles.fgetxattr,(fsp),(name),(value),(size)))
fsp               404 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FLISTXATTR(handle,fsp,list,size) ((handle)->vfs_next.ops.flistxattr((handle)->vfs_next.handles.flistxattr,(fsp),(list),(size)))
fsp               407 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FREMOVEXATTR(handle,fsp,name) ((handle)->vfs_next.ops.fremovexattr((handle)->vfs_next.handles.fremovexattr,(fsp),(name)))
fsp               410 source3/include/vfs_macros.h #define SMB_VFS_NEXT_FSETXATTR(handle,fsp,name,value,size,flags) ((handle)->vfs_next.ops.fsetxattr((handle)->vfs_next.handles.fsetxattr,(fsp),(name),(value),(size),(flags)))
fsp               413 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_READ(handle,fsp,aiocb) ((handle)->vfs_next.ops.aio_read((handle)->vfs_next.handles.aio_read,(fsp),(aiocb)))
fsp               414 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_WRITE(handle,fsp,aiocb) ((handle)->vfs_next.ops.aio_write((handle)->vfs_next.handles.aio_write,(fsp),(aiocb)))
fsp               415 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_RETURN(handle,fsp,aiocb) ((handle)->vfs_next.ops.aio_return_fn((handle)->vfs_next.handles.aio_return,(fsp),(aiocb)))
fsp               416 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_CANCEL(handle,fsp,aiocb) ((handle)->vfs_next.ops.aio_cancel((handle)->vfs_next.handles.aio_cancel,(fsp),(aiocb)))
fsp               417 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_ERROR(handle,fsp,aiocb) ((handle)->vfs_next.ops.aio_error_fn((handle)->vfs_next.handles.aio_error,(fsp),(aiocb)))
fsp               418 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_FSYNC(handle,fsp,op,aiocb) ((handle)->vfs_next.ops.aio_fsync((handle)->vfs_next.handles.aio_fsync,(fsp),(op),(aiocb)))
fsp               419 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_SUSPEND(handle,fsp,aiocb,n,ts) ((handle)->vfs_next.ops.aio_suspend((handle)->vfs_next.handles.aio_suspend,(fsp),(aiocb),(n),(ts)))
fsp               420 source3/include/vfs_macros.h #define SMB_VFS_NEXT_AIO_FORCE(handle,fsp) ((handle)->vfs_next.ops.aio_force((handle)->vfs_next.handles.aio_force,(fsp)))
fsp                41 source3/lib/dummysmbd.c void cancel_pending_lock_requests_by_fid(files_struct *fsp, struct byte_range_lock *br_lck)
fsp                77 source3/lib/dummysmbd.c void contend_level2_oplocks_begin(files_struct *fsp,
fsp                83 source3/lib/dummysmbd.c void contend_level2_oplocks_end(files_struct *fsp,
fsp               367 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               369 source3/lib/sysacls.c 	return posixacl_sys_acl_get_fd(handle, fsp);
fsp               378 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               381 source3/lib/sysacls.c 	return posixacl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               398 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               400 source3/lib/sysacls.c 	return aixacl_sys_acl_get_fd(handle, fsp);
fsp               409 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               412 source3/lib/sysacls.c 	return aixacl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               429 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               431 source3/lib/sysacls.c 	return tru64acl_sys_acl_get_fd(handle, fsp);
fsp               440 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               443 source3/lib/sysacls.c 	return tru64acl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               460 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               462 source3/lib/sysacls.c 	return solarisacl_sys_acl_get_fd(handle, fsp);
fsp               471 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               474 source3/lib/sysacls.c 	return solarisacl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               491 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               493 source3/lib/sysacls.c 	return hpuxacl_sys_acl_get_fd(handle, fsp);
fsp               502 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               505 source3/lib/sysacls.c 	return hpuxacl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               522 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               524 source3/lib/sysacls.c 	return irixacl_sys_acl_get_fd(handle, fsp);
fsp               533 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               536 source3/lib/sysacls.c 	return irixacl_sys_acl_set_fd(handle, fsp, acl_d);
fsp               558 source3/lib/sysacls.c SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp               579 source3/lib/sysacls.c int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               235 source3/locking/brlock.c NTSTATUS brl_lock_failed(files_struct *fsp, const struct lock_struct *lock, bool blocking_lock)
fsp               243 source3/locking/brlock.c 			fsp->last_lock_failure = *lock;
fsp               248 source3/locking/brlock.c 	if (procid_equal(&lock->context.pid, &fsp->last_lock_failure.context.pid) &&
fsp               249 source3/locking/brlock.c 			lock->context.tid == fsp->last_lock_failure.context.tid &&
fsp               250 source3/locking/brlock.c 			lock->fnum == fsp->last_lock_failure.fnum &&
fsp               251 source3/locking/brlock.c 			lock->start == fsp->last_lock_failure.start) {
fsp               256 source3/locking/brlock.c 		fsp->last_lock_failure = *lock;
fsp               316 source3/locking/brlock.c 	files_struct *fsp = br_lck->fsp;
fsp               327 source3/locking/brlock.c 			return brl_lock_failed(fsp,plock,blocking_lock);
fsp               338 source3/locking/brlock.c 		contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_WINDOWS_BRL);
fsp               345 source3/locking/brlock.c 	if (!IS_PENDING_LOCK(plock->lock_type) && lp_posix_locking(fsp->conn->params)) {
fsp               347 source3/locking/brlock.c 		if (!set_posix_lock_windows_flavour(fsp,
fsp               384 source3/locking/brlock.c 		contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_WINDOWS_BRL);
fsp               769 source3/locking/brlock.c 		contend_level2_oplocks_begin(br_lck->fsp,
fsp               793 source3/locking/brlock.c 	if (!IS_PENDING_LOCK(plock->lock_type) && lp_posix_locking(br_lck->fsp->conn->params)) {
fsp               800 source3/locking/brlock.c 		if (!set_posix_lock_posix_flavour(br_lck->fsp,
fsp               864 source3/locking/brlock.c 		contend_level2_oplocks_end(br_lck->fsp,
fsp               902 source3/locking/brlock.c 	lock.context.tid = br_lck->fsp->conn->cnum;
fsp               905 source3/locking/brlock.c 	lock.fnum = br_lck->fsp->fnum;
fsp               910 source3/locking/brlock.c 		ret = SMB_VFS_BRL_LOCK_WINDOWS(br_lck->fsp->conn, br_lck,
fsp              1001 source3/locking/brlock.c 	if(lp_posix_locking(br_lck->fsp->conn->params)) {
fsp              1002 source3/locking/brlock.c 		release_posix_lock_windows_flavour(br_lck->fsp,
fsp              1030 source3/locking/brlock.c 	contend_level2_oplocks_end(br_lck->fsp, LEVEL2_CONTEND_WINDOWS_BRL);
fsp              1136 source3/locking/brlock.c 	if(lp_posix_locking(br_lck->fsp->conn->params)) {
fsp              1137 source3/locking/brlock.c 		release_posix_lock_posix_flavour(br_lck->fsp,
fsp              1158 source3/locking/brlock.c 	contend_level2_oplocks_end(br_lck->fsp,
fsp              1206 source3/locking/brlock.c 	lock.context.tid = br_lck->fsp->conn->cnum;
fsp              1209 source3/locking/brlock.c 	lock.fnum = br_lck->fsp->fnum;
fsp              1214 source3/locking/brlock.c 		return SMB_VFS_BRL_UNLOCK_WINDOWS(br_lck->fsp->conn, msg_ctx,
fsp              1238 source3/locking/brlock.c 	files_struct *fsp = br_lck->fsp;
fsp              1242 source3/locking/brlock.c 	lock.context.tid = br_lck->fsp->conn->cnum;
fsp              1245 source3/locking/brlock.c 	lock.fnum = fsp->fnum;
fsp              1265 source3/locking/brlock.c 	if(lp_posix_locking(fsp->conn->params) && (lock_flav == WINDOWS_LOCK)) {
fsp              1266 source3/locking/brlock.c 		ret = is_posix_locked(fsp, &start, &size, &lock_type, WINDOWS_LOCK);
fsp              1270 source3/locking/brlock.c 			fsp->fnum, fsp->fsp_name ));
fsp              1295 source3/locking/brlock.c 	files_struct *fsp = br_lck->fsp;
fsp              1299 source3/locking/brlock.c 	lock.context.tid = br_lck->fsp->conn->cnum;
fsp              1302 source3/locking/brlock.c 	lock.fnum = fsp->fnum;
fsp              1331 source3/locking/brlock.c 	if(lp_posix_locking(fsp->conn->params)) {
fsp              1332 source3/locking/brlock.c 		bool ret = is_posix_locked(fsp, pstart, psize, plock_type, POSIX_LOCK);
fsp              1336 source3/locking/brlock.c 			fsp->fnum, fsp->fsp_name ));
fsp              1364 source3/locking/brlock.c 	lock.context.tid = br_lck->fsp->conn->cnum;
fsp              1367 source3/locking/brlock.c 	lock.fnum = br_lck->fsp->fnum;
fsp              1372 source3/locking/brlock.c 		ret = SMB_VFS_BRL_CANCEL_WINDOWS(br_lck->fsp->conn, br_lck,
fsp              1428 source3/locking/brlock.c 	files_struct *fsp = br_lck->fsp;
fsp              1429 source3/locking/brlock.c 	uint16 tid = fsp->conn->cnum;
fsp              1430 source3/locking/brlock.c 	int fnum = fsp->fnum;
fsp              1438 source3/locking/brlock.c 	if(lp_posix_locking(fsp->conn->params)) {
fsp              1507 source3/locking/brlock.c 				contend_level2_oplocks_end(br_lck->fsp,
fsp              1515 source3/locking/brlock.c 					contend_level2_oplocks_end(br_lck->fsp,
fsp              1558 source3/locking/brlock.c 	if(lp_posix_locking(fsp->conn->params) && num_deleted_windows_locks) {
fsp              1560 source3/locking/brlock.c 		reduce_windows_lock_ref_count(fsp, num_deleted_windows_locks);
fsp              1758 source3/locking/brlock.c 					files_struct *fsp, bool read_only)
fsp              1767 source3/locking/brlock.c 	br_lck->fsp = fsp;
fsp              1771 source3/locking/brlock.c 	br_lck->key = fsp->file_id;
fsp              1776 source3/locking/brlock.c 	if (!fsp->lockdb_clean) {
fsp              1821 source3/locking/brlock.c 	if (!fsp->lockdb_clean) {
fsp              1841 source3/locking/brlock.c 		fsp->lockdb_clean = True;
fsp              1849 source3/locking/brlock.c 			  file_id_string_tos(&fsp->file_id)));
fsp              1858 source3/locking/brlock.c 					files_struct *fsp)
fsp              1860 source3/locking/brlock.c 	return brl_get_locks_internal(mem_ctx, fsp, False);
fsp              1864 source3/locking/brlock.c 					files_struct *fsp)
fsp              1866 source3/locking/brlock.c 	return brl_get_locks_internal(mem_ctx, fsp, True);
fsp                78 source3/locking/locking.c void init_strict_lock_struct(files_struct *fsp,
fsp                88 source3/locking/locking.c         plock->context.tid = fsp->conn->cnum;
fsp                92 source3/locking/locking.c         plock->fnum = fsp->fnum;
fsp                94 source3/locking/locking.c         plock->lock_flav = lp_posix_cifsu_locktype(fsp);
fsp                97 source3/locking/locking.c bool strict_lock_default(files_struct *fsp, struct lock_struct *plock)
fsp                99 source3/locking/locking.c 	int strict_locking = lp_strict_locking(fsp->conn->params);
fsp               106 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params) || !strict_locking) {
fsp               111 source3/locking/locking.c 		if  (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type) && (plock->lock_type == READ_LOCK || plock->lock_type == WRITE_LOCK)) {
fsp               112 source3/locking/locking.c 			DEBUG(10,("is_locked: optimisation - exclusive oplock on file %s\n", fsp->fsp_name ));
fsp               114 source3/locking/locking.c 		} else if ((fsp->oplock_type == LEVEL_II_OPLOCK) &&
fsp               116 source3/locking/locking.c 			DEBUG(10,("is_locked: optimisation - level II oplock on file %s\n", fsp->fsp_name ));
fsp               119 source3/locking/locking.c 			struct byte_range_lock *br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
fsp               133 source3/locking/locking.c 		struct byte_range_lock *br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
fsp               152 source3/locking/locking.c 			plock->fnum, fsp->fsp_name ));
fsp               157 source3/locking/locking.c void strict_unlock_default(files_struct *fsp, struct lock_struct *plock)
fsp               165 source3/locking/locking.c NTSTATUS query_lock(files_struct *fsp,
fsp               175 source3/locking/locking.c 	if (!fsp->can_lock) {
fsp               176 source3/locking/locking.c 		return fsp->is_directory ? NT_STATUS_INVALID_DEVICE_REQUEST : NT_STATUS_INVALID_HANDLE;
fsp               179 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params)) {
fsp               183 source3/locking/locking.c 	br_lck = brl_get_locks_readonly(talloc_tos(), fsp);
fsp               200 source3/locking/locking.c static void increment_current_lock_count(files_struct *fsp,
fsp               204 source3/locking/locking.c 	    fsp->current_lock_count != NO_LOCKING_COUNT) {
fsp               209 source3/locking/locking.c 		fsp->current_lock_count++;
fsp               214 source3/locking/locking.c 		fsp->current_lock_count = NO_LOCKING_COUNT;
fsp               218 source3/locking/locking.c static void decrement_current_lock_count(files_struct *fsp,
fsp               222 source3/locking/locking.c 	    fsp->current_lock_count != NO_LOCKING_COUNT) {
fsp               223 source3/locking/locking.c 		SMB_ASSERT(fsp->current_lock_count > 0);
fsp               224 source3/locking/locking.c 		fsp->current_lock_count--;
fsp               233 source3/locking/locking.c 			files_struct *fsp,
fsp               246 source3/locking/locking.c 	if (!fsp->can_lock) {
fsp               247 source3/locking/locking.c 		*perr = fsp->is_directory ? NT_STATUS_INVALID_DEVICE_REQUEST : NT_STATUS_INVALID_HANDLE;
fsp               251 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params)) {
fsp               262 source3/locking/locking.c 		"false", fsp->fnum, fsp->fsp_name));
fsp               264 source3/locking/locking.c 	br_lck = brl_get_locks(talloc_tos(), fsp);
fsp               284 source3/locking/locking.c 	increment_current_lock_count(fsp, lock_flav);
fsp               293 source3/locking/locking.c 			files_struct *fsp,
fsp               302 source3/locking/locking.c 	if (!fsp->can_lock) {
fsp               303 source3/locking/locking.c 		return fsp->is_directory ? NT_STATUS_INVALID_DEVICE_REQUEST : NT_STATUS_INVALID_HANDLE;
fsp               306 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params)) {
fsp               311 source3/locking/locking.c 		  (double)offset, (double)count, fsp->fnum, fsp->fsp_name ));
fsp               313 source3/locking/locking.c 	br_lck = brl_get_locks(talloc_tos(), fsp);
fsp               333 source3/locking/locking.c 	decrement_current_lock_count(fsp, lock_flav);
fsp               341 source3/locking/locking.c NTSTATUS do_lock_cancel(files_struct *fsp,
fsp               351 source3/locking/locking.c 	if (!fsp->can_lock) {
fsp               352 source3/locking/locking.c 		return fsp->is_directory ?
fsp               356 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params)) {
fsp               361 source3/locking/locking.c 		  (double)offset, (double)count, fsp->fnum, fsp->fsp_name ));
fsp               363 source3/locking/locking.c 	br_lck = brl_get_locks(talloc_tos(), fsp);
fsp               383 source3/locking/locking.c 	decrement_current_lock_count(fsp, lock_flav);
fsp               392 source3/locking/locking.c 			files_struct *fsp)
fsp               396 source3/locking/locking.c 	if (!lp_locking(fsp->conn->params)) {
fsp               404 source3/locking/locking.c 	if (fsp->current_lock_count == 0) {
fsp               408 source3/locking/locking.c 	br_lck = brl_get_locks(talloc_tos(),fsp);
fsp               411 source3/locking/locking.c 		cancel_pending_lock_requests_by_fid(fsp, br_lck);
fsp              1049 source3/locking/locking.c 				  files_struct *fsp,
fsp              1054 source3/locking/locking.c 	e->share_access = fsp->share_access;
fsp              1055 source3/locking/locking.c 	e->private_options = fsp->fh->private_options;
fsp              1056 source3/locking/locking.c 	e->access_mask = fsp->access_mask;
fsp              1059 source3/locking/locking.c 	e->time.tv_sec = fsp->open_time.tv_sec;
fsp              1060 source3/locking/locking.c 	e->time.tv_usec = fsp->open_time.tv_usec;
fsp              1061 source3/locking/locking.c 	e->id = fsp->file_id;
fsp              1062 source3/locking/locking.c 	e->share_file_id = fsp->fh->gen_id;
fsp              1064 source3/locking/locking.c 	e->flags = fsp->posix_open ? SHARE_MODE_FLAG_POSIX_OPEN : 0;
fsp              1103 source3/locking/locking.c void set_share_mode(struct share_mode_lock *lck, files_struct *fsp,
fsp              1107 source3/locking/locking.c 	fill_share_mode_entry(&entry, fsp, uid, mid, op_type);
fsp              1173 source3/locking/locking.c bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp)
fsp              1178 source3/locking/locking.c 	fill_share_mode_entry(&entry, fsp, (uid_t)-1, 0, NO_OPLOCK);
fsp              1210 source3/locking/locking.c bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
fsp              1215 source3/locking/locking.c 	fill_share_mode_entry(&entry, fsp, (uid_t)-1, 0, NO_OPLOCK);
fsp              1223 source3/locking/locking.c 	if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              1241 source3/locking/locking.c bool downgrade_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
fsp              1246 source3/locking/locking.c 	fill_share_mode_entry(&entry, fsp, (uid_t)-1, 0, NO_OPLOCK);
fsp              1264 source3/locking/locking.c NTSTATUS can_set_delete_on_close(files_struct *fsp, bool delete_on_close,
fsp              1276 source3/locking/locking.c 	    !lp_delete_readonly(SNUM(fsp->conn))) {
fsp              1279 source3/locking/locking.c 			  fsp->fsp_name ));
fsp              1287 source3/locking/locking.c 	if (!CAN_WRITE(fsp->conn)) {
fsp              1290 source3/locking/locking.c 			  fsp->fsp_name ));
fsp              1299 source3/locking/locking.c 	if (!(fsp->access_mask & DELETE_ACCESS)) {
fsp              1302 source3/locking/locking.c 			  fsp->fsp_name ));
fsp              1307 source3/locking/locking.c 	if (fsp->is_directory) {
fsp              1308 source3/locking/locking.c 		return can_delete_directory(fsp->conn, fsp->fsp_name);
fsp              1382 source3/locking/locking.c bool set_delete_on_close(files_struct *fsp, bool delete_on_close, const UNIX_USER_TOKEN *tok)
fsp              1389 source3/locking/locking.c 		  delete_on_close ? "Adding" : "Removing", fsp->fnum,
fsp              1390 source3/locking/locking.c 		  fsp->fsp_name ));
fsp              1392 source3/locking/locking.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp              1398 source3/locking/locking.c 	if (fsp->conn->admin_user) {
fsp              1410 source3/locking/locking.c 	if (fsp->is_directory) {
fsp              1411 source3/locking/locking.c 		send_stat_cache_delete_message(fsp->fsp_name);
fsp                46 source3/locking/posix.c static int map_posix_lock_type( files_struct *fsp, enum brl_type lock_type)
fsp                48 source3/locking/posix.c 	if((lock_type == WRITE_LOCK) && !fsp->can_write) {
fsp               185 source3/locking/posix.c static bool posix_fcntl_lock(files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
fsp               189 source3/locking/posix.c 	DEBUG(8,("posix_fcntl_lock %d %d %.0f %.0f %d\n",fsp->fh->fd,op,(double)offset,(double)count,type));
fsp               191 source3/locking/posix.c 	ret = SMB_VFS_LOCK(fsp, op, offset, count, type);
fsp               215 source3/locking/posix.c 			ret = SMB_VFS_LOCK(fsp, op, offset, count, type);
fsp               228 source3/locking/posix.c static bool posix_fcntl_getlock(files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype)
fsp               234 source3/locking/posix.c 		fsp->fh->fd,(double)*poffset,(double)*pcount,*ptype));
fsp               236 source3/locking/posix.c 	ret = SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, &pid);
fsp               260 source3/locking/posix.c 			ret = SMB_VFS_GETLOCK(fsp,poffset,pcount,ptype,&pid);
fsp               273 source3/locking/posix.c bool is_posix_locked(files_struct *fsp,
fsp               281 source3/locking/posix.c 	int posix_lock_type = map_posix_lock_type(fsp,*plock_type);
fsp               284 source3/locking/posix.c 		fsp->fsp_name, (double)*pu_offset, (double)*pu_count, posix_lock_type_name(*plock_type) ));
fsp               295 source3/locking/posix.c 	if (!posix_fcntl_getlock(fsp,&offset,&count,&posix_lock_type)) {
fsp               328 source3/locking/posix.c static TDB_DATA locking_ref_count_key_fsp(files_struct *fsp,
fsp               332 source3/locking/posix.c 	tmp->id = fsp->file_id;
fsp               341 source3/locking/posix.c static TDB_DATA fd_array_key_fsp(files_struct *fsp)
fsp               343 source3/locking/posix.c 	return make_tdb_data((uint8 *)&fsp->file_id, sizeof(fsp->file_id));
fsp               398 source3/locking/posix.c static void increment_windows_lock_ref_count(files_struct *fsp)
fsp               407 source3/locking/posix.c 		locking_ref_count_key_fsp(fsp, &tmp));
fsp               427 source3/locking/posix.c 		  fsp->fsp_name, lock_ref_count ));
fsp               434 source3/locking/posix.c void reduce_windows_lock_ref_count(files_struct *fsp, unsigned int dcount)
fsp               443 source3/locking/posix.c 		locking_ref_count_key_fsp(fsp, &tmp));
fsp               463 source3/locking/posix.c 		  fsp->fsp_name, lock_ref_count ));
fsp               466 source3/locking/posix.c static void decrement_windows_lock_ref_count(files_struct *fsp)
fsp               468 source3/locking/posix.c 	reduce_windows_lock_ref_count(fsp, 1);
fsp               475 source3/locking/posix.c static int get_windows_lock_ref_count(files_struct *fsp)
fsp               484 source3/locking/posix.c 		locking_ref_count_key_fsp(fsp, &tmp), &dbuf);
fsp               495 source3/locking/posix.c 		  fsp->fsp_name, lock_ref_count ));
fsp               504 source3/locking/posix.c static void delete_windows_lock_ref_count(files_struct *fsp)
fsp               511 source3/locking/posix.c 		locking_ref_count_key_fsp(fsp, &tmp));
fsp               521 source3/locking/posix.c 		  fsp->fsp_name));
fsp               528 source3/locking/posix.c static void add_fd_to_close_entry(files_struct *fsp)
fsp               536 source3/locking/posix.c 		fd_array_key_fsp(fsp));
fsp               541 source3/locking/posix.c 		rec, uint8_t, rec->value.dsize + sizeof(fsp->fh->fd));
fsp               547 source3/locking/posix.c 	       &fsp->fh->fd, sizeof(fsp->fh->fd));
fsp               551 source3/locking/posix.c 				   rec->value.dsize + sizeof(fsp->fh->fd)), 0);
fsp               558 source3/locking/posix.c 		  fsp->fh->fd, fsp->fsp_name ));
fsp               565 source3/locking/posix.c static void delete_close_entries(files_struct *fsp)
fsp               571 source3/locking/posix.c 		fd_array_key_fsp(fsp));
fsp               584 source3/locking/posix.c 					      files_struct *fsp, int **entries)
fsp               590 source3/locking/posix.c 		posix_pending_close_db, mem_ctx, fd_array_key_fsp(fsp),
fsp               610 source3/locking/posix.c int fd_close_posix(struct files_struct *fsp)
fsp               617 source3/locking/posix.c 	if (!lp_locking(fsp->conn->params) ||
fsp               618 source3/locking/posix.c 	    !lp_posix_locking(fsp->conn->params))
fsp               625 source3/locking/posix.c 		return close(fsp->fh->fd);
fsp               628 source3/locking/posix.c 	if (get_windows_lock_ref_count(fsp)) {
fsp               636 source3/locking/posix.c 		add_fd_to_close_entry(fsp);
fsp               645 source3/locking/posix.c 	count = get_posix_pending_close_entries(talloc_tos(), fsp, &fd_array);
fsp               662 source3/locking/posix.c 		delete_close_entries(fsp);
fsp               668 source3/locking/posix.c 	delete_windows_lock_ref_count(fsp);
fsp               674 source3/locking/posix.c 	ret = close(fsp->fh->fd);
fsp               710 source3/locking/posix.c 						files_struct *fsp,
fsp               930 source3/locking/posix.c bool set_posix_lock_windows_flavour(files_struct *fsp,
fsp               941 source3/locking/posix.c 	int posix_lock_type = map_posix_lock_type(fsp,lock_type);
fsp               949 source3/locking/posix.c 			fsp->fsp_name, (double)u_offset, (double)u_count, posix_lock_type_name(lock_type) ));
fsp               957 source3/locking/posix.c 		increment_windows_lock_ref_count(fsp);
fsp              1012 source3/locking/posix.c 				fsp,
fsp              1029 source3/locking/posix.c 		if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,posix_lock_type)) {
fsp              1051 source3/locking/posix.c 			posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,F_UNLCK);
fsp              1055 source3/locking/posix.c 		increment_windows_lock_ref_count(fsp);
fsp              1067 source3/locking/posix.c bool release_posix_lock_windows_flavour(files_struct *fsp,
fsp              1083 source3/locking/posix.c 		fsp->fsp_name, (double)u_offset, (double)u_count ));
fsp              1086 source3/locking/posix.c 	decrement_windows_lock_ref_count(fsp);
fsp              1131 source3/locking/posix.c 				fsp,
fsp              1149 source3/locking/posix.c 		if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,F_RDLCK)) {
fsp              1167 source3/locking/posix.c 		if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,F_UNLCK)) {
fsp              1190 source3/locking/posix.c bool set_posix_lock_posix_flavour(files_struct *fsp,
fsp              1198 source3/locking/posix.c 	int posix_lock_type = map_posix_lock_type(fsp,lock_type);
fsp              1201 source3/locking/posix.c 			fsp->fsp_name, (double)u_offset, (double)u_count, posix_lock_type_name(lock_type) ));
fsp              1212 source3/locking/posix.c 	if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,posix_lock_type)) {
fsp              1230 source3/locking/posix.c bool release_posix_lock_posix_flavour(files_struct *fsp,
fsp              1245 source3/locking/posix.c 		fsp->fsp_name, (double)u_offset, (double)u_count ));
fsp              1286 source3/locking/posix.c 				fsp,
fsp              1301 source3/locking/posix.c 		if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,F_UNLCK)) {
fsp                39 source3/modules/gpfs.c bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
fsp                54 source3/modules/gpfs.c 	if ((fsp == NULL) || (fsp->fh == NULL) || (fsp->fh->fd < 0)) {
fsp                76 source3/modules/gpfs.c 	result = gpfs_set_share_fn(fsp->fh->fd, allow, deny);
fsp               231 source3/modules/gpfs.c bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
fsp               187 source3/modules/nfs4_acls.c static int smbacl4_fGetFileOwner(files_struct *fsp, SMB_STRUCT_STAT *psbuf)
fsp               191 source3/modules/nfs4_acls.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fsp               192 source3/modules/nfs4_acls.c 		return smbacl4_GetFileOwner(fsp->conn, fsp->fsp_name, psbuf);
fsp               194 source3/modules/nfs4_acls.c 	if (SMB_VFS_FSTAT(fsp, psbuf) != 0)
fsp               329 source3/modules/nfs4_acls.c NTSTATUS smb_fget_nt_acl_nfs4(files_struct *fsp,
fsp               335 source3/modules/nfs4_acls.c 	DEBUG(10, ("smb_fget_nt_acl_nfs4 invoked for %s\n", fsp->fsp_name));
fsp               337 source3/modules/nfs4_acls.c 	if (smbacl4_fGetFileOwner(fsp, &sbuf)) {
fsp               375 source3/modules/nfs4_acls.c 	files_struct *fsp,
fsp               392 source3/modules/nfs4_acls.c 		SNUM(fsp->conn), type_name,
fsp               394 source3/modules/nfs4_acls.c 	params->do_chown = lp_parm_bool(SNUM(fsp->conn), type_name,
fsp               397 source3/modules/nfs4_acls.c 		SNUM(fsp->conn), type_name,
fsp               703 source3/modules/nfs4_acls.c NTSTATUS smb_set_nt_acl_nfs4(files_struct *fsp,
fsp               718 source3/modules/nfs4_acls.c 	DEBUG(10, ("smb_set_nt_acl_nfs4 invoked for %s\n", fsp->fsp_name));
fsp               729 source3/modules/nfs4_acls.c 	if (smbacl4_get_vfs_params(SMBACL4_PARAM_TYPE_NAME, fsp, &params))
fsp               732 source3/modules/nfs4_acls.c 	if (smbacl4_fGetFileOwner(fsp, &sbuf))
fsp               737 source3/modules/nfs4_acls.c 		NTSTATUS status = unpack_nt_owners(SNUM(fsp->conn), &newUID, &newGID, security_info_sent, psd);
fsp               744 source3/modules/nfs4_acls.c 			if(try_chown(fsp->conn, fsp->fsp_name, newUID, newGID)) {
fsp               746 source3/modules/nfs4_acls.c 					 fsp->fsp_name, (unsigned int)newUID, (unsigned int)newGID, 
fsp               752 source3/modules/nfs4_acls.c 				  fsp->fsp_name, (unsigned int)newUID, (unsigned int)newGID));
fsp               753 source3/modules/nfs4_acls.c 			if (smbacl4_GetFileOwner(fsp->conn, fsp->fsp_name, &sbuf))
fsp               768 source3/modules/nfs4_acls.c 	theacl = smbacl4_win2nfs4(fsp->fsp_name, psd->dacl, &params, sbuf.st_uid, sbuf.st_gid);
fsp               777 source3/modules/nfs4_acls.c 	result = set_nfs4_native(fsp, theacl);
fsp               132 source3/modules/nfs4_acls.h NTSTATUS smb_fget_nt_acl_nfs4(files_struct *fsp,
fsp               145 source3/modules/nfs4_acls.h NTSTATUS smb_set_nt_acl_nfs4(files_struct *fsp,
fsp                64 source3/modules/onefs.h int onefs_close(vfs_handle_struct *handle, struct files_struct *fsp);
fsp                72 source3/modules/onefs.h int onefs_fstat(vfs_handle_struct *handle, struct files_struct *fsp,
fsp                84 source3/modules/onefs.h 			  struct files_struct *fsp,
fsp               110 source3/modules/onefs.h 			files_struct *fsp,
fsp               114 source3/modules/onefs.h 			files_struct *fsp,
fsp               126 source3/modules/onefs.h NTSTATUS onefs_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               132 source3/modules/onefs.h NTSTATUS onefs_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               369 source3/modules/onefs_acl.c onefs_canon_acl(files_struct *fsp, struct ifs_security_descriptor *sd)
fsp               384 source3/modules/onefs_acl.c 	SMB_ASSERT(fsp != NULL);
fsp               385 source3/modules/onefs_acl.c 	switch (lp_parm_enum(SNUM(fsp->conn), PARM_ONEFS_TYPE,
fsp               392 source3/modules/onefs_acl.c 		error = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               399 source3/modules/onefs_acl.c 			    fsp->fsp_name));
fsp               439 source3/modules/onefs_acl.c 	    fsp->fsp_name));
fsp               529 source3/modules/onefs_acl.c static bool add_sfs_aces(files_struct *fsp, struct ifs_security_descriptor *sd)
fsp               534 source3/modules/onefs_acl.c 	error = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               538 source3/modules/onefs_acl.c 			  fsp->fsp_name, errno));
fsp               550 source3/modules/onefs_acl.c 		file_mode = unix_mode(fsp->conn, 0, fsp->fsp_name, false);
fsp               551 source3/modules/onefs_acl.c 		dir_mode = unix_mode(fsp->conn, aDIR, fsp->fsp_name, false);
fsp               554 source3/modules/onefs_acl.c 		new_aces[0] = onefs_init_ace(fsp->conn, file_mode, false, USR);
fsp               555 source3/modules/onefs_acl.c 		new_aces[1] = onefs_init_ace(fsp->conn, file_mode, false, GRP);
fsp               556 source3/modules/onefs_acl.c 		new_aces[2] = onefs_init_ace(fsp->conn, file_mode, false, OTH);
fsp               557 source3/modules/onefs_acl.c 		new_aces[3] = onefs_init_ace(fsp->conn, dir_mode, true, USR);
fsp               558 source3/modules/onefs_acl.c 		new_aces[4] = onefs_init_ace(fsp->conn, dir_mode, true, GRP);
fsp               559 source3/modules/onefs_acl.c 		new_aces[5] = onefs_init_ace(fsp->conn, dir_mode, true, OTH);
fsp               601 source3/modules/onefs_acl.c onefs_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               622 source3/modules/onefs_acl.c 	    fsp->fsp_name, security_info));
fsp               624 source3/modules/onefs_acl.c 	if (lp_parm_bool(SNUM(fsp->conn), PARM_ONEFS_TYPE,
fsp               626 source3/modules/onefs_acl.c 		DEBUG(5, ("Ignoring SACL on %s.\n", fsp->fsp_name));
fsp               630 source3/modules/onefs_acl.c 	if (fsp->fh->fd == -1) {
fsp               631 source3/modules/onefs_acl.c 		if ((fsp->fh->fd = onefs_sys_create_file(handle->conn,
fsp               633 source3/modules/onefs_acl.c 							 fsp->fsp_name,
fsp               646 source3/modules/onefs_acl.c 				  fsp->fsp_name, errno, strerror(errno)));
fsp               669 source3/modules/onefs_acl.c                 error = ifs_get_security_descriptor(fsp->fh->fd, security_info,
fsp               681 source3/modules/onefs_acl.c 	if (lp_parm_bool(SNUM(fsp->conn),
fsp               686 source3/modules/onefs_acl.c 		if(!(new_aces_alloced = add_sfs_aces(fsp, sd)))
fsp               690 source3/modules/onefs_acl.c 	if (!(onefs_canon_acl(fsp, sd))) {
fsp               769 source3/modules/onefs_acl.c 		close(fsp->fh->fd);
fsp               770 source3/modules/onefs_acl.c 		fsp->fh->fd = -1;
fsp               898 source3/modules/onefs_acl.c onefs_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               909 source3/modules/onefs_acl.c 	DEBUG(5,("Setting SD on file %s.\n", fsp->fsp_name ));
fsp               919 source3/modules/onefs_acl.c 	fd = fsp->fh->fd;
fsp               921 source3/modules/onefs_acl.c 		DEBUG(10,("Reopening file %s.\n", fsp->fsp_name));
fsp               924 source3/modules/onefs_acl.c 						fsp->fsp_name,
fsp               937 source3/modules/onefs_acl.c 				  fsp->fsp_name, errno, strerror(errno)));
fsp               155 source3/modules/onefs_cbrl.c 	contend_level2_oplocks_begin(blr->fsp,
fsp               254 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fsp               368 source3/modules/onefs_cbrl.c 		status = brl_lock_failed(br_lck->fsp, plock, blocking_lock);
fsp               376 source3/modules/onefs_cbrl.c 	contend_level2_oplocks_begin(br_lck->fsp,
fsp               393 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fsp               414 source3/modules/onefs_cbrl.c 	contend_level2_oplocks_end(br_lck->fsp, LEVEL2_CONTEND_WINDOWS_BRL);
fsp               434 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fsp               479 source3/modules/onefs_cbrl.c 			files_struct *fsp,
fsp               497 source3/modules/onefs_cbrl.c 		return SMB_VFS_NEXT_STRICT_LOCK(handle, fsp, plock);
fsp               505 source3/modules/onefs_cbrl.c 	error = ifs_cbrl(fsp->fh->fd, CBRL_OP_LOCK,
fsp               516 source3/modules/onefs_cbrl.c 			files_struct *fsp,
fsp               531 source3/modules/onefs_cbrl.c 		SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock);
fsp               541 source3/modules/onefs_cbrl.c 	if (fsp->fh) {
fsp               542 source3/modules/onefs_cbrl.c 		ifs_cbrl(fsp->fh->fd, CBRL_OP_UNLOCK,
fsp                68 source3/modules/onefs_open.c static NTSTATUS onefs_open_file(files_struct *fsp,
fsp                96 source3/modules/onefs_open.c 	fsp->fh->fd = -1;
fsp               157 source3/modules/onefs_open.c 	if (fsp->base_fsp) {
fsp               162 source3/modules/onefs_open.c 		wild = fsp->base_fsp->fsp_name;
fsp               189 source3/modules/onefs_open.c 	if (fsp->posix_open || !lp_symlinks(SNUM(conn))) {
fsp               200 source3/modules/onefs_open.c 		SMB_ASSERT(fsp->base_fsp);
fsp               203 source3/modules/onefs_open.c 			  base, fsp->base_fsp->fh->fd, stream));
fsp               205 source3/modules/onefs_open.c 		base_fd = fsp->base_fsp->fh->fd;
fsp               208 source3/modules/onefs_open.c 	fsp->fh->fd = onefs_sys_create_file(conn,
fsp               224 source3/modules/onefs_open.c 	if (fsp->fh->fd == -1) {
fsp               257 source3/modules/onefs_open.c 			    fsp);
fsp               267 source3/modules/onefs_open.c 		if (fsp->fh->fd == -1) {
fsp               270 source3/modules/onefs_open.c 			ret = SMB_VFS_FSTAT(fsp, psbuf);
fsp               281 source3/modules/onefs_open.c 			fd_close(fsp);
fsp               293 source3/modules/onefs_open.c 		fd_close(fsp);
fsp               298 source3/modules/onefs_open.c 	fsp->mode = psbuf->st_mode;
fsp               299 source3/modules/onefs_open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp               300 source3/modules/onefs_open.c 	fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp               301 source3/modules/onefs_open.c 	fsp->file_pid = req ? req->smbpid : 0;
fsp               302 source3/modules/onefs_open.c 	fsp->can_lock = True;
fsp               303 source3/modules/onefs_open.c 	fsp->can_read = (access_mask & (FILE_READ_DATA)) ? True : False;
fsp               305 source3/modules/onefs_open.c 		fsp->can_write = False;
fsp               307 source3/modules/onefs_open.c 		fsp->can_write = (access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) ?
fsp               310 source3/modules/onefs_open.c 	fsp->print_file = False;
fsp               311 source3/modules/onefs_open.c 	fsp->modified = False;
fsp               312 source3/modules/onefs_open.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp               313 source3/modules/onefs_open.c 	fsp->is_directory = False;
fsp               316 source3/modules/onefs_open.c 		fsp->aio_write_behind = True;
fsp               319 source3/modules/onefs_open.c 	string_set(&fsp->fsp_name, path);
fsp               320 source3/modules/onefs_open.c 	fsp->wcp = NULL; /* Write cache pointer. */
fsp               324 source3/modules/onefs_open.c 		 fsp->fsp_name,
fsp               325 source3/modules/onefs_open.c 		 BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write),
fsp               439 source3/modules/onefs_open.c 				  files_struct *fsp,
fsp               483 source3/modules/onefs_open.c 		return print_fsp_open(req, conn, fname, req->vuid, fsp, psbuf);
fsp               810 source3/modules/onefs_open.c 	DEBUG(10, ("fsp = %p\n", fsp));
fsp               812 source3/modules/onefs_open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp               813 source3/modules/onefs_open.c 	fsp->share_access = share_access;
fsp               814 source3/modules/onefs_open.c 	fsp->fh->private_options = create_options;
fsp               815 source3/modules/onefs_open.c 	fsp->access_mask = open_access_mask; /* We change this to the
fsp               818 source3/modules/onefs_open.c 	fsp->posix_open = posix_open;
fsp               821 source3/modules/onefs_open.c 	fsp->oplock_type = (oplock_request & ~SAMBA_PRIVATE_OPLOCK_MASK);
fsp               824 source3/modules/onefs_open.c 		request_time = fsp->open_time;
fsp               879 source3/modules/onefs_open.c 		SMB_ASSERT(fsp->oplock_type == NO_OPLOCK);
fsp               883 source3/modules/onefs_open.c 	status = onefs_open_file(fsp,
fsp               894 source3/modules/onefs_open.c 				 fsp->oplock_type,
fsp               979 source3/modules/onefs_open.c 							fsp,
fsp              1091 source3/modules/onefs_open.c 	fsp->oplock_type = granted_oplock;
fsp              1094 source3/modules/onefs_open.c 		onefs_set_oplock_callback(oplock_callback_id, fsp);
fsp              1097 source3/modules/onefs_open.c 		SMB_ASSERT(fsp->oplock_type == NO_OPLOCK);
fsp              1117 source3/modules/onefs_open.c 		id = fsp->file_id;
fsp              1126 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1137 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1170 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1183 source3/modules/onefs_open.c 	if (fsp->fh->fd != -1) {
fsp              1184 source3/modules/onefs_open.c 		ret_flock = SMB_VFS_KERNEL_FLOCK(fsp, share_access);
fsp              1188 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1200 source3/modules/onefs_open.c 	fsp->share_access = share_access;
fsp              1201 source3/modules/onefs_open.c 	fsp->fh->private_options = create_options;
fsp              1205 source3/modules/onefs_open.c 	fsp->access_mask = access_mask | FILE_READ_ATTRIBUTES;
fsp              1210 source3/modules/onefs_open.c 			fsp->oplock_type = NO_OPLOCK;
fsp              1231 source3/modules/onefs_open.c 	if ((fsp->oplock_type != NO_OPLOCK) &&
fsp              1232 source3/modules/onefs_open.c 	    (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK)) {
fsp              1233 source3/modules/onefs_open.c 		if (!set_file_oplock(fsp, fsp->oplock_type)) {
fsp              1235 source3/modules/onefs_open.c 			fsp->oplock_type = NO_OPLOCK;
fsp              1239 source3/modules/onefs_open.c 	if (fsp->oplock_type == LEVEL_II_OPLOCK &&
fsp              1246 source3/modules/onefs_open.c 		release_file_oplock(fsp);
fsp              1254 source3/modules/onefs_open.c 	set_share_mode(lck, fsp, conn->server_info->utok.uid, 0,
fsp              1255 source3/modules/onefs_open.c 		       fsp->oplock_type);
fsp              1259 source3/modules/onefs_open.c 		status = can_set_delete_on_close(fsp, True, new_dos_attributes);
fsp              1263 source3/modules/onefs_open.c 			del_share_mode(lck, fsp);
fsp              1265 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1270 source3/modules/onefs_open.c 		fsp->initial_delete_on_close = True;
fsp              1284 source3/modules/onefs_open.c 		if (SMB_VFS_FCHMOD_ACL(fsp, unx_mode) == -1 &&
fsp              1298 source3/modules/onefs_open.c 			ret = SMB_VFS_FCHMOD_ACL(fsp, new_unx_mode);
fsp              1311 source3/modules/onefs_open.c 		    (SMB_VFS_FCHMOD(fsp, new_unx_mode) == -1))
fsp              1344 source3/modules/onefs_open.c 	files_struct *fsp = NULL;
fsp              1431 source3/modules/onefs_open.c 	status = file_new(req, conn, &fsp);
fsp              1442 source3/modules/onefs_open.c 	fsp->fh->fd = onefs_sys_create_file(conn,
fsp              1457 source3/modules/onefs_open.c 	if (fsp->fh->fd == -1) {
fsp              1477 source3/modules/onefs_open.c 		file_free(req, fsp);
fsp              1538 source3/modules/onefs_open.c 	if(SMB_VFS_FSTAT(fsp, psbuf) != 0) {
fsp              1539 source3/modules/onefs_open.c 		fd_close(fsp);
fsp              1540 source3/modules/onefs_open.c 		file_free(req, fsp);
fsp              1545 source3/modules/onefs_open.c 	fsp->mode = psbuf->st_mode;
fsp              1546 source3/modules/onefs_open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp              1547 source3/modules/onefs_open.c 	fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp              1548 source3/modules/onefs_open.c 	fsp->file_pid = req ? req->smbpid : 0;
fsp              1549 source3/modules/onefs_open.c 	fsp->can_lock = False;
fsp              1550 source3/modules/onefs_open.c 	fsp->can_read = False;
fsp              1551 source3/modules/onefs_open.c 	fsp->can_write = False;
fsp              1553 source3/modules/onefs_open.c 	fsp->share_access = share_access;
fsp              1554 source3/modules/onefs_open.c 	fsp->fh->private_options = create_options;
fsp              1558 source3/modules/onefs_open.c 	fsp->access_mask = access_mask | FILE_READ_ATTRIBUTES;
fsp              1559 source3/modules/onefs_open.c 	fsp->print_file = False;
fsp              1560 source3/modules/onefs_open.c 	fsp->modified = False;
fsp              1561 source3/modules/onefs_open.c 	fsp->oplock_type = NO_OPLOCK;
fsp              1562 source3/modules/onefs_open.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp              1563 source3/modules/onefs_open.c 	fsp->is_directory = True;
fsp              1564 source3/modules/onefs_open.c 	fsp->posix_open = posix_open;
fsp              1566 source3/modules/onefs_open.c 	string_set(&fsp->fsp_name,fname);
fsp              1574 source3/modules/onefs_open.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id,
fsp              1581 source3/modules/onefs_open.c 		fd_close(fsp);
fsp              1582 source3/modules/onefs_open.c 		file_free(req, fsp);
fsp              1588 source3/modules/onefs_open.c 		fd_close(fsp);
fsp              1589 source3/modules/onefs_open.c 		file_free(req, fsp);
fsp              1593 source3/modules/onefs_open.c 	set_share_mode(lck, fsp, conn->server_info->utok.uid, 0, NO_OPLOCK);
fsp              1600 source3/modules/onefs_open.c 		status = can_set_delete_on_close(fsp, True, 0);
fsp              1604 source3/modules/onefs_open.c 			fd_close(fsp);
fsp              1605 source3/modules/onefs_open.c 			file_free(req, fsp);
fsp              1612 source3/modules/onefs_open.c 			fsp->initial_delete_on_close = True;
fsp              1622 source3/modules/onefs_open.c 	*result = fsp;
fsp              1649 source3/modules/onefs_open.c 	files_struct *fsp = NULL;
fsp              1821 source3/modules/onefs_open.c 			&fsp,				/* result */
fsp              1830 source3/modules/onefs_open.c 		status = file_new(req, conn, &fsp);
fsp              1840 source3/modules/onefs_open.c 			fsp->base_fsp = base_fsp;
fsp              1854 source3/modules/onefs_open.c 			fsp,				/* result */
fsp              1860 source3/modules/onefs_open.c 			file_free(req, fsp);
fsp              1861 source3/modules/onefs_open.c 			fsp = NULL;
fsp              1895 source3/modules/onefs_open.c 				&fsp,			/* result */
fsp              1905 source3/modules/onefs_open.c 	fsp->base_fsp = base_fsp;
fsp              1907 source3/modules/onefs_open.c 	SMB_ASSERT(fsp);
fsp              1910 source3/modules/onefs_open.c 		status = set_ea(conn, fsp, fname, ea_list);
fsp              1916 source3/modules/onefs_open.c 	if (!fsp->is_directory && S_ISDIR(sbuf.st_mode)) {
fsp              1925 source3/modules/onefs_open.c 			fsp->initial_allocation_size = smb_roundup(
fsp              1926 source3/modules/onefs_open.c 				fsp->conn, allocation_size);
fsp              1927 source3/modules/onefs_open.c 			if (fsp->is_directory) {
fsp              1933 source3/modules/onefs_open.c 				    fsp, fsp->initial_allocation_size) == -1) {
fsp              1938 source3/modules/onefs_open.c 			fsp->initial_allocation_size = smb_roundup(
fsp              1939 source3/modules/onefs_open.c 				fsp->conn, (uint64_t)sbuf.st_size);
fsp              1945 source3/modules/onefs_open.c 	*result = fsp;
fsp              1950 source3/modules/onefs_open.c 		if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
fsp              1954 source3/modules/onefs_open.c 			SMB_VFS_FSTAT(fsp, psbuf);
fsp              1962 source3/modules/onefs_open.c 	if (fsp != NULL) {
fsp              1963 source3/modules/onefs_open.c 		if (base_fsp && fsp->base_fsp == base_fsp) {
fsp              1970 source3/modules/onefs_open.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              1971 source3/modules/onefs_open.c 		fsp = NULL;
fsp              2013 source3/modules/onefs_open.c 	files_struct *fsp = NULL;
fsp              2112 source3/modules/onefs_open.c 		&fsp,					/* result */
fsp              2129 source3/modules/onefs_open.c 	if (fsp) {
fsp              2132 source3/modules/onefs_open.c 		    VFS_ADD_FSP_EXTENSION(handle, fsp, struct onefs_fsp_data,
fsp              2143 source3/modules/onefs_open.c 	*result = fsp;
fsp              2155 source3/modules/onefs_open.c 	if (fsp != NULL) {
fsp              2156 source3/modules/onefs_open.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              2157 source3/modules/onefs_open.c 		fsp = NULL;
fsp                76 source3/modules/onefs_streams.c int onefs_close(vfs_handle_struct *handle, struct files_struct *fsp)
fsp                80 source3/modules/onefs_streams.c 	if (fsp->base_fsp) {
fsp                81 source3/modules/onefs_streams.c 		ret = SMB_VFS_NEXT_CLOSE(handle, fsp->base_fsp);
fsp                83 source3/modules/onefs_streams.c 	ret2 = SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp               337 source3/modules/onefs_streams.c int onefs_fstat(vfs_handle_struct *handle, struct files_struct *fsp,
fsp               344 source3/modules/onefs_streams.c 	ret = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp               350 source3/modules/onefs_streams.c 	if (fsp != NULL && fsp->base_fsp != NULL) {
fsp               351 source3/modules/onefs_streams.c 		ret = sys_fstat(fsp->base_fsp->fh->fd, &base_sbuf);
fsp               357 source3/modules/onefs_streams.c 	onefs_adjust_stat_time(handle, fsp->fsp_name, sbuf);
fsp               516 source3/modules/onefs_streams.c static NTSTATUS walk_onefs_streams(connection_struct *conn, files_struct *fsp,
fsp               537 source3/modules/onefs_streams.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fsp               538 source3/modules/onefs_streams.c 		base_fd = fsp->fh->fd;
fsp               643 source3/modules/onefs_streams.c 			  struct files_struct *fsp,
fsp               655 source3/modules/onefs_streams.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fsp               656 source3/modules/onefs_streams.c 		if (is_ntfs_stream_name(fsp->fsp_name)) {
fsp               659 source3/modules/onefs_streams.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               684 source3/modules/onefs_streams.c 				    SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp,
fsp               697 source3/modules/onefs_streams.c 		status = walk_onefs_streams(handle->conn, fsp, fname,
fsp               181 source3/modules/vfs_acl_tdb.c 			files_struct *fsp,
fsp               195 source3/modules/vfs_acl_tdb.c 	if (fsp && fsp->fh->fd != -1) {
fsp               196 source3/modules/vfs_acl_tdb.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               198 source3/modules/vfs_acl_tdb.c 		if (fsp && fsp->posix_open) {
fsp               270 source3/modules/vfs_acl_tdb.c 				files_struct *fsp,
fsp               282 source3/modules/vfs_acl_tdb.c 			(unsigned int)pblob->length, fsp->fsp_name));
fsp               287 source3/modules/vfs_acl_tdb.c 	if (fsp->fh->fd != -1) {
fsp               288 source3/modules/vfs_acl_tdb.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               290 source3/modules/vfs_acl_tdb.c 		if (fsp->posix_open) {
fsp               291 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_LSTAT(handle->conn, fsp->fsp_name, &sbuf);
fsp               293 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_STAT(handle->conn, fsp->fsp_name, &sbuf);
fsp               372 source3/modules/vfs_acl_tdb.c 					files_struct *fsp,
fsp               381 source3/modules/vfs_acl_tdb.c 	if (fsp && name == NULL) {
fsp               382 source3/modules/vfs_acl_tdb.c 		name = fsp->fsp_name;
fsp               387 source3/modules/vfs_acl_tdb.c 	status = get_acl_blob(ctx, handle, fsp, name, &blob);
fsp               452 source3/modules/vfs_acl_tdb.c 					files_struct *fsp,
fsp               513 source3/modules/vfs_acl_tdb.c 		if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
fsp               514 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               516 source3/modules/vfs_acl_tdb.c 			if (fsp && fsp->posix_open) {
fsp               540 source3/modules/vfs_acl_tdb.c 	if (fsp) {
fsp               541 source3/modules/vfs_acl_tdb.c 		return store_acl_blob_fsp(handle, fsp, &blob);
fsp               553 source3/modules/vfs_acl_tdb.c 					files_struct *fsp,
fsp               571 source3/modules/vfs_acl_tdb.c 					fsp->access_mask,
fsp               590 source3/modules/vfs_acl_tdb.c 	fsp->fh->fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               592 source3/modules/vfs_acl_tdb.c 	if (!file_existed && fsp->fh->fd != -1) {
fsp               594 source3/modules/vfs_acl_tdb.c 		string_set(&fsp->fsp_name, fname);
fsp               595 source3/modules/vfs_acl_tdb.c 		inherit_new_acl(handle, fname, fsp, false);
fsp               598 source3/modules/vfs_acl_tdb.c 	return fsp->fh->fd;
fsp               685 source3/modules/vfs_acl_tdb.c static NTSTATUS fget_nt_acl_tdb(vfs_handle_struct *handle, files_struct *fsp,
fsp               688 source3/modules/vfs_acl_tdb.c 	NTSTATUS status = get_nt_acl_tdb_internal(handle, fsp,
fsp               693 source3/modules/vfs_acl_tdb.c 				fsp->fsp_name));
fsp               700 source3/modules/vfs_acl_tdb.c 			fsp->fsp_name,
fsp               703 source3/modules/vfs_acl_tdb.c 	return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp,
fsp               737 source3/modules/vfs_acl_tdb.c static NTSTATUS fset_nt_acl_tdb(vfs_handle_struct *handle, files_struct *fsp,
fsp               745 source3/modules/vfs_acl_tdb.c 			fsp->fsp_name));
fsp               750 source3/modules/vfs_acl_tdb.c 	status = SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
fsp               765 source3/modules/vfs_acl_tdb.c 		if (fsp->is_directory || fsp->fh->fd == -1) {
fsp               766 source3/modules/vfs_acl_tdb.c 			if (fsp->posix_open) {
fsp               767 source3/modules/vfs_acl_tdb.c 				ret = SMB_VFS_LSTAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               769 source3/modules/vfs_acl_tdb.c 				ret = SMB_VFS_STAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               772 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               795 source3/modules/vfs_acl_tdb.c 		status = append_parent_acl(fsp, psd, &new_psd);
fsp               807 source3/modules/vfs_acl_tdb.c 			fsp->fsp_name));
fsp               812 source3/modules/vfs_acl_tdb.c 	store_acl_blob_fsp(handle, fsp, &blob);
fsp               886 source3/modules/vfs_acl_tdb.c                             files_struct *fsp,
fsp               895 source3/modules/vfs_acl_tdb.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fsp               896 source3/modules/vfs_acl_tdb.c 		if (fsp->posix_open) {
fsp               897 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_LSTAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               899 source3/modules/vfs_acl_tdb.c 			ret = SMB_VFS_STAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               902 source3/modules/vfs_acl_tdb.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               909 source3/modules/vfs_acl_tdb.c 						fsp,
fsp                78 source3/modules/vfs_acl_xattr.c 			files_struct *fsp,
fsp               100 source3/modules/vfs_acl_xattr.c 	if (fsp && fsp->fh->fd != -1) {
fsp               101 source3/modules/vfs_acl_xattr.c 		sizeret = SMB_VFS_FGETXATTR(fsp, XATTR_NTACL_NAME, val, size);
fsp               167 source3/modules/vfs_acl_xattr.c 				files_struct *fsp,
fsp               174 source3/modules/vfs_acl_xattr.c 			(unsigned int)pblob->length, fsp->fsp_name));
fsp               177 source3/modules/vfs_acl_xattr.c 	if (fsp->fh->fd != -1) {
fsp               178 source3/modules/vfs_acl_xattr.c 		ret = SMB_VFS_FSETXATTR(fsp, XATTR_NTACL_NAME,
fsp               181 source3/modules/vfs_acl_xattr.c 		ret = SMB_VFS_SETXATTR(fsp->conn, fsp->fsp_name,
fsp               193 source3/modules/vfs_acl_xattr.c 			fsp->fsp_name,
fsp               240 source3/modules/vfs_acl_xattr.c 					files_struct *fsp,
fsp               249 source3/modules/vfs_acl_xattr.c 	if (fsp && name == NULL) {
fsp               250 source3/modules/vfs_acl_xattr.c 		name = fsp->fsp_name;
fsp               255 source3/modules/vfs_acl_xattr.c 	status = get_acl_blob(ctx, handle, fsp, name, &blob);
fsp               320 source3/modules/vfs_acl_xattr.c 					files_struct *fsp,
fsp               381 source3/modules/vfs_acl_xattr.c 		if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
fsp               382 source3/modules/vfs_acl_xattr.c 			ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               384 source3/modules/vfs_acl_xattr.c 			if (fsp && fsp->posix_open) {
fsp               408 source3/modules/vfs_acl_xattr.c 	if (fsp) {
fsp               409 source3/modules/vfs_acl_xattr.c 		return store_acl_blob_fsp(handle, fsp, &blob);
fsp               421 source3/modules/vfs_acl_xattr.c 					files_struct *fsp,
fsp               439 source3/modules/vfs_acl_xattr.c 					fsp->access_mask,
fsp               458 source3/modules/vfs_acl_xattr.c 	fsp->fh->fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               460 source3/modules/vfs_acl_xattr.c 	if (!file_existed && fsp->fh->fd != -1) {
fsp               462 source3/modules/vfs_acl_xattr.c 		string_set(&fsp->fsp_name, fname);
fsp               463 source3/modules/vfs_acl_xattr.c 		inherit_new_acl(handle, fname, fsp, false);
fsp               466 source3/modules/vfs_acl_xattr.c 	return fsp->fh->fd;
fsp               485 source3/modules/vfs_acl_xattr.c static NTSTATUS fget_nt_acl_xattr(vfs_handle_struct *handle, files_struct *fsp,
fsp               488 source3/modules/vfs_acl_xattr.c 	NTSTATUS status = get_nt_acl_xattr_internal(handle, fsp,
fsp               493 source3/modules/vfs_acl_xattr.c 				fsp->fsp_name));
fsp               500 source3/modules/vfs_acl_xattr.c 			fsp->fsp_name,
fsp               503 source3/modules/vfs_acl_xattr.c 	return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp,
fsp               537 source3/modules/vfs_acl_xattr.c static NTSTATUS fset_nt_acl_xattr(vfs_handle_struct *handle, files_struct *fsp,
fsp               545 source3/modules/vfs_acl_xattr.c 			fsp->fsp_name));
fsp               550 source3/modules/vfs_acl_xattr.c 	status = SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
fsp               565 source3/modules/vfs_acl_xattr.c 		if (fsp->is_directory || fsp->fh->fd == -1) {
fsp               566 source3/modules/vfs_acl_xattr.c 			if (fsp->posix_open) {
fsp               567 source3/modules/vfs_acl_xattr.c 				ret = SMB_VFS_LSTAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               569 source3/modules/vfs_acl_xattr.c 				ret = SMB_VFS_STAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp               572 source3/modules/vfs_acl_xattr.c 			ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               595 source3/modules/vfs_acl_xattr.c 		status = append_parent_acl(fsp, psd, &new_psd);
fsp               607 source3/modules/vfs_acl_xattr.c 			fsp->fsp_name));
fsp               612 source3/modules/vfs_acl_xattr.c 	store_acl_blob_fsp(handle, fsp, &blob);
fsp               646 source3/modules/vfs_acl_xattr.c                             files_struct *fsp,
fsp               650 source3/modules/vfs_acl_xattr.c 						fsp,
fsp               657 source3/modules/vfs_acl_xattr.c 	SMB_VFS_FREMOVEXATTR(fsp, XATTR_NTACL_NAME);
fsp               679 source3/modules/vfs_afsacl.c 			     struct files_struct *fsp,
fsp               685 source3/modules/vfs_afsacl.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fsp               687 source3/modules/vfs_afsacl.c 		return afs_to_nt_acl(afs_acl, fsp->conn, fsp->fsp_name,
fsp               691 source3/modules/vfs_afsacl.c 	if(SMB_VFS_FSTAT(fsp, &sbuf) != 0) {
fsp               892 source3/modules/vfs_afsacl.c static NTSTATUS afs_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               914 source3/modules/vfs_afsacl.c 	name = talloc_strdup(talloc_tos(), fsp->fsp_name);
fsp               919 source3/modules/vfs_afsacl.c 	if (!fsp->is_directory) {
fsp               934 source3/modules/vfs_afsacl.c 		DEBUG(3, ("Could not get old ACL of %s\n", fsp->fsp_name));
fsp               940 source3/modules/vfs_afsacl.c 	if (fsp->is_directory) {
fsp               950 source3/modules/vfs_afsacl.c 		if (!nt_to_afs_acl(fsp->fsp_name, security_info_sent, psd,
fsp               965 source3/modules/vfs_afsacl.c 		if (!nt_to_afs_acl(fsp->fsp_name, security_info_sent, psd,
fsp               999 source3/modules/vfs_afsacl.c 				   struct files_struct *fsp,
fsp              1006 source3/modules/vfs_afsacl.c 	DEBUG(5, ("afsacl_fget_nt_acl: %s\n", fsp->fsp_name));
fsp              1008 source3/modules/vfs_afsacl.c 	sidpts = lp_parm_bool(SNUM(fsp->conn), "afsacl", "sidpts", False);
fsp              1010 source3/modules/vfs_afsacl.c 	if (!afs_get_afs_acl(fsp->fsp_name, &acl)) {
fsp              1014 source3/modules/vfs_afsacl.c 	sd_size = afs_fto_nt_acl(&acl, fsp, security_info, ppdesc);
fsp              1045 source3/modules/vfs_afsacl.c 			 files_struct *fsp,
fsp              1049 source3/modules/vfs_afsacl.c 	return afs_set_nt_acl(handle, fsp, security_info_sent, psd);
fsp               431 source3/modules/vfs_aio_fork.c static struct files_struct *close_fsp_fd(struct files_struct *fsp,
fsp               434 source3/modules/vfs_aio_fork.c 	if ((fsp->fh != NULL) && (fsp->fh->fd != -1)) {
fsp               435 source3/modules/vfs_aio_fork.c 		close(fsp->fh->fd);
fsp               436 source3/modules/vfs_aio_fork.c 		fsp->fh->fd = -1;
fsp               552 source3/modules/vfs_aio_fork.c 			 struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               580 source3/modules/vfs_aio_fork.c 	DEBUG(10, ("sending fd %d to child %d\n", fsp->fh->fd,
fsp               583 source3/modules/vfs_aio_fork.c 	ret = write_fd(child->sockfd, &cmd, sizeof(cmd), fsp->fh->fd);
fsp               593 source3/modules/vfs_aio_fork.c 			  struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp               624 source3/modules/vfs_aio_fork.c 	DEBUG(10, ("sending fd %d to child %d\n", fsp->fh->fd,
fsp               627 source3/modules/vfs_aio_fork.c 	ret = write_fd(child->sockfd, &cmd, sizeof(cmd), fsp->fh->fd);
fsp               657 source3/modules/vfs_aio_fork.c 				  struct files_struct *fsp,
fsp               678 source3/modules/vfs_aio_fork.c 			   struct files_struct *fsp,
fsp               694 source3/modules/vfs_aio_fork.c 		if (child->aiocb->aio_fildes != fsp->fh->fd) {
fsp               713 source3/modules/vfs_aio_fork.c 			     struct files_struct *fsp,
fsp                83 source3/modules/vfs_aixacl.c 				files_struct *fsp)
fsp                95 source3/modules/vfs_aixacl.c 	DEBUG(10,("fd is %d\n",fsp->fh->fd));
fsp               106 source3/modules/vfs_aixacl.c 	rc = fstatacl(fsp->fh->fd,0,file_acl,BUFSIZ);
fsp               115 source3/modules/vfs_aixacl.c 		rc = fstatacl(fsp->fh->fd,0,file_acl,file_acl->acl_len + sizeof(struct acl));
fsp               155 source3/modules/vfs_aixacl.c 			    files_struct *fsp,
fsp               165 source3/modules/vfs_aixacl.c 	rc = fchacl(fsp->fh->fd,file_acl,file_acl->acl_len);
fsp               157 source3/modules/vfs_aixacl2.c 	files_struct *fsp, uint32 security_info,
fsp               165 source3/modules/vfs_aixacl2.c 	result = aixjfs2_get_nfs4_acl(fsp->fsp_name, &pacl, &retryPosix);
fsp               169 source3/modules/vfs_aixacl2.c 		return posix_fget_nt_acl(fsp, security_info, ppdesc);
fsp               174 source3/modules/vfs_aixacl2.c 	return smb_fget_nt_acl_nfs4(fsp, security_info, ppdesc, pacl);
fsp               256 source3/modules/vfs_aixacl2.c                                   files_struct *fsp)
fsp               261 source3/modules/vfs_aixacl2.c 	return aixjfs2_get_posix_acl(fsp->fsp_name, aixjfs2_type);
fsp               297 source3/modules/vfs_aixacl2.c static bool aixjfs2_process_smbacl(files_struct *fsp, SMB4ACL_T *smbacl)
fsp               307 source3/modules/vfs_aixacl2.c 	DEBUG(10, ("jfs2_process_smbacl invoked on %s\n", fsp->fsp_name));
fsp               356 source3/modules/vfs_aixacl2.c 		fsp->fsp_name,
fsp               372 source3/modules/vfs_aixacl2.c static NTSTATUS aixjfs2_set_nt_acl_common(files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp               379 source3/modules/vfs_aixacl2.c 		fsp->fsp_name,
fsp               386 source3/modules/vfs_aixacl2.c 			fsp, security_info_sent, psd,
fsp               389 source3/modules/vfs_aixacl2.c 		result = set_nt_acl(fsp, security_info_sent, psd);
fsp               396 source3/modules/vfs_aixacl2.c NTSTATUS aixjfs2_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp               398 source3/modules/vfs_aixacl2.c 	return aixjfs2_set_nt_acl_common(fsp, security_info_sent, psd);
fsp               440 source3/modules/vfs_aixacl2.c 			    files_struct *fsp,
fsp               447 source3/modules/vfs_aixacl2.c 	DEBUG(10, ("aixjfs2_sys_acl_set_fd invoked for %s", fsp->fsp_name));
fsp               449 source3/modules/vfs_aixacl2.c 	rc = aixjfs2_query_acl_support(fsp->fsp_name, ACL_AIXC, &acl_type_info);
fsp               460 source3/modules/vfs_aixacl2.c 		fsp->fh->fd,
fsp               469 source3/modules/vfs_aixacl2.c 			strerror(errno), fsp->fsp_name));
fsp                36 source3/modules/vfs_audit.c static int audit_open(vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode);
fsp                37 source3/modules/vfs_audit.c static int audit_close(vfs_handle_struct *handle, files_struct *fsp);
fsp                42 source3/modules/vfs_audit.c static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode);
fsp                43 source3/modules/vfs_audit.c static int audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode);
fsp               190 source3/modules/vfs_audit.c static int audit_open(vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               194 source3/modules/vfs_audit.c 	result = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               205 source3/modules/vfs_audit.c static int audit_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               209 source3/modules/vfs_audit.c 	result = SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp               212 source3/modules/vfs_audit.c 	       fsp->fh->fd,
fsp               275 source3/modules/vfs_audit.c static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               279 source3/modules/vfs_audit.c 	result = SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
fsp               282 source3/modules/vfs_audit.c 	       fsp->fsp_name, mode,
fsp               289 source3/modules/vfs_audit.c static int audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               293 source3/modules/vfs_audit.c 	result = SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode);
fsp               296 source3/modules/vfs_audit.c 	       fsp->fsp_name, mode,
fsp                50 source3/modules/vfs_cacheprime.c 			files_struct *		        fsp,
fsp                57 source3/modules/vfs_cacheprime.c         last = (SMB_OFF_T *)VFS_ADD_FSP_EXTENSION(handle, fsp, SMB_OFF_T, NULL);
fsp                75 source3/modules/vfs_cacheprime.c             fsp->fsp_name));
fsp                77 source3/modules/vfs_cacheprime.c         nread = sys_pread(fsp->fh->fd, g_readbuf, g_readsz, *last);
fsp               142 source3/modules/vfs_cacheprime.c                 files_struct *      fsp,
fsp               148 source3/modules/vfs_cacheprime.c         offset = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
fsp               150 source3/modules/vfs_cacheprime.c                 prime_cache(handle, fsp, offset, count);
fsp               151 source3/modules/vfs_cacheprime.c                 SMB_VFS_LSEEK(fsp, offset, SEEK_SET);
fsp               154 source3/modules/vfs_cacheprime.c         return SMB_VFS_NEXT_READ(handle, fsp, data, count);
fsp               159 source3/modules/vfs_cacheprime.c                 files_struct *      fsp,
fsp               165 source3/modules/vfs_cacheprime.c                 prime_cache(handle, fsp, offset, count);
fsp               168 source3/modules/vfs_cacheprime.c         return SMB_VFS_NEXT_PREAD(handle, fsp, data, count, offset);
fsp               109 source3/modules/vfs_cap.c static int cap_open(vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               118 source3/modules/vfs_cap.c 	return SMB_VFS_NEXT_OPEN(handle, cappath, fsp, flags, mode);
fsp               356 source3/modules/vfs_cap.c static ssize_t cap_fgetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *path, void *value, size_t size)
fsp               364 source3/modules/vfs_cap.c         return SMB_VFS_NEXT_FGETXATTR(handle, fsp, cappath, value, size);
fsp               413 source3/modules/vfs_cap.c static int cap_fremovexattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *path)
fsp               421 source3/modules/vfs_cap.c         return SMB_VFS_NEXT_FREMOVEXATTR(handle, fsp, cappath);
fsp               448 source3/modules/vfs_cap.c static int cap_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *path, const void *value, size_t size, int flags)
fsp               456 source3/modules/vfs_cap.c         return SMB_VFS_NEXT_FSETXATTR(handle, fsp, cappath, value, size, flags);
fsp               137 source3/modules/vfs_catia.c 		      files_struct *fsp,
fsp               147 source3/modules/vfs_catia.c         return SMB_VFS_NEXT_OPEN(handle, name, fsp, flags, mode);
fsp               101 source3/modules/vfs_commit.c         files_struct *		        fsp)
fsp               105 source3/modules/vfs_commit.c         if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp))) {
fsp               111 source3/modules/vfs_commit.c                         return commit_do(c, fsp->fh->fd);
fsp               119 source3/modules/vfs_commit.c         files_struct *		        fsp,
fsp               125 source3/modules/vfs_commit.c         if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp)) == NULL) {
fsp               132 source3/modules/vfs_commit.c 		return commit_do(c, fsp->fh->fd);
fsp               144 source3/modules/vfs_commit.c 		if (commit_do(c, fsp->fh->fd) == -1) {
fsp               171 source3/modules/vfs_commit.c 	files_struct *	    fsp,
fsp               182 source3/modules/vfs_commit.c                 return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               193 source3/modules/vfs_commit.c                 c = VFS_ADD_FSP_EXTENSION(handle, fsp, struct commit_info, NULL);
fsp               211 source3/modules/vfs_commit.c         fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               213 source3/modules/vfs_commit.c 		VFS_REMOVE_FSP_EXTENSION(handle, fsp);
fsp               220 source3/modules/vfs_commit.c                 if (SMB_VFS_FSTAT(fsp, &st) == -1) {
fsp               231 source3/modules/vfs_commit.c         files_struct *      fsp,
fsp               236 source3/modules/vfs_commit.c         ret = SMB_VFS_NEXT_WRITE(handle, fsp, data, count);
fsp               239 source3/modules/vfs_commit.c                 if (commit(handle, fsp, fsp->fh->pos, ret) == -1) {
fsp               249 source3/modules/vfs_commit.c         files_struct *      fsp,
fsp               256 source3/modules/vfs_commit.c         ret = SMB_VFS_NEXT_PWRITE(handle, fsp, data, count, offset);
fsp               258 source3/modules/vfs_commit.c                 if (commit(handle, fsp, offset, ret) == -1) {
fsp               268 source3/modules/vfs_commit.c         files_struct *      fsp)
fsp               271 source3/modules/vfs_commit.c         commit_all(handle, fsp);
fsp               272 source3/modules/vfs_commit.c         return SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp               277 source3/modules/vfs_commit.c         files_struct *      fsp,
fsp               282 source3/modules/vfs_commit.c         result = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, len);
fsp               285 source3/modules/vfs_commit.c 		if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp))) {
fsp               286 source3/modules/vfs_commit.c 			commit(handle, fsp, len, 0);
fsp                82 source3/modules/vfs_default.c static int vfswrap_get_shadow_copy_data(struct vfs_handle_struct *handle, struct files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
fsp               267 source3/modules/vfs_default.c 	files_struct *fsp, int flags, mode_t mode)
fsp               303 source3/modules/vfs_default.c static int vfswrap_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               308 source3/modules/vfs_default.c 	result = fd_close_posix(fsp);
fsp               313 source3/modules/vfs_default.c static ssize_t vfswrap_read(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n)
fsp               318 source3/modules/vfs_default.c 	result = sys_read(fsp->fh->fd, data, n);
fsp               323 source3/modules/vfs_default.c static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void *data,
fsp               330 source3/modules/vfs_default.c 	result = sys_pread(fsp->fh->fd, data, n, offset);
fsp               335 source3/modules/vfs_default.c 		result = SMB_VFS_READ(fsp, data, n);
fsp               336 source3/modules/vfs_default.c 		fsp->fh->pos = 0;
fsp               343 source3/modules/vfs_default.c 	curr = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
fsp               346 source3/modules/vfs_default.c 		result = SMB_VFS_READ(fsp, data, n);
fsp               347 source3/modules/vfs_default.c 		fsp->fh->pos = 0;
fsp               351 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, offset, SEEK_SET) == -1) {
fsp               356 source3/modules/vfs_default.c 	result = SMB_VFS_READ(fsp, data, n);
fsp               359 source3/modules/vfs_default.c 	SMB_VFS_LSEEK(fsp, curr, SEEK_SET);
fsp               367 source3/modules/vfs_default.c static ssize_t vfswrap_write(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n)
fsp               372 source3/modules/vfs_default.c 	result = sys_write(fsp->fh->fd, data, n);
fsp               377 source3/modules/vfs_default.c static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, const void *data,
fsp               384 source3/modules/vfs_default.c 	result = sys_pwrite(fsp->fh->fd, data, n, offset);
fsp               389 source3/modules/vfs_default.c 		result = SMB_VFS_WRITE(fsp, data, n);
fsp               396 source3/modules/vfs_default.c 	curr = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
fsp               401 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, offset, SEEK_SET) == -1) {
fsp               405 source3/modules/vfs_default.c 	result = SMB_VFS_WRITE(fsp, data, n);
fsp               408 source3/modules/vfs_default.c 	SMB_VFS_LSEEK(fsp, curr, SEEK_SET);
fsp               416 source3/modules/vfs_default.c static SMB_OFF_T vfswrap_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T offset, int whence)
fsp               423 source3/modules/vfs_default.c 	if (fsp->fh->fd != -1)
fsp               424 source3/modules/vfs_default.c 		result = sys_lseek(fsp->fh->fd, offset, whence);
fsp               571 source3/modules/vfs_default.c static int vfswrap_fsync(vfs_handle_struct *handle, files_struct *fsp)
fsp               577 source3/modules/vfs_default.c 	result = fsync(fsp->fh->fd);
fsp               595 source3/modules/vfs_default.c static int vfswrap_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
fsp               600 source3/modules/vfs_default.c 	result = sys_fstat(fsp->fh->fd, sbuf);
fsp               620 source3/modules/vfs_default.c 				       struct files_struct *fsp,
fsp               638 source3/modules/vfs_default.c 	if (fsp && fsp->initial_allocation_size)
fsp               639 source3/modules/vfs_default.c 		result = MAX(result,fsp->initial_allocation_size);
fsp               686 source3/modules/vfs_default.c static int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               700 source3/modules/vfs_default.c 		if ((result = SMB_VFS_FCHMOD_ACL(fsp, mode)) == 0) {
fsp               709 source3/modules/vfs_default.c 	result = fchmod(fsp->fh->fd, mode);
fsp               729 source3/modules/vfs_default.c static int vfswrap_fchown(vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid)
fsp               735 source3/modules/vfs_default.c 	result = fchown(fsp->fh->fd, uid, gid);
fsp               816 source3/modules/vfs_default.c static int strict_allocate_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T len)
fsp               819 source3/modules/vfs_default.c 	SMB_OFF_T currpos = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
fsp               826 source3/modules/vfs_default.c 	if (SMB_VFS_FSTAT(fsp, &st) == -1)
fsp               841 source3/modules/vfs_default.c 		return sys_ftruncate(fsp->fh->fd, len);
fsp               844 source3/modules/vfs_default.c 	if (lp_strict_allocate(SNUM(fsp->conn))){
fsp               848 source3/modules/vfs_default.c 		space_avail = get_dfree_info(fsp->conn,fsp->fsp_name,false,&bsize,&dfree,&dsize);
fsp               858 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, st.st_size, SEEK_SET) != st.st_size)
fsp               868 source3/modules/vfs_default.c 		retlen = SMB_VFS_WRITE(fsp,(char *)zero_space,current_len_to_write);
fsp               876 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, currpos, SEEK_SET) != currpos)
fsp               882 source3/modules/vfs_default.c static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T len)
fsp               891 source3/modules/vfs_default.c 	if (lp_strict_allocate(SNUM(fsp->conn))) {
fsp               892 source3/modules/vfs_default.c 		result = strict_allocate_ftruncate(handle, fsp, len);
fsp               903 source3/modules/vfs_default.c 	result = sys_ftruncate(fsp->fh->fd, len);
fsp               910 source3/modules/vfs_default.c 	currpos = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
fsp               919 source3/modules/vfs_default.c 	if (SMB_VFS_FSTAT(fsp, &st) == -1) {
fsp               940 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, len-1, SEEK_SET) != len -1)
fsp               943 source3/modules/vfs_default.c 	if (SMB_VFS_WRITE(fsp, &c, 1)!=1)
fsp               947 source3/modules/vfs_default.c 	if (SMB_VFS_LSEEK(fsp, currpos, SEEK_SET) != currpos)
fsp               957 source3/modules/vfs_default.c static bool vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
fsp               962 source3/modules/vfs_default.c 	result =  fcntl_lock(fsp->fh->fd, op, offset, count, type);
fsp               967 source3/modules/vfs_default.c static int vfswrap_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
fsp               971 source3/modules/vfs_default.c 	kernel_flock(fsp->fh->fd, share_mode);
fsp               976 source3/modules/vfs_default.c static bool vfswrap_getlock(vfs_handle_struct *handle, files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
fsp               981 source3/modules/vfs_default.c 	result =  fcntl_getlock(fsp->fh->fd, poffset, pcount, ptype, ppid);
fsp               986 source3/modules/vfs_default.c static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp,
fsp               995 source3/modules/vfs_default.c 	if(linux_set_lease_sighandler(fsp->fh->fd) == -1) {
fsp               999 source3/modules/vfs_default.c 	result = linux_setlease(fsp->fh->fd, leasetype);
fsp              1111 source3/modules/vfs_default.c 				   struct files_struct *fsp,
fsp              1122 source3/modules/vfs_default.c 	if ((fsp != NULL) && (fsp->is_directory)) {
fsp              1129 source3/modules/vfs_default.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fsp              1130 source3/modules/vfs_default.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp              1155 source3/modules/vfs_default.c 	streams->alloc_size = SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp, &sbuf);
fsp              1218 source3/modules/vfs_default.c 				files_struct *fsp,
fsp              1224 source3/modules/vfs_default.c 	return strict_lock_default(fsp, plock);
fsp              1228 source3/modules/vfs_default.c 				files_struct *fsp,
fsp              1234 source3/modules/vfs_default.c 	strict_unlock_default(fsp, plock);
fsp              1240 source3/modules/vfs_default.c 				    files_struct *fsp,
fsp              1246 source3/modules/vfs_default.c 	result = posix_fget_nt_acl(fsp, security_info, ppdesc);
fsp              1263 source3/modules/vfs_default.c static NTSTATUS vfswrap_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp              1268 source3/modules/vfs_default.c 	result = set_nt_acl(fsp, security_info_sent, psd);
fsp              1288 source3/modules/vfs_default.c static int vfswrap_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp              1297 source3/modules/vfs_default.c 	result = fchmod_acl(fsp, mode);
fsp              1328 source3/modules/vfs_default.c static SMB_ACL_T vfswrap_sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp)
fsp              1330 source3/modules/vfs_default.c 	return sys_acl_get_fd(handle, fsp);
fsp              1383 source3/modules/vfs_default.c static int vfswrap_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, SMB_ACL_T theacl)
fsp              1385 source3/modules/vfs_default.c 	return sys_acl_set_fd(handle, fsp, theacl);
fsp              1427 source3/modules/vfs_default.c static ssize_t vfswrap_fgetxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name, void *value, size_t size)
fsp              1429 source3/modules/vfs_default.c 	return sys_fgetxattr(fsp->fh->fd, name, value, size);
fsp              1442 source3/modules/vfs_default.c ssize_t vfswrap_flistxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size)
fsp              1444 source3/modules/vfs_default.c 	return sys_flistxattr(fsp->fh->fd, list, size);
fsp              1457 source3/modules/vfs_default.c static int vfswrap_fremovexattr(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name)
fsp              1459 source3/modules/vfs_default.c 	return sys_fremovexattr(fsp->fh->fd, name);
fsp              1472 source3/modules/vfs_default.c static int vfswrap_fsetxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name, const void *value, size_t size, int flags)
fsp              1474 source3/modules/vfs_default.c 	return sys_fsetxattr(fsp->fh->fd, name, value, size, flags);
fsp              1477 source3/modules/vfs_default.c static int vfswrap_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              1492 source3/modules/vfs_default.c static int vfswrap_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              1507 source3/modules/vfs_default.c static ssize_t vfswrap_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              1512 source3/modules/vfs_default.c static int vfswrap_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              1514 source3/modules/vfs_default.c 	return sys_aio_cancel(fsp->fh->fd, aiocb);
fsp              1517 source3/modules/vfs_default.c static int vfswrap_aio_error(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              1522 source3/modules/vfs_default.c static int vfswrap_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb)
fsp              1527 source3/modules/vfs_default.c static int vfswrap_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *timeout)
fsp              1532 source3/modules/vfs_default.c static bool vfswrap_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp)
fsp                39 source3/modules/vfs_extd_audit.c static int audit_open(vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode);
fsp                40 source3/modules/vfs_extd_audit.c static int audit_close(vfs_handle_struct *handle, files_struct *fsp);
fsp                45 source3/modules/vfs_extd_audit.c static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode);
fsp                46 source3/modules/vfs_extd_audit.c static int audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode);
fsp               219 source3/modules/vfs_extd_audit.c static int audit_open(vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               223 source3/modules/vfs_extd_audit.c 	result = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               240 source3/modules/vfs_extd_audit.c static int audit_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               244 source3/modules/vfs_extd_audit.c 	result = SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp               248 source3/modules/vfs_extd_audit.c 		       fsp->fh->fd,
fsp               253 source3/modules/vfs_extd_audit.c 	       fsp->fh->fd,
fsp               340 source3/modules/vfs_extd_audit.c static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               344 source3/modules/vfs_extd_audit.c 	result = SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
fsp               348 source3/modules/vfs_extd_audit.c 		       fsp->fsp_name, mode,
fsp               353 source3/modules/vfs_extd_audit.c 	       fsp->fsp_name,  (unsigned int)mode,
fsp               360 source3/modules/vfs_extd_audit.c static int audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               364 source3/modules/vfs_extd_audit.c 	result = SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode);
fsp               368 source3/modules/vfs_extd_audit.c 		       fsp->fsp_name, mode,
fsp               373 source3/modules/vfs_extd_audit.c 	       fsp->fsp_name,  (unsigned int)mode,
fsp                47 source3/modules/vfs_fake_perms.c static int fake_perms_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
fsp                51 source3/modules/vfs_fake_perms.c 	ret = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp                88 source3/modules/vfs_full_audit.c                                 struct files_struct *fsp,
fsp               114 source3/modules/vfs_full_audit.c 		      const char *fname, files_struct *fsp, int flags, mode_t mode);
fsp               132 source3/modules/vfs_full_audit.c static int smb_full_audit_close(vfs_handle_struct *handle, files_struct *fsp);
fsp               133 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_read(vfs_handle_struct *handle, files_struct *fsp,
fsp               135 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_pread(vfs_handle_struct *handle, files_struct *fsp,
fsp               137 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_write(vfs_handle_struct *handle, files_struct *fsp,
fsp               139 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_pwrite(vfs_handle_struct *handle, files_struct *fsp,
fsp               142 source3/modules/vfs_full_audit.c static SMB_OFF_T smb_full_audit_lseek(vfs_handle_struct *handle, files_struct *fsp,
fsp               154 source3/modules/vfs_full_audit.c static int smb_full_audit_fsync(vfs_handle_struct *handle, files_struct *fsp);
fsp               157 source3/modules/vfs_full_audit.c static int smb_full_audit_fstat(vfs_handle_struct *handle, files_struct *fsp,
fsp               162 source3/modules/vfs_full_audit.c 		       files_struct *fsp, const SMB_STRUCT_STAT *sbuf);
fsp               167 source3/modules/vfs_full_audit.c static int smb_full_audit_fchmod(vfs_handle_struct *handle, files_struct *fsp,
fsp               171 source3/modules/vfs_full_audit.c static int smb_full_audit_fchown(vfs_handle_struct *handle, files_struct *fsp,
fsp               181 source3/modules/vfs_full_audit.c static int smb_full_audit_ftruncate(vfs_handle_struct *handle, files_struct *fsp,
fsp               183 source3/modules/vfs_full_audit.c static bool smb_full_audit_lock(vfs_handle_struct *handle, files_struct *fsp,
fsp               186 source3/modules/vfs_full_audit.c 				       struct files_struct *fsp,
fsp               188 source3/modules/vfs_full_audit.c static int smb_full_audit_linux_setlease(vfs_handle_struct *handle, files_struct *fsp,
fsp               190 source3/modules/vfs_full_audit.c static bool smb_full_audit_getlock(vfs_handle_struct *handle, files_struct *fsp,
fsp               214 source3/modules/vfs_full_audit.c 					  struct files_struct *fsp,
fsp               238 source3/modules/vfs_full_audit.c 				       struct files_struct *fsp,
fsp               241 source3/modules/vfs_full_audit.c 				         struct files_struct *fsp,
fsp               243 source3/modules/vfs_full_audit.c static NTSTATUS smb_full_audit_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               249 source3/modules/vfs_full_audit.c static NTSTATUS smb_full_audit_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               254 source3/modules/vfs_full_audit.c static int smb_full_audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               271 source3/modules/vfs_full_audit.c 				      files_struct *fsp);
fsp               299 source3/modules/vfs_full_audit.c static int smb_full_audit_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp               320 source3/modules/vfs_full_audit.c 			       struct files_struct *fsp,
fsp               327 source3/modules/vfs_full_audit.c 				struct files_struct *fsp, char *list,
fsp               336 source3/modules/vfs_full_audit.c 			      struct files_struct *fsp,
fsp               347 source3/modules/vfs_full_audit.c 			   struct files_struct *fsp, const char *name,
fsp               350 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               351 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               352 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               353 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               354 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_error(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb);
fsp               355 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb);
fsp               356 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts);
fsp               358 source3/modules/vfs_full_audit.c 				     struct files_struct *fsp);
fsp              1040 source3/modules/vfs_full_audit.c 				struct files_struct *fsp,
fsp              1045 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data, labels);
fsp              1179 source3/modules/vfs_full_audit.c 		      const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp              1183 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp              1237 source3/modules/vfs_full_audit.c static int smb_full_audit_close(vfs_handle_struct *handle, files_struct *fsp)
fsp              1241 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp              1243 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_CLOSE, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1248 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_read(vfs_handle_struct *handle, files_struct *fsp,
fsp              1253 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_READ(handle, fsp, data, n);
fsp              1255 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_READ, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1260 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_pread(vfs_handle_struct *handle, files_struct *fsp,
fsp              1265 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
fsp              1267 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_PREAD, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1272 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_write(vfs_handle_struct *handle, files_struct *fsp,
fsp              1277 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
fsp              1279 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_WRITE, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1284 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_pwrite(vfs_handle_struct *handle, files_struct *fsp,
fsp              1290 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
fsp              1292 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_PWRITE, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1297 source3/modules/vfs_full_audit.c static SMB_OFF_T smb_full_audit_lseek(vfs_handle_struct *handle, files_struct *fsp,
fsp              1302 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence);
fsp              1305 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              1352 source3/modules/vfs_full_audit.c static int smb_full_audit_fsync(vfs_handle_struct *handle, files_struct *fsp)
fsp              1356 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FSYNC(handle, fsp);
fsp              1358 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_FSYNC, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1375 source3/modules/vfs_full_audit.c static int smb_full_audit_fstat(vfs_handle_struct *handle, files_struct *fsp,
fsp              1380 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp              1382 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_FSTAT, (result >= 0), handle, "%s", fsp->fsp_name);
fsp              1400 source3/modules/vfs_full_audit.c 		       files_struct *fsp, const SMB_STRUCT_STAT *sbuf)
fsp              1404 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_GET_ALLOC_SIZE(handle, fsp, sbuf);
fsp              1435 source3/modules/vfs_full_audit.c static int smb_full_audit_fchmod(vfs_handle_struct *handle, files_struct *fsp,
fsp              1440 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
fsp              1443 source3/modules/vfs_full_audit.c 	       "%s|%o", fsp->fsp_name, mode);
fsp              1461 source3/modules/vfs_full_audit.c static int smb_full_audit_fchown(vfs_handle_struct *handle, files_struct *fsp,
fsp              1466 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FCHOWN(handle, fsp, uid, gid);
fsp              1469 source3/modules/vfs_full_audit.c 	       fsp->fsp_name, (long int)uid, (long int)gid);
fsp              1523 source3/modules/vfs_full_audit.c static int smb_full_audit_ftruncate(vfs_handle_struct *handle, files_struct *fsp,
fsp              1528 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, len);
fsp              1531 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              1536 source3/modules/vfs_full_audit.c static bool smb_full_audit_lock(vfs_handle_struct *handle, files_struct *fsp,
fsp              1541 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
fsp              1543 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_LOCK, result, handle, "%s", fsp->fsp_name);
fsp              1549 source3/modules/vfs_full_audit.c 				       struct files_struct *fsp,
fsp              1554 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode);
fsp              1557 source3/modules/vfs_full_audit.c 	       fsp->fsp_name);
fsp              1562 source3/modules/vfs_full_audit.c static int smb_full_audit_linux_setlease(vfs_handle_struct *handle, files_struct *fsp,
fsp              1567 source3/modules/vfs_full_audit.c         result = SMB_VFS_NEXT_LINUX_SETLEASE(handle, fsp, leasetype);
fsp              1570 source3/modules/vfs_full_audit.c                fsp->fsp_name);
fsp              1575 source3/modules/vfs_full_audit.c static bool smb_full_audit_getlock(vfs_handle_struct *handle, files_struct *fsp,
fsp              1580 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid);
fsp              1582 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_GETLOCK, result, handle, "%s", fsp->fsp_name);
fsp              1696 source3/modules/vfs_full_audit.c 					  struct files_struct *fsp,
fsp              1704 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_STREAMINFO(handle, fsp, fname, mem_ctx,
fsp              1742 source3/modules/vfs_full_audit.c 	    "%s:%llu-%llu. type=%d. blocking=%d", br_lck->fsp->fsp_name,
fsp              1759 source3/modules/vfs_full_audit.c 	    "%s:%llu-%llu:%d", br_lck->fsp->fsp_name, plock->start,
fsp              1775 source3/modules/vfs_full_audit.c 	    "%s:%llu-%llu:%d", br_lck->fsp->fsp_name, plock->start,
fsp              1782 source3/modules/vfs_full_audit.c 				       struct files_struct *fsp,
fsp              1787 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_STRICT_LOCK(handle, fsp, plock);
fsp              1790 source3/modules/vfs_full_audit.c 	    "%s:%llu-%llu:%d", fsp->fsp_name, plock->start,
fsp              1797 source3/modules/vfs_full_audit.c 					 struct files_struct *fsp,
fsp              1800 source3/modules/vfs_full_audit.c 	SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock);
fsp              1803 source3/modules/vfs_full_audit.c 	    "%s:%llu-%llu:%d", fsp->fsp_name, plock->start,
fsp              1809 source3/modules/vfs_full_audit.c static NTSTATUS smb_full_audit_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp              1815 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, ppdesc);
fsp              1818 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              1838 source3/modules/vfs_full_audit.c static NTSTATUS smb_full_audit_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp              1844 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
fsp              1846 source3/modules/vfs_full_audit.c 	do_log(SMB_VFS_OP_FSET_NT_ACL, NT_STATUS_IS_OK(result), handle, "%s", fsp->fsp_name);
fsp              1864 source3/modules/vfs_full_audit.c static int smb_full_audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp              1869 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode);
fsp              1872 source3/modules/vfs_full_audit.c 	       "%s|%o", fsp->fsp_name, mode);
fsp              1954 source3/modules/vfs_full_audit.c 				      files_struct *fsp)
fsp              1958 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp);
fsp              1961 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              2113 source3/modules/vfs_full_audit.c static int smb_full_audit_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
fsp              2118 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl);
fsp              2121 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              2227 source3/modules/vfs_full_audit.c 			       struct files_struct *fsp,
fsp              2232 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FGETXATTR(handle, fsp, name, value, size);
fsp              2235 source3/modules/vfs_full_audit.c 	       "%s|%s", fsp->fsp_name, name);
fsp              2265 source3/modules/vfs_full_audit.c 				struct files_struct *fsp, char *list,
fsp              2270 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FLISTXATTR(handle, fsp, list, size);
fsp              2273 source3/modules/vfs_full_audit.c 	       "%s", fsp->fsp_name);
fsp              2307 source3/modules/vfs_full_audit.c 			      struct files_struct *fsp,
fsp              2312 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FREMOVEXATTR(handle, fsp, name);
fsp              2315 source3/modules/vfs_full_audit.c 	       "%s|%s", fsp->fsp_name, name);
fsp              2353 source3/modules/vfs_full_audit.c 			   struct files_struct *fsp, const char *name,
fsp              2358 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_FSETXATTR(handle, fsp, name, value, size, flags);
fsp              2361 source3/modules/vfs_full_audit.c 	       "%s|%s", fsp->fsp_name, name);
fsp              2366 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_read(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              2370 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_READ(handle, fsp, aiocb);
fsp              2372 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2377 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_write(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              2381 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_WRITE(handle, fsp, aiocb);
fsp              2383 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2388 source3/modules/vfs_full_audit.c static ssize_t smb_full_audit_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              2392 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_RETURN(handle, fsp, aiocb);
fsp              2394 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2399 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_cancel(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              2403 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_CANCEL(handle, fsp, aiocb);
fsp              2405 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2410 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_error(struct vfs_handle_struct *handle, struct files_struct *fsp, SMB_STRUCT_AIOCB *aiocb)
fsp              2414 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_ERROR(handle, fsp, aiocb);
fsp              2416 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2421 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp, int op, SMB_STRUCT_AIOCB *aiocb)
fsp              2425 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_FSYNC(handle, fsp, op, aiocb);
fsp              2427 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2432 source3/modules/vfs_full_audit.c static int smb_full_audit_aio_suspend(struct vfs_handle_struct *handle, struct files_struct *fsp, const SMB_STRUCT_AIOCB * const aiocb[], int n, const struct timespec *ts)
fsp              2436 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_SUSPEND(handle, fsp, aiocb, n, ts);
fsp              2438 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp              2444 source3/modules/vfs_full_audit.c 				     struct files_struct *fsp)
fsp              2448 source3/modules/vfs_full_audit.c 	result = SMB_VFS_NEXT_AIO_FORCE(handle, fsp);
fsp              2450 source3/modules/vfs_full_audit.c 		"%s", fsp->fsp_name);
fsp                33 source3/modules/vfs_gpfs.c static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp, 
fsp                39 source3/modules/vfs_gpfs.c 	kernel_flock(fsp->fh->fd, share_mode);
fsp                41 source3/modules/vfs_gpfs.c 	if (!set_gpfs_sharemode(fsp, fsp->access_mask, fsp->share_access)) {
fsp                52 source3/modules/vfs_gpfs.c static int vfs_gpfs_close(vfs_handle_struct *handle, files_struct *fsp)
fsp                54 source3/modules/vfs_gpfs.c 	if ((fsp->fh != NULL) && (fsp->fh->fd != -1)) {
fsp                55 source3/modules/vfs_gpfs.c 		set_gpfs_sharemode(fsp, 0, 0);
fsp                58 source3/modules/vfs_gpfs.c 	return SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp                61 source3/modules/vfs_gpfs.c static int vfs_gpfs_setlease(vfs_handle_struct *handle, files_struct *fsp, 
fsp                68 source3/modules/vfs_gpfs.c 	if ( linux_set_lease_sighandler(fsp->fh->fd) == -1)
fsp                71 source3/modules/vfs_gpfs.c 	ret = set_gpfs_lease(fsp->fh->fd,leasetype);
fsp                76 source3/modules/vfs_gpfs.c 		ret = linux_setlease(fsp->fh->fd, leasetype);
fsp               299 source3/modules/vfs_gpfs.c 	files_struct *fsp, uint32 security_info,
fsp               306 source3/modules/vfs_gpfs.c 	result = gpfs_get_nfs4_acl(fsp->fsp_name, &pacl);
fsp               309 source3/modules/vfs_gpfs.c 		return smb_fget_nt_acl_nfs4(fsp, security_info, ppdesc, pacl);
fsp               313 source3/modules/vfs_gpfs.c 		return posix_fget_nt_acl(fsp, security_info, ppdesc);
fsp               342 source3/modules/vfs_gpfs.c static bool gpfsacl_process_smbacl(files_struct *fsp, SMB4ACL_T *smbacl)
fsp               380 source3/modules/vfs_gpfs.c 		if (!fsp->is_directory
fsp               388 source3/modules/vfs_gpfs.c 		    lp_parm_bool(fsp->conn->params->service, "gpfs",
fsp               392 source3/modules/vfs_gpfs.c 				  fsp->fsp_name));
fsp               426 source3/modules/vfs_gpfs.c 	ret = smbd_gpfs_putacl(fsp->fsp_name, GPFS_PUTACL_STRUCT | GPFS_ACL_SAMBA, gacl);
fsp               437 source3/modules/vfs_gpfs.c static NTSTATUS gpfsacl_set_nt_acl_internal(files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp               442 source3/modules/vfs_gpfs.c 	acl = gpfs_getacl_alloc(fsp->fsp_name, 0);
fsp               449 source3/modules/vfs_gpfs.c 			fsp, security_info_sent, psd,
fsp               452 source3/modules/vfs_gpfs.c 		result = set_nt_acl(fsp, security_info_sent, psd);
fsp               458 source3/modules/vfs_gpfs.c static NTSTATUS gpfsacl_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp               460 source3/modules/vfs_gpfs.c 	return gpfsacl_set_nt_acl_internal(fsp, security_info_sent, psd);
fsp               590 source3/modules/vfs_gpfs.c 					files_struct *fsp)
fsp               592 source3/modules/vfs_gpfs.c 	return gpfsacl_get_posix_acl(fsp->fsp_name, GPFS_ACL_TYPE_ACCESS);
fsp               702 source3/modules/vfs_gpfs.c 				  files_struct *fsp,
fsp               705 source3/modules/vfs_gpfs.c 	return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name, SMB_ACL_TYPE_ACCESS, theacl);
fsp               859 source3/modules/vfs_gpfs.c static int vfs_gpfs_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode)
fsp               864 source3/modules/vfs_gpfs.c 		 if (SMB_VFS_NEXT_FSTAT(handle, fsp, &st) != 0) {
fsp               873 source3/modules/vfs_gpfs.c 		 rc = gpfsacl_emu_chmod(fsp->fsp_name, mode);
fsp               875 source3/modules/vfs_gpfs.c 			 return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
fsp                27 source3/modules/vfs_gpfs.h bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
fsp               185 source3/modules/vfs_hpuxacl.c 				 files_struct *fsp)
fsp               192 source3/modules/vfs_hpuxacl.c         files_struct *file_struct_p = file_find_fd(fsp->fh->fd);
fsp               314 source3/modules/vfs_hpuxacl.c 			      files_struct *fsp,
fsp               322 source3/modules/vfs_hpuxacl.c         files_struct *file_struct_p = file_find_fd(fsp->fh->fd);
fsp                41 source3/modules/vfs_hpuxacl.h 				 files_struct *fsp);
fsp                49 source3/modules/vfs_hpuxacl.h 			   files_struct *fsp,
fsp                35 source3/modules/vfs_irixacl.c 				 files_struct *fsp)
fsp                51 source3/modules/vfs_irixacl.c 			    files_struct *fsp,
fsp                28 source3/modules/vfs_irixacl.h 				 files_struct *fsp);
fsp                36 source3/modules/vfs_irixacl.h 			   files_struct *fsp,
fsp                51 source3/modules/vfs_onefs.c 		      files_struct *fsp, int flags, mode_t mode)
fsp                55 source3/modules/vfs_onefs.c 	return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp                84 source3/modules/vfs_onefs.c 				     files_struct *fsp,
fsp                99 source3/modules/vfs_onefs.c 	if (fsp && fsp->initial_allocation_size)
fsp               100 source3/modules/vfs_onefs.c 		result = MAX(result,fsp->initial_allocation_size);
fsp                74 source3/modules/vfs_onefs_shadow_copy.c 				       files_struct *fsp,
fsp                85 source3/modules/vfs_onefs_shadow_copy.c 			  "failed for [%s]\n",fsp->conn->connectpath));
fsp               197 source3/modules/vfs_onefs_shadow_copy.c 		       files_struct *fsp, int flags, mode_t mode)
fsp               200 source3/modules/vfs_onefs_shadow_copy.c 		    (handle, cpath ?: path, fsp, flags, mode),
fsp               424 source3/modules/vfs_onefs_shadow_copy.c 			     struct files_struct *fsp,
fsp               431 source3/modules/vfs_onefs_shadow_copy.c 		    (handle, fsp, cpath ?: path, mem_ctx, num_streams,
fsp                66 source3/modules/vfs_posixacl.c 				  files_struct *fsp)
fsp                69 source3/modules/vfs_posixacl.c 	acl_t acl = acl_get_fd(fsp->fh->fd);
fsp               115 source3/modules/vfs_posixacl.c 			    files_struct *fsp,
fsp               123 source3/modules/vfs_posixacl.c 	res =  acl_set_fd(fsp->fh->fd, acl);
fsp                29 source3/modules/vfs_posixacl.h 				  files_struct *fsp);
fsp                37 source3/modules/vfs_posixacl.h 			    files_struct *fsp,
fsp               112 source3/modules/vfs_prealloc.c 			files_struct *	    fsp,
fsp               155 source3/modules/vfs_prealloc.c 	fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               167 source3/modules/vfs_prealloc.c 		psize = VFS_ADD_FSP_EXTENSION(handle, fsp, SMB_OFF_T, NULL);
fsp               178 source3/modules/vfs_prealloc.c 			VFS_REMOVE_FSP_EXTENSION(handle, fsp);
fsp               190 source3/modules/vfs_prealloc.c 	return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               194 source3/modules/vfs_prealloc.c 			files_struct *	fsp,
fsp               198 source3/modules/vfs_prealloc.c 	int ret = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
fsp               201 source3/modules/vfs_prealloc.c 	if ((psize = VFS_FETCH_FSP_EXTENSION(handle, fsp))) {
fsp               202 source3/modules/vfs_prealloc.c 		preallocate_space(fsp->fh->fd, *psize);
fsp               375 source3/modules/vfs_preopen.c 			files_struct *fsp, int flags, mode_t mode)
fsp               385 source3/modules/vfs_preopen.c 		return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               388 source3/modules/vfs_preopen.c 	res = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               405 source3/modules/vfs_preopen.c 		state, "%s/%s", fsp->conn->connectpath, fname);
fsp                80 source3/modules/vfs_readahead.c 				files_struct *fsp,
fsp                89 source3/modules/vfs_readahead.c 		int err = readahead(fsp->fh->fd, offset, (size_t)rhd->len);
fsp                91 source3/modules/vfs_readahead.c 			(unsigned int)fsp->fh->fd,
fsp                96 source3/modules/vfs_readahead.c 		int err = posix_fadvise(fsp->fh->fd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
fsp                98 source3/modules/vfs_readahead.c 			(unsigned int)fsp->fh->fd,
fsp               109 source3/modules/vfs_readahead.c         return SMB_VFS_NEXT_PREAD(handle, fsp, data, count, offset);
fsp               163 source3/modules/vfs_shadow_copy.c static int shadow_copy_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
fsp               165 source3/modules/vfs_shadow_copy.c 	SMB_STRUCT_DIR *p = SMB_VFS_NEXT_OPENDIR(handle,fsp->conn->connectpath,NULL,0);
fsp               171 source3/modules/vfs_shadow_copy.c 		DEBUG(0,("shadow_copy_get_shadow_copy_data: SMB_VFS_NEXT_OPENDIR() failed for [%s]\n",fsp->conn->connectpath));
fsp               340 source3/modules/vfs_shadow_copy2.c 			     const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               342 source3/modules/vfs_shadow_copy2.c 	SHADOW2_NEXT(OPEN, (handle, name, fsp, flags, mode), int, -1);
fsp               363 source3/modules/vfs_shadow_copy2.c static int shadow_copy2_fstat(vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
fsp               365 source3/modules/vfs_shadow_copy2.c 	int ret = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp               366 source3/modules/vfs_shadow_copy2.c 	if (ret == 0 && shadow_copy2_match_name(fsp->fsp_name)) {
fsp               367 source3/modules/vfs_shadow_copy2.c 		convert_sbuf(handle, fsp->fsp_name, sbuf);
fsp               495 source3/modules/vfs_shadow_copy2.c 					      files_struct *fsp, 
fsp               334 source3/modules/vfs_smb_traffic_analyzer.c 				files_struct *fsp, void *data, size_t n)
fsp               338 source3/modules/vfs_smb_traffic_analyzer.c 	result = SMB_VFS_NEXT_READ(handle, fsp, data, n);
fsp               339 source3/modules/vfs_smb_traffic_analyzer.c 	DEBUG(10, ("smb_traffic_analyzer_read: READ: %s\n", fsp->fsp_name ));
fsp               343 source3/modules/vfs_smb_traffic_analyzer.c 			fsp->fsp_name,
fsp               350 source3/modules/vfs_smb_traffic_analyzer.c 		files_struct *fsp, void *data, size_t n, SMB_OFF_T offset)
fsp               354 source3/modules/vfs_smb_traffic_analyzer.c 	result = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
fsp               356 source3/modules/vfs_smb_traffic_analyzer.c 	DEBUG(10, ("smb_traffic_analyzer_pread: PREAD: %s\n", fsp->fsp_name ));
fsp               360 source3/modules/vfs_smb_traffic_analyzer.c 			fsp->fsp_name,
fsp               367 source3/modules/vfs_smb_traffic_analyzer.c 			files_struct *fsp, const void *data, size_t n)
fsp               371 source3/modules/vfs_smb_traffic_analyzer.c 	result = SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
fsp               373 source3/modules/vfs_smb_traffic_analyzer.c 	DEBUG(10, ("smb_traffic_analyzer_write: WRITE: %s\n", fsp->fsp_name ));
fsp               377 source3/modules/vfs_smb_traffic_analyzer.c 			fsp->fsp_name,
fsp               383 source3/modules/vfs_smb_traffic_analyzer.c 	     files_struct *fsp, const void *data, size_t n, SMB_OFF_T offset)
fsp               387 source3/modules/vfs_smb_traffic_analyzer.c 	result = SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
fsp               389 source3/modules/vfs_smb_traffic_analyzer.c 	DEBUG(10, ("smb_traffic_analyzer_pwrite: PWRITE: %s\n", fsp->fsp_name ));
fsp               393 source3/modules/vfs_smb_traffic_analyzer.c 			fsp->fsp_name,
fsp               104 source3/modules/vfs_solarisacl.c 				    files_struct *fsp)
fsp               112 source3/modules/vfs_solarisacl.c 	if (!solaris_acl_get_fd(fsp->fh->fd, &solaris_acl, &count)) {
fsp               221 source3/modules/vfs_solarisacl.c 			      files_struct *fsp,
fsp               245 source3/modules/vfs_solarisacl.c 	if (!solaris_acl_get_fd(fsp->fh->fd, &default_acl, &default_count)) {
fsp               261 source3/modules/vfs_solarisacl.c 	ret = facl(fsp->fh->fd, SETACL, count, solaris_acl);
fsp                28 source3/modules/vfs_solarisacl.h 				    files_struct *fsp);
fsp                36 source3/modules/vfs_solarisacl.h 			      files_struct *fsp,
fsp               426 source3/modules/vfs_streams_depot.c 			      files_struct *fsp, int flags, mode_t mode)
fsp               436 source3/modules/vfs_streams_depot.c 		return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               448 source3/modules/vfs_streams_depot.c 		ret = SMB_VFS_NEXT_OPEN(handle, base, fsp, flags, mode);
fsp               465 source3/modules/vfs_streams_depot.c 	ret = SMB_VFS_NEXT_OPEN(handle, stream_fname, fsp, flags, mode);
fsp               666 source3/modules/vfs_streams_depot.c 					 struct files_struct *fsp,
fsp               677 source3/modules/vfs_streams_depot.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fsp               678 source3/modules/vfs_streams_depot.c 		if (is_ntfs_stream_name(fsp->fsp_name)) {
fsp               681 source3/modules/vfs_streams_depot.c 		ret = SMB_VFS_NEXT_FSTAT(handle, fsp, &sbuf);
fsp               705 source3/modules/vfs_streams_depot.c 				    SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp,
fsp                33 source3/modules/vfs_streams_xattr.c 	files_struct *fsp;
fsp                71 source3/modules/vfs_streams_xattr.c 				files_struct *fsp,
fsp                79 source3/modules/vfs_streams_xattr.c 	status = get_ea_value(talloc_tos(), conn, fsp, fname,
fsp                98 source3/modules/vfs_streams_xattr.c 	if (sio->fsp->fsp_name == sio->fsp_name_ptr) {
fsp               102 source3/modules/vfs_streams_xattr.c 	status = split_ntfs_stream_name(talloc_tos(), sio->fsp->fsp_name,
fsp               122 source3/modules/vfs_streams_xattr.c 	sio->xattr_name = talloc_strdup(VFS_MEMCTX_FSP_EXTENSION(sio->handle, sio->fsp),
fsp               124 source3/modules/vfs_streams_xattr.c 	sio->base = talloc_strdup(VFS_MEMCTX_FSP_EXTENSION(sio->handle, sio->fsp),
fsp               126 source3/modules/vfs_streams_xattr.c 	sio->fsp_name_ptr = sio->fsp->fsp_name;
fsp               135 source3/modules/vfs_streams_xattr.c static int streams_xattr_fstat(vfs_handle_struct *handle, files_struct *fsp,
fsp               140 source3/modules/vfs_streams_xattr.c 		VFS_FETCH_FSP_EXTENSION(handle, fsp);
fsp               142 source3/modules/vfs_streams_xattr.c 	DEBUG(10, ("streams_xattr_fstat called for %d\n", fsp->fh->fd));
fsp               144 source3/modules/vfs_streams_xattr.c 	if (io == NULL || fsp->base_fsp == NULL) {
fsp               145 source3/modules/vfs_streams_xattr.c 		return SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
fsp               162 source3/modules/vfs_streams_xattr.c 	sbuf->st_size = get_xattr_size(handle->conn, fsp->base_fsp,
fsp               281 source3/modules/vfs_streams_xattr.c 			      files_struct *fsp, int flags, mode_t mode)
fsp               295 source3/modules/vfs_streams_xattr.c 		return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fsp               308 source3/modules/vfs_streams_xattr.c 		hostfd = SMB_VFS_NEXT_OPEN(handle, base, fsp, flags, mode);
fsp               329 source3/modules/vfs_streams_xattr.c         hostfd = SMB_VFS_OPEN(handle->conn, base, fsp, baseflags, mode);
fsp               337 source3/modules/vfs_streams_xattr.c                 hostfd = SMB_VFS_OPEN(handle->conn, fname, fsp, baseflags,
fsp               377 source3/modules/vfs_streams_xattr.c 			if (fsp->base_fsp->fh->fd != -1) {
fsp               379 source3/modules/vfs_streams_xattr.c 					fsp->base_fsp, xattr_name,
fsp               397 source3/modules/vfs_streams_xattr.c 		if (fsp->base_fsp->fh->fd != -1) {
fsp               399 source3/modules/vfs_streams_xattr.c 					fsp->base_fsp, xattr_name,
fsp               414 source3/modules/vfs_streams_xattr.c         sio = (struct stream_io *)VFS_ADD_FSP_EXTENSION(handle, fsp,
fsp               422 source3/modules/vfs_streams_xattr.c         sio->xattr_name = talloc_strdup(VFS_MEMCTX_FSP_EXTENSION(handle, fsp),
fsp               424 source3/modules/vfs_streams_xattr.c         sio->base = talloc_strdup(VFS_MEMCTX_FSP_EXTENSION(handle, fsp),
fsp               426 source3/modules/vfs_streams_xattr.c 	sio->fsp_name_ptr = fsp->fsp_name;
fsp               428 source3/modules/vfs_streams_xattr.c 	sio->fsp = fsp;
fsp               444 source3/modules/vfs_streams_xattr.c 		SMB_VFS_CLOSE(fsp);
fsp               605 source3/modules/vfs_streams_xattr.c static NTSTATUS walk_xattr_streams(connection_struct *conn, files_struct *fsp,
fsp               616 source3/modules/vfs_streams_xattr.c 	status = get_ea_names_from_file(talloc_tos(), conn, fsp, fname,
fsp               630 source3/modules/vfs_streams_xattr.c 		status = get_ea_value(names, conn, fsp, fname, names[i], &ea);
fsp               708 source3/modules/vfs_streams_xattr.c 					 struct files_struct *fsp,
fsp               719 source3/modules/vfs_streams_xattr.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fsp               720 source3/modules/vfs_streams_xattr.c 		if (is_ntfs_stream_name(fsp->fsp_name)) {
fsp               723 source3/modules/vfs_streams_xattr.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               747 source3/modules/vfs_streams_xattr.c 				    SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp,
fsp               757 source3/modules/vfs_streams_xattr.c 	status = walk_xattr_streams(handle->conn, fsp, fname,
fsp               781 source3/modules/vfs_streams_xattr.c 				    files_struct *fsp, const void *data,
fsp               785 source3/modules/vfs_streams_xattr.c 		(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
fsp               793 source3/modules/vfs_streams_xattr.c 		return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
fsp               800 source3/modules/vfs_streams_xattr.c 	status = get_ea_value(talloc_tos(), handle->conn, fsp->base_fsp,
fsp               824 source3/modules/vfs_streams_xattr.c 	if (fsp->base_fsp->fh->fd != -1) {
fsp               825 source3/modules/vfs_streams_xattr.c 		ret = SMB_VFS_FSETXATTR(fsp->base_fsp,
fsp               829 source3/modules/vfs_streams_xattr.c 		ret = SMB_VFS_SETXATTR(fsp->conn, fsp->base_fsp->fsp_name,
fsp               843 source3/modules/vfs_streams_xattr.c 				   files_struct *fsp, void *data,
fsp               847 source3/modules/vfs_streams_xattr.c 		(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
fsp               853 source3/modules/vfs_streams_xattr.c 		return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
fsp               860 source3/modules/vfs_streams_xattr.c 	status = get_ea_value(talloc_tos(), handle->conn, fsp->base_fsp,
fsp               881 source3/modules/vfs_streams_xattr.c 					struct files_struct *fsp,
fsp               889 source3/modules/vfs_streams_xattr.c 		(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
fsp               892 source3/modules/vfs_streams_xattr.c 		fsp->fsp_name,
fsp               896 source3/modules/vfs_streams_xattr.c 		return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
fsp               903 source3/modules/vfs_streams_xattr.c 	status = get_ea_value(talloc_tos(), handle->conn, fsp->base_fsp,
fsp               928 source3/modules/vfs_streams_xattr.c 	if (fsp->base_fsp->fh->fd != -1) {
fsp               929 source3/modules/vfs_streams_xattr.c 		ret = SMB_VFS_FSETXATTR(fsp->base_fsp,
fsp               933 source3/modules/vfs_streams_xattr.c 		ret = SMB_VFS_SETXATTR(fsp->conn, fsp->base_fsp->fsp_name,
fsp               141 source3/modules/vfs_syncops.c 			const char *fname, files_struct *fsp, int flags, mode_t mode)
fsp               143 source3/modules/vfs_syncops.c 	SYNCOPS_NEXT(OPEN, (flags&O_CREAT?fname:NULL), (handle, fname, fsp, flags, mode));
fsp               168 source3/modules/vfs_syncops.c static int syncops_close(vfs_handle_struct *handle, files_struct *fsp)
fsp               170 source3/modules/vfs_syncops.c 	if (fsp->can_write && sync_onclose) {
fsp               173 source3/modules/vfs_syncops.c 		fsync(fsp->fh->fd);
fsp               175 source3/modules/vfs_syncops.c 	return SMB_VFS_NEXT_CLOSE(handle, fsp);
fsp                70 source3/modules/vfs_tru64acl.c 				  files_struct *fsp)
fsp                73 source3/modules/vfs_tru64acl.c 	acl_t tru64_acl = acl_get_fd(fsp->fh->fd, ACL_TYPE_ACCESS);
fsp               130 source3/modules/vfs_tru64acl.c 			    files_struct *fsp,
fsp               138 source3/modules/vfs_tru64acl.c         res =  acl_set_fd(fsp->fh->fd, ACL_TYPE_ACCESS, tru64_acl);
fsp                28 source3/modules/vfs_tru64acl.h 				  files_struct *fsp);
fsp                36 source3/modules/vfs_tru64acl.h 			    files_struct *fsp,
fsp               246 source3/modules/vfs_tsmsm.c static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp)
fsp               255 source3/modules/vfs_tsmsm.c 	if(SMB_VFS_FSTAT(fsp, &sbuf) == 0) {
fsp               264 source3/modules/vfs_tsmsm.c static ssize_t tsmsm_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, 
fsp               269 source3/modules/vfs_tsmsm.c 	result = SMB_VFS_NEXT_AIO_RETURN(handle, fsp, aiocb);
fsp               273 source3/modules/vfs_tsmsm.c 			     fsp->fsp_name);
fsp               279 source3/modules/vfs_tsmsm.c static ssize_t tsmsm_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fsp, const DATA_BLOB *hdr,
fsp               282 source3/modules/vfs_tsmsm.c 	bool file_offline = tsmsm_aio_force(handle, fsp);
fsp               290 source3/modules/vfs_tsmsm.c 	return SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, hdr, offset, n);
fsp               295 source3/modules/vfs_tsmsm.c static ssize_t tsmsm_pread(struct vfs_handle_struct *handle, struct files_struct *fsp, 
fsp               298 source3/modules/vfs_tsmsm.c 	bool notify_online = tsmsm_aio_force(handle, fsp);
fsp               300 source3/modules/vfs_tsmsm.c 	result = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
fsp               307 source3/modules/vfs_tsmsm.c 			     fsp->fsp_name);
fsp               313 source3/modules/vfs_tsmsm.c static ssize_t tsmsm_pwrite(struct vfs_handle_struct *handle, struct files_struct *fsp, 
fsp               316 source3/modules/vfs_tsmsm.c 	bool notify_online = tsmsm_aio_force(handle, fsp);
fsp               318 source3/modules/vfs_tsmsm.c 	result = SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
fsp               325 source3/modules/vfs_tsmsm.c 			     fsp->fsp_name);
fsp               235 source3/modules/vfs_xattr_tdb.c 				   struct files_struct *fsp,
fsp               244 source3/modules/vfs_xattr_tdb.c 	if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp               364 source3/modules/vfs_xattr_tdb.c 			       struct files_struct *fsp,
fsp               374 source3/modules/vfs_xattr_tdb.c 	if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp               476 source3/modules/vfs_xattr_tdb.c 				    struct files_struct *fsp, char *list,
fsp               485 source3/modules/vfs_xattr_tdb.c 	if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp               583 source3/modules/vfs_xattr_tdb.c 				  struct files_struct *fsp, const char *name)
fsp               591 source3/modules/vfs_xattr_tdb.c 	if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp               103 source3/modules/vfs_zfsacl.c static bool zfs_process_smbacl(files_struct *fsp, SMB4ACL_T *smbacl)
fsp               148 source3/modules/vfs_zfsacl.c 	if(acl(fsp->fsp_name, ACE_SETACL, naces, acebuf)) {
fsp               152 source3/modules/vfs_zfsacl.c 				  "reside", fsp->fsp_name));
fsp               154 source3/modules/vfs_zfsacl.c 			DEBUG(9, ("acl(ACE_SETACL, %s): %s ", fsp->fsp_name,
fsp               167 source3/modules/vfs_zfsacl.c static NTSTATUS zfs_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
fsp               171 source3/modules/vfs_zfsacl.c 	return smb_set_nt_acl_nfs4(fsp, security_info_sent, psd,
fsp               176 source3/modules/vfs_zfsacl.c 				 struct files_struct *fsp,
fsp               183 source3/modules/vfs_zfsacl.c 	status = zfs_get_nt_acl_common(fsp->fsp_name, security_info, &pacl);
fsp               188 source3/modules/vfs_zfsacl.c 	return smb_fget_nt_acl_nfs4(fsp, security_info, ppdesc, pacl);
fsp               208 source3/modules/vfs_zfsacl.c 			 files_struct *fsp,
fsp               212 source3/modules/vfs_zfsacl.c 	return zfs_set_nt_acl(handle, fsp, security_info_sent, psd);
fsp               253 source3/modules/vfs_zfsacl.c 				      files_struct *fsp,
fsp               268 source3/modules/vfs_zfsacl.c 				files_struct *fsp,
fsp              9712 source3/param/loadparm.c enum brl_flavour lp_posix_cifsu_locktype(files_struct *fsp)
fsp              9717 source3/param/loadparm.c 		return fsp->posix_open ? POSIX_LOCK : WINDOWS_LOCK;
fsp              1038 source3/printing/nt_printing.c static int get_file_version(files_struct *fsp, char *fname,uint32 *major, uint32 *minor)
fsp              1050 source3/printing/nt_printing.c 	if ((byte_count = vfs_read_data(fsp, buf, DOS_HEADER_SIZE)) < DOS_HEADER_SIZE) {
fsp              1064 source3/printing/nt_printing.c 	if (SMB_VFS_LSEEK(fsp, SVAL(buf,DOS_HEADER_LFANEW_OFFSET), SEEK_SET) == (SMB_OFF_T)-1) {
fsp              1072 source3/printing/nt_printing.c 	if ((byte_count = vfs_read_data(fsp, buf, NE_HEADER_SIZE)) < NE_HEADER_SIZE) {
fsp              1085 source3/printing/nt_printing.c 		if (SMB_VFS_LSEEK(fsp,
fsp              1106 source3/printing/nt_printing.c 		if ((byte_count = vfs_read_data(fsp, buf, section_table_bytes)) < section_table_bytes) {
fsp              1131 source3/printing/nt_printing.c 				if (SMB_VFS_LSEEK(fsp, section_pos, SEEK_SET) == (SMB_OFF_T)-1) {
fsp              1137 source3/printing/nt_printing.c 				if ((byte_count = vfs_read_data(fsp, buf, section_bytes)) < section_bytes) {
fsp              1193 source3/printing/nt_printing.c 		while((byte_count = vfs_read_data(fsp, buf, VS_NE_BUF_SIZE)) > 0) {
fsp              1207 source3/printing/nt_printing.c 					if ((bc = vfs_read_data(fsp, &buf[byte_count-i], VS_NE_BUF_SIZE-
fsp              1227 source3/printing/nt_printing.c 					int skip = -(SMB_VFS_LSEEK(fsp, 0, SEEK_CUR) - (byte_count - i) +
fsp              1285 source3/printing/nt_printing.c 	files_struct    *fsp = NULL;
fsp              1317 source3/printing/nt_printing.c 		&fsp,					/* result */
fsp              1328 source3/printing/nt_printing.c 		int ret = get_file_version(fsp, old_file, &old_major, &old_minor);
fsp              1337 source3/printing/nt_printing.c 			if (SMB_VFS_FSTAT(fsp, &st) == -1) {
fsp              1345 source3/printing/nt_printing.c 	close_file(NULL, fsp, NORMAL_CLOSE);
fsp              1346 source3/printing/nt_printing.c 	fsp = NULL;
fsp              1369 source3/printing/nt_printing.c 		&fsp,					/* result */
fsp              1380 source3/printing/nt_printing.c 		int ret = get_file_version(fsp, new_file, &new_major, &new_minor);
fsp              1389 source3/printing/nt_printing.c 			if (SMB_VFS_FSTAT(fsp, &st) == -1) {
fsp              1397 source3/printing/nt_printing.c 	close_file(NULL, fsp, NORMAL_CLOSE);
fsp              1398 source3/printing/nt_printing.c 	fsp = NULL;
fsp              1426 source3/printing/nt_printing.c 		if(fsp)
fsp              1427 source3/printing/nt_printing.c 			close_file(NULL, fsp, NORMAL_CLOSE);
fsp              1442 source3/printing/nt_printing.c 	files_struct      *fsp = NULL;
fsp              1523 source3/printing/nt_printing.c 		&fsp,					/* result */
fsp              1535 source3/printing/nt_printing.c 		int    ret = get_file_version(fsp, driverpath, &major, &minor);
fsp              1574 source3/printing/nt_printing.c 	if (fsp != NULL) {
fsp              1575 source3/printing/nt_printing.c 		close_file(NULL, fsp, NORMAL_CLOSE);
fsp                30 source3/printing/printfsp.c 			uint16_t current_vuid, files_struct *fsp,
fsp                54 source3/printing/printfsp.c 	fsp->rap_print_jobid = pjobid_to_rap(lp_const_servicename(SNUM(conn)), jobid);
fsp                55 source3/printing/printfsp.c 	if (fsp->rap_print_jobid == 0) {
fsp                62 source3/printing/printfsp.c 	fsp->fh->fd = print_job_fd(lp_const_servicename(SNUM(conn)),jobid);
fsp                63 source3/printing/printfsp.c 	GetTimeOfDay(&fsp->open_time);
fsp                64 source3/printing/printfsp.c 	fsp->vuid = current_vuid;
fsp                65 source3/printing/printfsp.c 	fsp->fh->pos = -1;
fsp                66 source3/printing/printfsp.c 	fsp->can_lock = True;
fsp                67 source3/printing/printfsp.c 	fsp->can_read = False;
fsp                68 source3/printing/printfsp.c 	fsp->access_mask = FILE_GENERIC_WRITE;
fsp                69 source3/printing/printfsp.c 	fsp->can_write = True;
fsp                70 source3/printing/printfsp.c 	fsp->print_file = True;
fsp                71 source3/printing/printfsp.c 	fsp->modified = False;
fsp                72 source3/printing/printfsp.c 	fsp->oplock_type = NO_OPLOCK;
fsp                73 source3/printing/printfsp.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp                74 source3/printing/printfsp.c 	fsp->is_directory = False;
fsp                75 source3/printing/printfsp.c 	string_set(&fsp->fsp_name,print_job_fname(lp_const_servicename(SNUM(conn)),jobid));
fsp                76 source3/printing/printfsp.c 	fsp->wcp = NULL;
fsp                77 source3/printing/printfsp.c 	SMB_VFS_FSTAT(fsp, psbuf);
fsp                78 source3/printing/printfsp.c 	fsp->mode = psbuf->st_mode;
fsp                79 source3/printing/printfsp.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp                88 source3/printing/printfsp.c void print_fsp_end(files_struct *fsp, enum file_close_type close_type)
fsp                92 source3/printing/printfsp.c 	if (fsp->fh->private_options & FILE_DELETE_ON_CLOSE) {
fsp                97 source3/printing/printfsp.c 		sys_ftruncate(fsp->fh->fd, 0);
fsp               100 source3/printing/printfsp.c 	if (fsp->fsp_name) {
fsp               101 source3/printing/printfsp.c 		string_free(&fsp->fsp_name);
fsp               104 source3/printing/printfsp.c 	if (!rap_to_pjobid(fsp->rap_print_jobid, NULL, &jobid)) {
fsp               106 source3/printing/printfsp.c 			(unsigned int)fsp->rap_print_jobid ));
fsp               110 source3/printing/printfsp.c 	print_job_end(SNUM(fsp->conn),jobid, close_type);
fsp               938 source3/rpc_server/srv_pipe_hnd.c bool fsp_is_np(struct files_struct *fsp)
fsp               942 source3/rpc_server/srv_pipe_hnd.c 	if ((fsp == NULL) || (fsp->fake_file_handle == NULL)) {
fsp               946 source3/rpc_server/srv_pipe_hnd.c 	type = fsp->fake_file_handle->type;
fsp               141 source3/rpc_server/srv_srvsvc_nt.c 	files_struct fsp;
fsp               171 source3/rpc_server/srv_srvsvc_nt.c 	ZERO_STRUCT( fsp );
fsp               172 source3/rpc_server/srv_srvsvc_nt.c 	fsp.file_id = e->id;
fsp               174 source3/rpc_server/srv_srvsvc_nt.c 	if ( (brl = brl_get_locks(talloc_tos(), &fsp)) != NULL ) {
fsp              2059 source3/rpc_server/srv_srvsvc_nt.c 	files_struct *fsp = NULL;
fsp              2099 source3/rpc_server/srv_srvsvc_nt.c 		&fsp,					/* result */
fsp              2110 source3/rpc_server/srv_srvsvc_nt.c 	nt_status = SMB_VFS_FGET_NT_ACL(fsp,
fsp              2137 source3/rpc_server/srv_srvsvc_nt.c 	close_file(NULL, fsp, NORMAL_CLOSE);
fsp              2144 source3/rpc_server/srv_srvsvc_nt.c 	if (fsp) {
fsp              2145 source3/rpc_server/srv_srvsvc_nt.c 		close_file(NULL, fsp, NORMAL_CLOSE);
fsp              2168 source3/rpc_server/srv_srvsvc_nt.c 	files_struct *fsp = NULL;
fsp              2214 source3/rpc_server/srv_srvsvc_nt.c 		&fsp,					/* result */
fsp              2245 source3/rpc_server/srv_srvsvc_nt.c 	nt_status = SMB_VFS_FSET_NT_ACL(fsp,
fsp              2256 source3/rpc_server/srv_srvsvc_nt.c 	close_file(NULL, fsp, NORMAL_CLOSE);
fsp              2263 source3/rpc_server/srv_srvsvc_nt.c 	if (fsp) {
fsp              2264 source3/rpc_server/srv_srvsvc_nt.c 		close_file(NULL, fsp, NORMAL_CLOSE);
fsp                48 source3/smbd/aio.c 	files_struct *fsp;
fsp                68 source3/smbd/aio.c static struct aio_extra *create_aio_extra(files_struct *fsp, size_t buflen)
fsp                87 source3/smbd/aio.c 	aio_ex->fsp = fsp;
fsp               117 source3/smbd/aio.c 			     files_struct *fsp, SMB_OFF_T startpos,
fsp               126 source3/smbd/aio.c 	if (fsp->base_fsp != NULL) {
fsp               133 source3/smbd/aio.c 	    && !SMB_VFS_AIO_FORCE(fsp)) {
fsp               160 source3/smbd/aio.c 	if ((aio_ex = create_aio_extra(fsp, bufsize)) == NULL) {
fsp               174 source3/smbd/aio.c 	a->aio_fildes = fsp->fh->fd;
fsp               182 source3/smbd/aio.c 	ret = SMB_VFS_AIO_READ(fsp, a);
fsp               195 source3/smbd/aio.c 		  fsp->fsp_name, (double)startpos, (unsigned int)smb_maxcnt,
fsp               208 source3/smbd/aio.c 			      files_struct *fsp, char *data,
fsp               219 source3/smbd/aio.c 	if (fsp->base_fsp != NULL) {
fsp               226 source3/smbd/aio.c 	    && !SMB_VFS_AIO_FORCE(fsp)) {
fsp               248 source3/smbd/aio.c 			  fsp->fsp_name, (double)startpos,
fsp               256 source3/smbd/aio.c 	if (!(aio_ex = create_aio_extra(fsp, bufsize))) {
fsp               270 source3/smbd/aio.c 	a->aio_fildes = fsp->fh->fd;
fsp               278 source3/smbd/aio.c 	ret = SMB_VFS_AIO_WRITE(fsp, a);
fsp               290 source3/smbd/aio.c 	contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_WRITE);
fsp               291 source3/smbd/aio.c 	contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_WRITE);
fsp               293 source3/smbd/aio.c 	if (!write_through && !lp_syncalways(SNUM(fsp->conn))
fsp               294 source3/smbd/aio.c 	    && fsp->aio_write_behind) {
fsp               301 source3/smbd/aio.c 				IS_CONN_ENCRYPTED(fsp->conn),
fsp               307 source3/smbd/aio.c 			  "behind for file %s\n", fsp->fsp_name ));
fsp               315 source3/smbd/aio.c 		  fsp->fsp_name, (double)startpos, (unsigned int)numtowrite,
fsp               333 source3/smbd/aio.c 	ssize_t nread = SMB_VFS_AIO_RETURN(aio_ex->fsp,&aio_ex->acb);
fsp               343 source3/smbd/aio.c 			   aio_ex->fsp->fsp_name, (int)nread, strerror(errcode) ));
fsp               356 source3/smbd/aio.c 		aio_ex->fsp->fh->pos = aio_ex->acb.aio_offset + nread;
fsp               357 source3/smbd/aio.c 		aio_ex->fsp->fh->position_information = aio_ex->fsp->fh->pos;
fsp               361 source3/smbd/aio.c 			    aio_ex->fsp->fsp_name,
fsp               368 source3/smbd/aio.c 			IS_CONN_ENCRYPTED(aio_ex->fsp->conn), NULL)) {
fsp               375 source3/smbd/aio.c 		  aio_ex->fsp->fsp_name, (double)aio_ex->acb.aio_offset,
fsp               389 source3/smbd/aio.c 	files_struct *fsp = aio_ex->fsp;
fsp               392 source3/smbd/aio.c 	ssize_t nwritten = SMB_VFS_AIO_RETURN(fsp,&aio_ex->acb);
fsp               394 source3/smbd/aio.c 	if (fsp->aio_write_behind) {
fsp               400 source3/smbd/aio.c 					 fsp->fsp_name, strerror(errcode) ));
fsp               406 source3/smbd/aio.c 					 "only wrote %d\n", fsp->fsp_name,
fsp               414 source3/smbd/aio.c 				  fsp->fsp_name ));
fsp               426 source3/smbd/aio.c 			   fsp->fsp_name, (unsigned int)numtowrite,
fsp               444 source3/smbd/aio.c 			 fsp->fnum, (int)numtowrite, (int)nwritten));
fsp               445 source3/smbd/aio.c 		status = sync_file(fsp->conn,fsp, write_through);
fsp               452 source3/smbd/aio.c 				fsp->fsp_name, nt_errstr(status) ));
fsp               455 source3/smbd/aio.c 		aio_ex->fsp->fh->pos = aio_ex->acb.aio_offset + nwritten;
fsp               459 source3/smbd/aio.c 	if (!srv_send_smb(smbd_server_fd(),outbuf,IS_CONN_ENCRYPTED(fsp->conn),
fsp               466 source3/smbd/aio.c 		  fsp->fsp_name, (double)aio_ex->acb.aio_offset,
fsp               487 source3/smbd/aio.c 	err = SMB_VFS_AIO_ERROR(aio_ex->fsp, &aio_ex->acb);
fsp               491 source3/smbd/aio.c 			   aio_ex->req->mid, aio_ex->fsp->fsp_name ));
fsp               516 source3/smbd/aio.c 	files_struct *fsp = NULL;
fsp               531 source3/smbd/aio.c 	fsp = aio_ex->fsp;
fsp               532 source3/smbd/aio.c 	if (fsp == NULL) {
fsp               567 source3/smbd/aio.c int wait_for_aio_completion(files_struct *fsp)
fsp               583 source3/smbd/aio.c 			if (aio_ex->fsp == fsp) {
fsp               604 source3/smbd/aio.c 			if (aio_ex->fsp == fsp) {
fsp               617 source3/smbd/aio.c 		err = SMB_VFS_AIO_SUSPEND(fsp, aiocb_list,
fsp               629 source3/smbd/aio.c 			cancel_aio_by_fsp(fsp);
fsp               672 source3/smbd/aio.c void cancel_aio_by_fsp(files_struct *fsp)
fsp               677 source3/smbd/aio.c 		if (aio_ex->fsp == fsp) {
fsp               681 source3/smbd/aio.c 			SMB_VFS_AIO_CANCEL(fsp, &aio_ex->acb);
fsp               682 source3/smbd/aio.c 			aio_ex->fsp = NULL; /* fsp will be closed when we
fsp               714 source3/smbd/aio.c 			     files_struct *fsp, SMB_OFF_T startpos,
fsp               722 source3/smbd/aio.c 			      files_struct *fsp, char *data,
fsp               729 source3/smbd/aio.c void cancel_aio_by_fsp(files_struct *fsp)
fsp               733 source3/smbd/aio.c int wait_for_aio_completion(files_struct *fsp)
fsp               128 source3/smbd/blocking.c 		files_struct *fsp,
fsp               160 source3/smbd/blocking.c 	blr->fsp = fsp;
fsp               215 source3/smbd/blocking.c 		blr->fsp->fnum, blr->fsp->fsp_name ));
fsp               257 source3/smbd/blocking.c 		files_struct *fsp = blr->fsp;
fsp               259 source3/smbd/blocking.c 		if (fsp) {
fsp               260 source3/smbd/blocking.c 			fsp->last_lock_failure.context.smbpid = blr->lock_pid;
fsp               261 source3/smbd/blocking.c 			fsp->last_lock_failure.context.tid = fsp->conn->cnum;
fsp               262 source3/smbd/blocking.c 			fsp->last_lock_failure.context.pid = procid_self();
fsp               263 source3/smbd/blocking.c 			fsp->last_lock_failure.start = blr->offset;
fsp               264 source3/smbd/blocking.c 			fsp->last_lock_failure.size = blr->count;
fsp               265 source3/smbd/blocking.c 			fsp->last_lock_failure.fnum = fsp->fnum;
fsp               266 source3/smbd/blocking.c 			fsp->last_lock_failure.lock_type = READ_LOCK; /* Don't care. */
fsp               267 source3/smbd/blocking.c 			fsp->last_lock_failure.lock_flav = blr->lock_flav;
fsp               286 source3/smbd/blocking.c 	files_struct *fsp = blr->fsp;
fsp               322 source3/smbd/blocking.c 			fsp,
fsp               356 source3/smbd/blocking.c 				  IS_CONN_ENCRYPTED(blr->fsp->conn),
fsp               377 source3/smbd/blocking.c 	files_struct *fsp = blr->fsp;
fsp               408 source3/smbd/blocking.c 				fsp,
fsp               433 source3/smbd/blocking.c 			 fsp->fsp_name, fsp->fnum, (unsigned int)locktype, num_locks) );
fsp               456 source3/smbd/blocking.c 		  blr->lock_num, num_locks, fsp->fsp_name, fsp->fnum));
fsp               471 source3/smbd/blocking.c 						blr->fsp,
fsp               500 source3/smbd/blocking.c 	send_trans2_replies(blr->fsp->conn, blr->req, params, 2, NULL, 0, 0xffff);
fsp               529 source3/smbd/blocking.c void cancel_pending_lock_requests_by_fid(files_struct *fsp, struct byte_range_lock *br_lck)
fsp               537 source3/smbd/blocking.c 		if (blr->fsp->fnum != fsp->fnum) {
fsp               547 source3/smbd/blocking.c 			   blr->req->cmd, fsp->fsp_name, fsp->fnum));
fsp               549 source3/smbd/blocking.c 		blr_cancelled = blocking_lock_cancel(fsp,
fsp               569 source3/smbd/blocking.c 		blr->fsp = NULL;
fsp               582 source3/smbd/blocking.c 		files_struct *fsp;
fsp               591 source3/smbd/blocking.c 		fsp = blr->fsp;
fsp               592 source3/smbd/blocking.c 		br_lck = brl_get_locks(talloc_tos(), fsp);
fsp               597 source3/smbd/blocking.c 				   "= %d\n", blr->req->cmd, fsp->fsp_name,
fsp               598 source3/smbd/blocking.c 				   fsp->fnum ));
fsp               675 source3/smbd/blocking.c 				talloc_tos(), blr->fsp);
fsp               704 source3/smbd/blocking.c 				talloc_tos(), blr->fsp);
fsp               716 source3/smbd/blocking.c 					 "timed out.\n", blr->fsp->fnum,
fsp               717 source3/smbd/blocking.c 					 blr->fsp->fsp_name ));
fsp               783 source3/smbd/blocking.c struct blocking_lock_record *blocking_lock_cancel(files_struct *fsp,
fsp               804 source3/smbd/blocking.c 		if (fsp == blr->fsp &&
fsp                30 source3/smbd/close.c static void check_magic(struct files_struct *fsp)
fsp                38 source3/smbd/close.c 	struct connection_struct *conn = fsp->conn;
fsp                44 source3/smbd/close.c 	DEBUG(5,("checking magic for %s\n",fsp->fsp_name));
fsp                46 source3/smbd/close.c 	if (!(p = strrchr_m(fsp->fsp_name,'/'))) {
fsp                47 source3/smbd/close.c 		p = fsp->fsp_name;
fsp                63 source3/smbd/close.c 				fsp->fsp_name);
fsp                71 source3/smbd/close.c 	p = talloc_asprintf(ctx, "./%s", fsp->fsp_name);
fsp                77 source3/smbd/close.c 	if (chmod(fsp->fsp_name,0755) == -1) {
fsp                85 source3/smbd/close.c 	unlink(fsp->fsp_name);
fsp               116 source3/smbd/close.c static NTSTATUS close_filestruct(files_struct *fsp)
fsp               120 source3/smbd/close.c 	if (fsp->fh->fd != -1) {
fsp               121 source3/smbd/close.c 		if(flush_write_cache(fsp, CLOSE_FLUSH) == -1) {
fsp               124 source3/smbd/close.c 		delete_write_cache(fsp);
fsp               243 source3/smbd/close.c static NTSTATUS close_remove_share_mode(files_struct *fsp,
fsp               246 source3/smbd/close.c 	connection_struct *conn = fsp->conn;
fsp               261 source3/smbd/close.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp               266 source3/smbd/close.c 			  "lock for file %s\n", fsp->fsp_name));
fsp               270 source3/smbd/close.c 	if (fsp->write_time_forced) {
fsp               271 source3/smbd/close.c 		set_close_write_time(fsp, lck->changed_write_time);
fsp               274 source3/smbd/close.c 	if (!del_share_mode(lck, fsp)) {
fsp               276 source3/smbd/close.c 			  "entry for file %s\n", fsp->fsp_name));
fsp               279 source3/smbd/close.c 	if (fsp->initial_delete_on_close && (lck->delete_token == NULL)) {
fsp               285 source3/smbd/close.c 		if (current_user.vuid != fsp->vuid) {
fsp               286 source3/smbd/close.c 			become_user(conn, fsp->vuid);
fsp               304 source3/smbd/close.c 				if (fsp->posix_open && (e->flags & SHARE_MODE_FLAG_POSIX_OPEN)) {
fsp               315 source3/smbd/close.c 	reply_to_oplock_break_requests(fsp);
fsp               334 source3/smbd/close.c 		 "- deleting file.\n", fsp->fsp_name));
fsp               339 source3/smbd/close.c 	fsp->update_write_time_on_close = false;
fsp               346 source3/smbd/close.c 			fsp->fsp_name,
fsp               366 source3/smbd/close.c 	if (fsp->posix_open) {
fsp               367 source3/smbd/close.c 		ret = SMB_VFS_LSTAT(conn,fsp->fsp_name,&sbuf);
fsp               369 source3/smbd/close.c 		ret = SMB_VFS_STAT(conn,fsp->fsp_name,&sbuf);
fsp               375 source3/smbd/close.c 			 fsp->fsp_name, strerror(errno) ));
fsp               384 source3/smbd/close.c 	if (!file_id_equal(&fsp->file_id, &id)) {
fsp               387 source3/smbd/close.c 			 fsp->fsp_name ));
fsp               390 source3/smbd/close.c 			 fsp->fsp_name,
fsp               391 source3/smbd/close.c 			 file_id_string_tos(&fsp->file_id),
fsp               400 source3/smbd/close.c 	    && !is_ntfs_stream_name(fsp->fsp_name)) {
fsp               402 source3/smbd/close.c 		status = delete_all_streams(conn, fsp->fsp_name);
fsp               412 source3/smbd/close.c 	if (SMB_VFS_UNLINK(conn,fsp->fsp_name) != 0) {
fsp               423 source3/smbd/close.c 			 fsp->fsp_name, strerror(errno) ));
fsp               430 source3/smbd/close.c 		     fsp->fsp_name);
fsp               452 source3/smbd/close.c void set_close_write_time(struct files_struct *fsp, struct timespec ts)
fsp               463 source3/smbd/close.c 	fsp->write_time_forced = false;
fsp               465 source3/smbd/close.c 	fsp->update_write_time_on_close = true;
fsp               466 source3/smbd/close.c 	fsp->close_write_time = ts;
fsp               469 source3/smbd/close.c static NTSTATUS update_write_time_on_close(struct files_struct *fsp)
fsp               479 source3/smbd/close.c 	if (!fsp->update_write_time_on_close) {
fsp               483 source3/smbd/close.c 	if (null_timespec(fsp->close_write_time)) {
fsp               484 source3/smbd/close.c 		fsp->close_write_time = timespec_current();
fsp               488 source3/smbd/close.c 	if (fsp->fh->fd != -1) {
fsp               489 source3/smbd/close.c 		ret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp               491 source3/smbd/close.c 		if (fsp->posix_open) {
fsp               492 source3/smbd/close.c 			ret = SMB_VFS_LSTAT(fsp->conn,fsp->fsp_name,&sbuf);
fsp               494 source3/smbd/close.c 			ret = SMB_VFS_STAT(fsp->conn,fsp->fsp_name,&sbuf);
fsp               507 source3/smbd/close.c 	ft.mtime = fsp->close_write_time;
fsp               508 source3/smbd/close.c 	status = smb_set_file_time(fsp->conn, fsp, fsp->fsp_name,
fsp               525 source3/smbd/close.c static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
fsp               533 source3/smbd/close.c 	connection_struct *conn = fsp->conn;
fsp               535 source3/smbd/close.c 	if (fsp->aio_write_behind) {
fsp               540 source3/smbd/close.c 		int ret = wait_for_aio_completion(fsp);
fsp               545 source3/smbd/close.c 		cancel_aio_by_fsp(fsp);
fsp               553 source3/smbd/close.c 	saved_status2 = close_filestruct(fsp);
fsp               555 source3/smbd/close.c 	if (fsp->print_file) {
fsp               556 source3/smbd/close.c 		print_fsp_end(fsp, close_type);
fsp               557 source3/smbd/close.c 		file_free(req, fsp);
fsp               562 source3/smbd/close.c 	if(fsp->oplock_type) {
fsp               563 source3/smbd/close.c 		release_file_oplock(fsp);
fsp               570 source3/smbd/close.c 	if (fsp->fh->ref_count == 1) {
fsp               572 source3/smbd/close.c 		saved_status3 = close_remove_share_mode(fsp, close_type);
fsp               575 source3/smbd/close.c 	locking_close_file(smbd_messaging_context(), fsp);
fsp               577 source3/smbd/close.c 	status = fd_close(fsp);
fsp               581 source3/smbd/close.c 		check_magic(fsp);
fsp               588 source3/smbd/close.c 	saved_status4 = update_write_time_on_close(fsp);
fsp               610 source3/smbd/close.c 		conn->server_info->unix_name,fsp->fsp_name,
fsp               614 source3/smbd/close.c 	file_free(req, fsp);
fsp               622 source3/smbd/close.c static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
fsp               634 source3/smbd/close.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp               638 source3/smbd/close.c 		DEBUG(0, ("close_directory: Could not get share mode lock for %s\n", fsp->fsp_name));
fsp               642 source3/smbd/close.c 	if (!del_share_mode(lck, fsp)) {
fsp               643 source3/smbd/close.c 		DEBUG(0, ("close_directory: Could not delete share entry for %s\n", fsp->fsp_name));
fsp               646 source3/smbd/close.c 	if (fsp->initial_delete_on_close) {
fsp               653 source3/smbd/close.c 		if (current_user.vuid != fsp->vuid) {
fsp               654 source3/smbd/close.c 			become_user(fsp->conn, fsp->vuid);
fsp               657 source3/smbd/close.c 		send_stat_cache_delete_message(fsp->fsp_name);
fsp               673 source3/smbd/close.c 				if (fsp->posix_open && (e->flags & SHARE_MODE_FLAG_POSIX_OPEN)) {
fsp               701 source3/smbd/close.c 				fsp->conn, fsp->fsp_name);
fsp               705 source3/smbd/close.c 			 fsp->fsp_name, nt_errstr(status)));
fsp               716 source3/smbd/close.c 			remove_pending_change_notify_requests_by_fid(fsp, NT_STATUS_DELETE_PENDING);
fsp               721 source3/smbd/close.c 			fsp, NT_STATUS_OK);
fsp               724 source3/smbd/close.c 	status = fd_close(fsp);
fsp               728 source3/smbd/close.c 			  fsp->fsp_name, fsp->fh->fd, errno, strerror(errno)));
fsp               734 source3/smbd/close.c 	close_filestruct(fsp);
fsp               735 source3/smbd/close.c 	file_free(req, fsp);
fsp               743 source3/smbd/close.c NTSTATUS close_file(struct smb_request *req, files_struct *fsp,
fsp               747 source3/smbd/close.c 	struct files_struct *base_fsp = fsp->base_fsp;
fsp               749 source3/smbd/close.c 	if(fsp->is_directory) {
fsp               750 source3/smbd/close.c 		status = close_directory(req, fsp, close_type);
fsp               751 source3/smbd/close.c 	} else if (fsp->fake_file_handle != NULL) {
fsp               752 source3/smbd/close.c 		status = close_fake_file(req, fsp);
fsp               754 source3/smbd/close.c 		status = close_normal_file(req, fsp, close_type);
fsp               786 source3/smbd/close.c 	files_struct *fsp = NULL;
fsp               801 source3/smbd/close.c 	fsp = file_find_dif(e.id, e.share_file_id);
fsp               802 source3/smbd/close.c 	if (!fsp) {
fsp               806 source3/smbd/close.c 	close_file(NULL, fsp, NORMAL_CLOSE);
fsp               253 source3/smbd/dosmode.c 	files_struct *fsp = NULL;
fsp               291 source3/smbd/dosmode.c 						      &fsp)))
fsp               298 source3/smbd/dosmode.c 		close_file_fchmod(NULL, fsp);
fsp               686 source3/smbd/dosmode.c 		files_struct *fsp;
fsp               688 source3/smbd/dosmode.c 						      &fsp)))
fsp               691 source3/smbd/dosmode.c 		ret = SMB_VFS_FCHMOD(fsp, unixmode);
fsp               693 source3/smbd/dosmode.c 		close_file_fchmod(NULL, fsp);
fsp               791 source3/smbd/dosmode.c bool set_sticky_write_time_fsp(struct files_struct *fsp, const struct timespec mtime)
fsp               793 source3/smbd/dosmode.c 	fsp->write_time_forced = true;
fsp               794 source3/smbd/dosmode.c 	TALLOC_FREE(fsp->update_write_time_event);
fsp               796 source3/smbd/dosmode.c 	return set_sticky_write_time_path(fsp->conn, fsp->fsp_name,
fsp               797 source3/smbd/dosmode.c 			fsp->file_id, mtime);
fsp               804 source3/smbd/dosmode.c bool update_write_time(struct files_struct *fsp)
fsp               806 source3/smbd/dosmode.c 	if (!set_write_time(fsp->file_id, timespec_current())) {
fsp               810 source3/smbd/dosmode.c 	notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED,
fsp               811 source3/smbd/dosmode.c 			FILE_NOTIFY_CHANGE_LAST_WRITE, fsp->fsp_name);
fsp               108 source3/smbd/fake_file.c 	files_struct *fsp = NULL;
fsp               121 source3/smbd/fake_file.c 	status = file_new(req, conn, &fsp);
fsp               127 source3/smbd/fake_file.c 		fname, fsp->fnum, (unsigned int)access_mask));
fsp               129 source3/smbd/fake_file.c 	fsp->conn = conn;
fsp               130 source3/smbd/fake_file.c 	fsp->fh->fd = -1;
fsp               131 source3/smbd/fake_file.c 	fsp->vuid = current_vuid;
fsp               132 source3/smbd/fake_file.c 	fsp->fh->pos = -1;
fsp               133 source3/smbd/fake_file.c 	fsp->can_lock = False; /* Should this be true ? - No, JRA */
fsp               134 source3/smbd/fake_file.c 	fsp->access_mask = access_mask;
fsp               135 source3/smbd/fake_file.c 	string_set(&fsp->fsp_name,fname);
fsp               137 source3/smbd/fake_file.c 	fsp->fake_file_handle = init_fake_file_handle(fake_file_type);
fsp               139 source3/smbd/fake_file.c 	if (fsp->fake_file_handle==NULL) {
fsp               140 source3/smbd/fake_file.c 		file_free(req, fsp);
fsp               144 source3/smbd/fake_file.c 	*result = fsp;
fsp               148 source3/smbd/fake_file.c NTSTATUS close_fake_file(struct smb_request *req, files_struct *fsp)
fsp               150 source3/smbd/fake_file.c 	file_free(req, fsp);
fsp                31 source3/smbd/fileio.c static bool read_from_write_cache(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n)
fsp                33 source3/smbd/fileio.c 	write_cache *wcp = fsp->wcp;
fsp                54 source3/smbd/fileio.c ssize_t read_file(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n)
fsp                59 source3/smbd/fileio.c 	if (fsp->print_file) {
fsp                67 source3/smbd/fileio.c 	if(read_from_write_cache(fsp, data, pos, n)) {
fsp                68 source3/smbd/fileio.c 		fsp->fh->pos = pos + n;
fsp                69 source3/smbd/fileio.c 		fsp->fh->position_information = fsp->fh->pos;
fsp                73 source3/smbd/fileio.c 	flush_write_cache(fsp, READ_FLUSH);
fsp                75 source3/smbd/fileio.c 	fsp->fh->pos = pos;
fsp                81 source3/smbd/fileio.c 		readret = SMB_VFS_PREAD(fsp,data,n,pos);
fsp                93 source3/smbd/fileio.c 		readret = SMB_VFS_PREAD(fsp,data,n,pos);
fsp               105 source3/smbd/fileio.c 		fsp->fsp_name, (double)pos, (unsigned long)n, (long)ret ));
fsp               107 source3/smbd/fileio.c 	fsp->fh->pos += ret;
fsp               108 source3/smbd/fileio.c 	fsp->fh->position_information = fsp->fh->pos;
fsp               118 source3/smbd/fileio.c 				files_struct *fsp,
fsp               126 source3/smbd/fileio.c                 ret = vfs_write_data(req, fsp, data, n);
fsp               128 source3/smbd/fileio.c 		fsp->fh->pos = pos;
fsp               129 source3/smbd/fileio.c 		if (pos && lp_strict_allocate(SNUM(fsp->conn))) {
fsp               130 source3/smbd/fileio.c 			if (vfs_fill_sparse(fsp, pos) == -1) {
fsp               134 source3/smbd/fileio.c                 ret = vfs_pwrite_data(req, fsp, data, n, pos);
fsp               138 source3/smbd/fileio.c 		fsp->fsp_name, (double)pos, (unsigned long)n, (long)ret ));
fsp               141 source3/smbd/fileio.c 		fsp->fh->pos += ret;
fsp               146 source3/smbd/fileio.c 		fsp->position_information = fsp->pos;
fsp               158 source3/smbd/fileio.c static int wcp_file_size_change(files_struct *fsp)
fsp               161 source3/smbd/fileio.c 	write_cache *wcp = fsp->wcp;
fsp               164 source3/smbd/fileio.c 	ret = SMB_VFS_FTRUNCATE(fsp, wcp->file_size);
fsp               167 source3/smbd/fileio.c 			fsp->fsp_name, (double)wcp->file_size, strerror(errno) ));
fsp               177 source3/smbd/fileio.c 	files_struct *fsp = (files_struct *)private_data;
fsp               180 source3/smbd/fileio.c 	TALLOC_FREE(fsp->update_write_time_event);
fsp               181 source3/smbd/fileio.c 	DEBUG(5, ("Update write time on %s\n", fsp->fsp_name));
fsp               184 source3/smbd/fileio.c 	update_write_time(fsp);
fsp               192 source3/smbd/fileio.c void trigger_write_time_update(struct files_struct *fsp)
fsp               196 source3/smbd/fileio.c 	if (fsp->write_time_forced) {
fsp               203 source3/smbd/fileio.c 	if (fsp->update_write_time_triggered) {
fsp               211 source3/smbd/fileio.c 	fsp->update_write_time_triggered = true;
fsp               213 source3/smbd/fileio.c 	delay = lp_parm_int(SNUM(fsp->conn),
fsp               218 source3/smbd/fileio.c 	fsp->update_write_time_on_close = true;
fsp               219 source3/smbd/fileio.c 	fsp->update_write_time_event =
fsp               222 source3/smbd/fileio.c 				update_write_time_handler, fsp);
fsp               225 source3/smbd/fileio.c void trigger_write_time_update_immediate(struct files_struct *fsp)
fsp               227 source3/smbd/fileio.c         if (fsp->write_time_forced) {
fsp               235 source3/smbd/fileio.c 	TALLOC_FREE(fsp->update_write_time_event);
fsp               236 source3/smbd/fileio.c 	DEBUG(5, ("Update write time immediate on %s\n", fsp->fsp_name));
fsp               238 source3/smbd/fileio.c 	fsp->update_write_time_triggered = true;
fsp               240 source3/smbd/fileio.c         fsp->update_write_time_on_close = false;
fsp               241 source3/smbd/fileio.c 	update_write_time(fsp);
fsp               249 source3/smbd/fileio.c 			files_struct *fsp,
fsp               254 source3/smbd/fileio.c 	write_cache *wcp = fsp->wcp;
fsp               258 source3/smbd/fileio.c 	if (fsp->print_file) {
fsp               261 source3/smbd/fileio.c 		if (!rap_to_pjobid(fsp->rap_print_jobid, NULL, &jobid)) {
fsp               263 source3/smbd/fileio.c 						(unsigned int)fsp->rap_print_jobid ));
fsp               268 source3/smbd/fileio.c 		return print_job_write(SNUM(fsp->conn), jobid, data, pos, n);
fsp               271 source3/smbd/fileio.c 	if (!fsp->can_write) {
fsp               276 source3/smbd/fileio.c 	if (!fsp->modified) {
fsp               278 source3/smbd/fileio.c 		fsp->modified = True;
fsp               280 source3/smbd/fileio.c 		if (SMB_VFS_FSTAT(fsp, &st) == 0) {
fsp               282 source3/smbd/fileio.c 			trigger_write_time_update(fsp);
fsp               283 source3/smbd/fileio.c 			dosmode = dos_mode(fsp->conn,fsp->fsp_name,&st);
fsp               284 source3/smbd/fileio.c 			if ((lp_store_dos_attributes(SNUM(fsp->conn)) ||
fsp               285 source3/smbd/fileio.c 					MAP_ARCHIVE(fsp->conn)) &&
fsp               287 source3/smbd/fileio.c 				file_set_dosmode(fsp->conn,fsp->fsp_name,
fsp               298 source3/smbd/fileio.c 			if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type) && !wcp) {
fsp               299 source3/smbd/fileio.c 				setup_write_cache(fsp, st.st_size);
fsp               300 source3/smbd/fileio.c 				wcp = fsp->wcp;
fsp               307 source3/smbd/fileio.c 	if (!fsp->oplock_type) {
fsp               321 source3/smbd/fileio.c 	contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_WRITE);
fsp               322 source3/smbd/fileio.c 	contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_WRITE);
fsp               353 source3/smbd/fileio.c 		flush_write_cache(fsp, WRITE_FLUSH);
fsp               354 source3/smbd/fileio.c 		delete_write_cache(fsp);
fsp               360 source3/smbd/fileio.c 		total_written = real_write_file(req, fsp, data, pos, n);
fsp               365 source3/smbd/fileio.c 		fsp->fsp_name, fsp->fh->fd, (double)pos, (unsigned int)n, (double)wcp->offset, (unsigned int)wcp->data_size));
fsp               367 source3/smbd/fileio.c 	fsp->fh->pos = pos + n;
fsp               412 source3/smbd/fileio.c 				if (wcp_file_size_change(fsp) == -1) {
fsp               477 source3/smbd/fileio.c 				if (wcp_file_size_change(fsp) == -1) {
fsp               556 source3/smbd/fileio.c 				if (wcp_file_size_change(fsp) == -1) {
fsp               616 source3/smbd/fileio.c 			flush_write_cache(fsp, WRITE_FLUSH);
fsp               627 source3/smbd/fileio.c 				if (wcp_file_size_change(fsp) == -1) {
fsp               676 source3/smbd/fileio.c len = %u\n",fsp->fh->fd, (double)pos, (unsigned int)n, (double)wcp->offset, (unsigned int)wcp->data_size ));
fsp               688 source3/smbd/fileio.c 				ssize_t ret = real_write_file(NULL,fsp, data, pos, n);
fsp               699 source3/smbd/fileio.c cache: fd = %d, off=%.0f, size=%u\n", fsp->fh->fd, (double)wcp->offset, (unsigned int)wcp->data_size ));
fsp               722 source3/smbd/fileio.c 				write_path, fsp->fh->fd, (double)wcp->file_size, (double)pos, (unsigned int)n,
fsp               725 source3/smbd/fileio.c 			flush_write_cache(fsp, WRITE_FLUSH);
fsp               735 source3/smbd/fileio.c 		ssize_t ret = real_write_file(NULL,fsp, data, pos, n);
fsp               772 source3/smbd/fileio.c 			if (wcp_file_size_change(fsp) == -1) {
fsp               790 source3/smbd/fileio.c void delete_write_cache(files_struct *fsp)
fsp               794 source3/smbd/fileio.c 	if(!fsp) {
fsp               798 source3/smbd/fileio.c 	if(!(wcp = fsp->wcp)) {
fsp               808 source3/smbd/fileio.c 	SAFE_FREE(fsp->wcp);
fsp               810 source3/smbd/fileio.c 	DEBUG(10,("delete_write_cache: File %s deleted write cache\n", fsp->fsp_name ));
fsp               817 source3/smbd/fileio.c static bool setup_write_cache(files_struct *fsp, SMB_OFF_T file_size)
fsp               819 source3/smbd/fileio.c 	ssize_t alloc_size = lp_write_cache_size(SNUM(fsp->conn));
fsp               826 source3/smbd/fileio.c 	if(alloc_size == 0 || fsp->wcp) {
fsp               848 source3/smbd/fileio.c 	fsp->wcp = wcp;
fsp               853 source3/smbd/fileio.c 		fsp->fsp_name, (unsigned long)wcp->alloc_size ));
fsp               862 source3/smbd/fileio.c void set_filelen_write_cache(files_struct *fsp, SMB_OFF_T file_size)
fsp               864 source3/smbd/fileio.c 	if(fsp->wcp) {
fsp               866 source3/smbd/fileio.c 		if (fsp->wcp->data_size != 0) {
fsp               870 source3/smbd/fileio.c 				 fsp->fsp_name,
fsp               871 source3/smbd/fileio.c 				 (unsigned long)fsp->wcp->data_size) != -1) {
fsp               877 source3/smbd/fileio.c 		fsp->wcp->file_size = file_size;
fsp               885 source3/smbd/fileio.c ssize_t flush_write_cache(files_struct *fsp, enum flush_reason_enum reason)
fsp               887 source3/smbd/fileio.c 	write_cache *wcp = fsp->wcp;
fsp               901 source3/smbd/fileio.c 		fsp->fh->fd, (double)wcp->offset, (unsigned int)data_size));
fsp               909 source3/smbd/fileio.c 	ret = real_write_file(NULL, fsp, wcp->data, wcp->offset, data_size);
fsp               926 source3/smbd/fileio.c NTSTATUS sync_file(connection_struct *conn, files_struct *fsp, bool write_through)
fsp               928 source3/smbd/fileio.c        	if (fsp->fh->fd == -1)
fsp               933 source3/smbd/fileio.c 		int ret = flush_write_cache(fsp, SYNC_FLUSH);
fsp               937 source3/smbd/fileio.c 		ret = SMB_VFS_FSYNC(fsp);
fsp               949 source3/smbd/fileio.c int fsp_stat(files_struct *fsp, SMB_STRUCT_STAT *pst)
fsp               951 source3/smbd/fileio.c 	if (fsp->fh->fd == -1) {
fsp               952 source3/smbd/fileio.c 		return SMB_VFS_STAT(fsp->conn, fsp->fsp_name, pst);
fsp               954 source3/smbd/fileio.c 		return SMB_VFS_FSTAT(fsp, pst);
fsp                46 source3/smbd/files.c 	files_struct *fsp;
fsp                68 source3/smbd/files.c 	fsp = SMB_MALLOC_P(files_struct);
fsp                69 source3/smbd/files.c 	if (!fsp) {
fsp                73 source3/smbd/files.c 	ZERO_STRUCTP(fsp);
fsp                75 source3/smbd/files.c 	fsp->fh = SMB_MALLOC_P(struct fd_handle);
fsp                76 source3/smbd/files.c 	if (!fsp->fh) {
fsp                77 source3/smbd/files.c 		SAFE_FREE(fsp);
fsp                81 source3/smbd/files.c 	ZERO_STRUCTP(fsp->fh);
fsp                83 source3/smbd/files.c 	fsp->fh->ref_count = 1;
fsp                84 source3/smbd/files.c 	fsp->fh->fd = -1;
fsp                86 source3/smbd/files.c 	fsp->conn = conn;
fsp                87 source3/smbd/files.c 	fsp->fh->gen_id = get_gen_count();
fsp                88 source3/smbd/files.c 	GetTimeOfDay(&fsp->open_time);
fsp                95 source3/smbd/files.c 	fsp->fnum = i + FILE_HANDLE_OFFSET;
fsp                96 source3/smbd/files.c 	SMB_ASSERT(fsp->fnum < 65536);
fsp                98 source3/smbd/files.c 	string_set(&fsp->fsp_name,"");
fsp               100 source3/smbd/files.c 	DLIST_ADD(Files, fsp);
fsp               103 source3/smbd/files.c 		 i, fsp->fnum, files_used));
fsp               106 source3/smbd/files.c 		req->chain_fsp = fsp;
fsp               118 source3/smbd/files.c 	*result = fsp;
fsp               128 source3/smbd/files.c 	files_struct *fsp, *next;
fsp               130 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=next) {
fsp               131 source3/smbd/files.c 		next = fsp->next;
fsp               132 source3/smbd/files.c 		if (fsp->conn == conn) {
fsp               133 source3/smbd/files.c 			close_file(NULL, fsp, SHUTDOWN_CLOSE);
fsp               144 source3/smbd/files.c 	files_struct *fsp, *next;
fsp               146 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=next) {
fsp               147 source3/smbd/files.c 		next = fsp->next;
fsp               148 source3/smbd/files.c 		if ((fsp->file_pid == smbpid) && (fsp->vuid == vuid)) {
fsp               149 source3/smbd/files.c 			close_file(NULL, fsp, SHUTDOWN_CLOSE);
fsp               197 source3/smbd/files.c 	files_struct *fsp, *next;
fsp               199 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=next) {
fsp               200 source3/smbd/files.c 		next=fsp->next;
fsp               201 source3/smbd/files.c 		if (fsp->vuid == vuid) {
fsp               202 source3/smbd/files.c 			close_file(NULL, fsp, SHUTDOWN_CLOSE);
fsp               212 source3/smbd/files.c 	struct files_struct *(*fn)(struct files_struct *fsp,
fsp               216 source3/smbd/files.c 	struct files_struct *fsp, *next;
fsp               218 source3/smbd/files.c 	for (fsp = Files; fsp; fsp = next) {
fsp               220 source3/smbd/files.c 		next = fsp->next;
fsp               221 source3/smbd/files.c 		ret = fn(fsp, private_data);
fsp               236 source3/smbd/files.c 	files_struct *fsp;
fsp               238 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next,count++) {
fsp               240 source3/smbd/files.c 			count, fsp->fnum, fsp->fsp_name, fsp->fh->fd, (unsigned long)fsp->fh->gen_id,
fsp               241 source3/smbd/files.c 			  file_id_string_tos(&fsp->file_id)));
fsp               252 source3/smbd/files.c 	files_struct *fsp;
fsp               254 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next,count++) {
fsp               255 source3/smbd/files.c 		if (fsp->fh->fd == fd) {
fsp               257 source3/smbd/files.c 				DLIST_PROMOTE(Files, fsp);
fsp               259 source3/smbd/files.c 			return fsp;
fsp               273 source3/smbd/files.c 	files_struct *fsp;
fsp               275 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next,count++) {
fsp               277 source3/smbd/files.c 		if (file_id_equal(&fsp->file_id, &id) &&
fsp               278 source3/smbd/files.c 		    fsp->fh->gen_id == gen_id ) {
fsp               280 source3/smbd/files.c 				DLIST_PROMOTE(Files, fsp);
fsp               283 source3/smbd/files.c 			if ((fsp->fh->fd == -1) &&
fsp               284 source3/smbd/files.c 			    (fsp->oplock_type != NO_OPLOCK) &&
fsp               285 source3/smbd/files.c 			    (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK)) {
fsp               287 source3/smbd/files.c oplock_type = %u is a stat open with oplock type !\n", fsp->fsp_name, 
fsp               288 source3/smbd/files.c 					 file_id_string_tos(&fsp->file_id),
fsp               289 source3/smbd/files.c 					 (unsigned int)fsp->fh->gen_id,
fsp               290 source3/smbd/files.c 					 (unsigned int)fsp->oplock_type ));
fsp               293 source3/smbd/files.c 			return fsp;
fsp               306 source3/smbd/files.c 	files_struct *fsp;
fsp               308 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next) {
fsp               309 source3/smbd/files.c 		if (fsp == orig_fsp)
fsp               310 source3/smbd/files.c 			return fsp;
fsp               324 source3/smbd/files.c 	files_struct *fsp;
fsp               328 source3/smbd/files.c 		return fsp_fi_cache.fsp;
fsp               333 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next) {
fsp               334 source3/smbd/files.c 		if (file_id_equal(&fsp->file_id, &id)) {
fsp               336 source3/smbd/files.c 			fsp_fi_cache.fsp = fsp;
fsp               337 source3/smbd/files.c 			return fsp;
fsp               342 source3/smbd/files.c 	fsp_fi_cache.fsp = NULL;
fsp               352 source3/smbd/files.c 	files_struct *fsp;
fsp               354 source3/smbd/files.c 	for (fsp = start_fsp->next;fsp;fsp=fsp->next) {
fsp               355 source3/smbd/files.c 		if (file_id_equal(&fsp->file_id, &start_fsp->file_id)) {
fsp               356 source3/smbd/files.c 			return fsp;
fsp               369 source3/smbd/files.c 	files_struct *fsp;
fsp               371 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next) {
fsp               372 source3/smbd/files.c 		if (fsp->print_file) {
fsp               373 source3/smbd/files.c 			return fsp;
fsp               386 source3/smbd/files.c 	files_struct *fsp;
fsp               398 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next) {
fsp               401 source3/smbd/files.c 		if (fsp == dir_fsp) {
fsp               407 source3/smbd/files.c 					fsp->conn->connectpath,
fsp               408 source3/smbd/files.c 					fsp->fsp_name);
fsp               433 source3/smbd/files.c 	files_struct *fsp, *next;
fsp               435 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=next) {
fsp               436 source3/smbd/files.c 		next=fsp->next;
fsp               437 source3/smbd/files.c 		if ((conn == fsp->conn) && (fsp->fh->fd != -1)) {
fsp               438 source3/smbd/files.c 			sync_file(conn, fsp, True /* write through */);
fsp               447 source3/smbd/files.c void file_free(struct smb_request *req, files_struct *fsp)
fsp               449 source3/smbd/files.c 	DLIST_REMOVE(Files, fsp);
fsp               451 source3/smbd/files.c 	string_free(&fsp->fsp_name);
fsp               453 source3/smbd/files.c 	TALLOC_FREE(fsp->fake_file_handle);
fsp               455 source3/smbd/files.c 	if (fsp->fh->ref_count == 1) {
fsp               456 source3/smbd/files.c 		SAFE_FREE(fsp->fh);
fsp               458 source3/smbd/files.c 		fsp->fh->ref_count--;
fsp               461 source3/smbd/files.c 	if (fsp->notify) {
fsp               462 source3/smbd/files.c 		notify_remove(fsp->conn->notify_ctx, fsp);
fsp               463 source3/smbd/files.c 		TALLOC_FREE(fsp->notify);
fsp               467 source3/smbd/files.c 	TALLOC_FREE(fsp->oplock_timeout);
fsp               470 source3/smbd/files.c 	TALLOC_FREE(fsp->update_write_time_event);
fsp               472 source3/smbd/files.c 	bitmap_clear(file_bmap, fsp->fnum - FILE_HANDLE_OFFSET);
fsp               476 source3/smbd/files.c 		 fsp->fnum, files_used));
fsp               478 source3/smbd/files.c 	fsp->conn->num_files_open--;
fsp               480 source3/smbd/files.c 	if ((req != NULL) && (fsp == req->chain_fsp)) {
fsp               485 source3/smbd/files.c 	if (fsp == fsp_fi_cache.fsp) {
fsp               490 source3/smbd/files.c 	while (fsp->vfs_extension) {
fsp               491 source3/smbd/files.c 		vfs_remove_fsp_extension(fsp->vfs_extension->owner, fsp);
fsp               496 source3/smbd/files.c 	ZERO_STRUCTP(fsp);
fsp               498 source3/smbd/files.c 	SAFE_FREE(fsp);
fsp               507 source3/smbd/files.c 	files_struct *fsp;
fsp               510 source3/smbd/files.c 	for (fsp=Files;fsp;fsp=fsp->next, count++) {
fsp               511 source3/smbd/files.c 		if (fsp->fnum == fnum) {
fsp               513 source3/smbd/files.c 				DLIST_PROMOTE(Files, fsp);
fsp               515 source3/smbd/files.c 			return fsp;
fsp               527 source3/smbd/files.c 	files_struct *fsp;
fsp               533 source3/smbd/files.c 	fsp = file_fnum(fid);
fsp               534 source3/smbd/files.c 	if ((fsp != NULL) && (req != NULL)) {
fsp               535 source3/smbd/files.c 		req->chain_fsp = fsp;
fsp               537 source3/smbd/files.c 	return fsp;
fsp                66 source3/smbd/globals.c 	.fsp = NULL,
fsp                66 source3/smbd/globals.h 	files_struct *fsp;
fsp               218 source3/smbd/ipc.c 			   files_struct *fsp, uint8_t *data, size_t length,
fsp               224 source3/smbd/ipc.c 	if (!fsp_is_np(fsp)) {
fsp               236 source3/smbd/ipc.c 	state->handle = fsp->fake_file_handle;
fsp               344 source3/smbd/ipc.c 		      struct files_struct *fsp, char *param, int param_len)
fsp               363 source3/smbd/ipc.c 		      struct files_struct *fsp, char *param, int param_len)
fsp               406 source3/smbd/ipc.c 	struct files_struct *fsp;
fsp               427 source3/smbd/ipc.c 	fsp = file_fsp(req, pnum);
fsp               429 source3/smbd/ipc.c 	if (!fsp_is_np(fsp)) {
fsp               443 source3/smbd/ipc.c 	if (vuid != fsp->vuid) {
fsp               445 source3/smbd/ipc.c 			  "expected %d\n", pnum, vuid, fsp->vuid));
fsp               451 source3/smbd/ipc.c 		 subcommand, fsp->fsp_name, pnum));
fsp               453 source3/smbd/ipc.c 	DEBUG(10, ("api_fd_reply: p:%p max_trans_reply: %d\n", fsp, mdrcnt));
fsp               458 source3/smbd/ipc.c 		api_dcerpc_cmd(conn, req, fsp, (uint8_t *)data, tdscnt,
fsp               464 source3/smbd/ipc.c 		api_WNPHS(conn, req, fsp, params, tpscnt);
fsp               468 source3/smbd/ipc.c 		api_SNPHS(conn, req, fsp, params, tpscnt);
fsp                27 source3/smbd/notify.c 	struct files_struct *fsp;	/* backpointer for cancel by mid */
fsp                35 source3/smbd/notify.c static void notify_fsp(files_struct *fsp, uint32 action, const char *name);
fsp               190 source3/smbd/notify.c 	files_struct *fsp = (files_struct *)private_data;
fsp               191 source3/smbd/notify.c 	DEBUG(10, ("notify_callback called for %s\n", fsp->fsp_name));
fsp               192 source3/smbd/notify.c 	notify_fsp(fsp, e->action, e->path);
fsp               195 source3/smbd/notify.c NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
fsp               202 source3/smbd/notify.c 	SMB_ASSERT(fsp->notify == NULL);
fsp               204 source3/smbd/notify.c 	if (!(fsp->notify = TALLOC_ZERO_P(NULL, struct notify_change_buf))) {
fsp               209 source3/smbd/notify.c 	if (asprintf(&fullpath, "%s/%s", fsp->conn->connectpath,
fsp               210 source3/smbd/notify.c 		     fsp->fsp_name) == -1) {
fsp               212 source3/smbd/notify.c 		TALLOC_FREE(fsp->notify);
fsp               218 source3/smbd/notify.c 	e.dir_fd = fsp->fh->fd;
fsp               219 source3/smbd/notify.c 	e.dir_id = fsp->file_id;
fsp               226 source3/smbd/notify.c 	status = notify_add(fsp->conn->notify_ctx, &e, notify_callback, fsp);
fsp               235 source3/smbd/notify.c 				struct files_struct *fsp)
fsp               241 source3/smbd/notify.c 		   "max_param = %d\n", fsp->fsp_name, (int)max_param));
fsp               255 source3/smbd/notify.c 	request->fsp = fsp;
fsp               258 source3/smbd/notify.c 	DLIST_ADD_END(fsp->notify->requests, request,
fsp               272 source3/smbd/notify.c 	files_struct *fsp;
fsp               280 source3/smbd/notify.c 	fsp = remove_req->fsp;
fsp               281 source3/smbd/notify.c 	SMB_ASSERT(fsp->notify != NULL);
fsp               283 source3/smbd/notify.c 	for (req = fsp->notify->requests; req; req = req->next) {
fsp               293 source3/smbd/notify.c 	DLIST_REMOVE(fsp->notify->requests, req);
fsp               316 source3/smbd/notify.c 	change_notify_reply_packet(map->req->fsp->conn, map->req->req,
fsp               325 source3/smbd/notify.c void remove_pending_change_notify_requests_by_fid(files_struct *fsp,
fsp               328 source3/smbd/notify.c 	if (fsp->notify == NULL) {
fsp               332 source3/smbd/notify.c 	while (fsp->notify->requests != NULL) {
fsp               334 source3/smbd/notify.c 			fsp->conn, fsp->notify->requests->req, status);
fsp               335 source3/smbd/notify.c 		change_notify_remove_request(fsp->notify->requests);
fsp               356 source3/smbd/notify.c static void notify_fsp(files_struct *fsp, uint32 action, const char *name)
fsp               361 source3/smbd/notify.c 	if (fsp->notify == NULL) {
fsp               373 source3/smbd/notify.c 	if ((fsp->notify->num_changes > 1000) || (name == NULL)) {
fsp               381 source3/smbd/notify.c 		TALLOC_FREE(fsp->notify->changes);
fsp               382 source3/smbd/notify.c 		fsp->notify->num_changes = -1;
fsp               383 source3/smbd/notify.c 		if (fsp->notify->requests != NULL) {
fsp               384 source3/smbd/notify.c 			change_notify_reply(fsp->conn,
fsp               385 source3/smbd/notify.c 					    fsp->notify->requests->req,
fsp               386 source3/smbd/notify.c 					    fsp->notify->requests->max_param,
fsp               387 source3/smbd/notify.c 					    fsp->notify);
fsp               388 source3/smbd/notify.c 			change_notify_remove_request(fsp->notify->requests);
fsp               396 source3/smbd/notify.c 	if (fsp->notify->num_changes == -1) {
fsp               401 source3/smbd/notify.c 		      fsp->notify, fsp->notify->changes,
fsp               402 source3/smbd/notify.c 		      struct notify_change, fsp->notify->num_changes+1))) {
fsp               407 source3/smbd/notify.c 	fsp->notify->changes = changes;
fsp               409 source3/smbd/notify.c 	change = &(fsp->notify->changes[fsp->notify->num_changes]);
fsp               420 source3/smbd/notify.c 	fsp->notify->num_changes += 1;
fsp               422 source3/smbd/notify.c 	if (fsp->notify->requests == NULL) {
fsp               443 source3/smbd/notify.c 	change_notify_reply(fsp->conn,
fsp               444 source3/smbd/notify.c 			    fsp->notify->requests->req,
fsp               445 source3/smbd/notify.c 			    fsp->notify->requests->max_param,
fsp               446 source3/smbd/notify.c 			    fsp->notify);
fsp               448 source3/smbd/notify.c 	change_notify_remove_request(fsp->notify->requests);
fsp                74 source3/smbd/ntquotas.c int vfs_get_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid, SMB_NTQUOTA_STRUCT *qt)
fsp                82 source3/smbd/ntquotas.c 	if (!fsp||!fsp->conn||!qt)
fsp                94 source3/smbd/ntquotas.c 	ret = SMB_VFS_GET_QUOTA(fsp->conn, qtype, id, &D);
fsp               112 source3/smbd/ntquotas.c int vfs_set_ntquota(files_struct *fsp, enum SMB_QUOTA_TYPE qtype, DOM_SID *psid, SMB_NTQUOTA_STRUCT *qt)
fsp               119 source3/smbd/ntquotas.c 	if (!fsp||!fsp->conn||!qt)
fsp               138 source3/smbd/ntquotas.c 	ret = SMB_VFS_SET_QUOTA(fsp->conn, qtype, id, &D);
fsp               159 source3/smbd/ntquotas.c int vfs_get_user_ntquota_list(files_struct *fsp, SMB_NTQUOTA_LIST **qt_list)
fsp               164 source3/smbd/ntquotas.c 	if (!fsp||!fsp->conn||!qt_list)
fsp               189 source3/smbd/ntquotas.c 		if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &tmp_qt)!=0) {
fsp               192 source3/smbd/ntquotas.c 				 fsp->conn->connectpath));
fsp               197 source3/smbd/ntquotas.c 			  sid_string_dbg(&sid), fsp->conn->connectpath));
fsp               312 source3/smbd/nttrans.c 	files_struct *fsp;
fsp               320 source3/smbd/nttrans.c 	status = open_np_file(req, fname, &fsp);
fsp               331 source3/smbd/nttrans.c 	*ppnum = fsp->fnum;
fsp               431 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp               527 source3/smbd/nttrans.c 		&fsp,					/* result */
fsp               555 source3/smbd/nttrans.c 	     || EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type))) {
fsp               566 source3/smbd/nttrans.c 	} else if (fsp->oplock_type == LEVEL_II_OPLOCK) {
fsp               573 source3/smbd/nttrans.c 	fattr = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp               595 source3/smbd/nttrans.c 	SSVAL(p,0,fsp->fnum);
fsp               627 source3/smbd/nttrans.c 	SOFF_T(p, 0, SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf));
fsp               635 source3/smbd/nttrans.c 	SCVAL(p,0,fsp->is_directory ? 1 : 0);
fsp               640 source3/smbd/nttrans.c 		if (fsp->is_directory
fsp               641 source3/smbd/nttrans.c 		    || can_write_to_file(conn, fsp->fsp_name, &sbuf)) {
fsp               650 source3/smbd/nttrans.c 		 fsp->fnum, fsp->fsp_name));
fsp               757 source3/smbd/nttrans.c static NTSTATUS set_sd(files_struct *fsp, uint8 *data, uint32 sd_len,
fsp               763 source3/smbd/nttrans.c 	if (sd_len == 0 || !lp_nt_acl_support(SNUM(fsp->conn))) {
fsp               785 source3/smbd/nttrans.c 		DEBUG(10,("set_sd for file %s\n", fsp->fsp_name ));
fsp               789 source3/smbd/nttrans.c 	status = SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd);
fsp               846 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              1001 source3/smbd/nttrans.c 		&fsp,					/* result */
fsp              1022 source3/smbd/nttrans.c 	     || EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type))) {
fsp              1033 source3/smbd/nttrans.c 	} else if (fsp->oplock_type == LEVEL_II_OPLOCK) {
fsp              1040 source3/smbd/nttrans.c 	fattr = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp              1062 source3/smbd/nttrans.c 	SSVAL(p,0,fsp->fnum);
fsp              1094 source3/smbd/nttrans.c 	SOFF_T(p, 0, SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf));
fsp              1102 source3/smbd/nttrans.c 	SCVAL(p,0,fsp->is_directory ? 1 : 0);
fsp              1107 source3/smbd/nttrans.c 		if (fsp->is_directory
fsp              1108 source3/smbd/nttrans.c 		    || can_write_to_file(conn, fsp->fsp_name, &sbuf)) {
fsp              1116 source3/smbd/nttrans.c 	DEBUG(5,("call_nt_transact_create: open name = %s\n", fsp->fsp_name));
fsp              1474 source3/smbd/nttrans.c 	files_struct *fsp;
fsp              1484 source3/smbd/nttrans.c 	fsp = file_fsp(req, SVAL(setup,4));
fsp              1490 source3/smbd/nttrans.c 	if(!fsp) {
fsp              1505 source3/smbd/nttrans.c 			 fsp->fsp_name, filter_string, recursive));
fsp              1510 source3/smbd/nttrans.c 	if((!fsp->is_directory) || (conn != fsp->conn)) {
fsp              1515 source3/smbd/nttrans.c 	if (fsp->notify == NULL) {
fsp              1517 source3/smbd/nttrans.c 		status = change_notify_create(fsp, filter, recursive);
fsp              1527 source3/smbd/nttrans.c 	if (fsp->notify->num_changes != 0) {
fsp              1538 source3/smbd/nttrans.c 		change_notify_reply(fsp->conn, req, max_param_count,
fsp              1539 source3/smbd/nttrans.c 				    fsp->notify);
fsp              1555 source3/smbd/nttrans.c 			recursive, fsp);
fsp              1575 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              1585 source3/smbd/nttrans.c 	fsp = file_fsp(req, SVAL(params, 0));
fsp              1586 source3/smbd/nttrans.c 	if (!check_fsp(conn, req, fsp)) {
fsp              1604 source3/smbd/nttrans.c 		 fsp->fsp_name, new_name));
fsp              1645 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              1654 source3/smbd/nttrans.c 	fsp = file_fsp(req, SVAL(params,0));
fsp              1655 source3/smbd/nttrans.c 	if(!fsp) {
fsp              1662 source3/smbd/nttrans.c 	DEBUG(3,("call_nt_transact_query_security_desc: file = %s, info_wanted = 0x%x\n", fsp->fsp_name,
fsp              1679 source3/smbd/nttrans.c 			fsp, security_info_wanted, &psd);
fsp              1700 source3/smbd/nttrans.c 		DEBUG(10,("call_nt_transact_query_security_desc for file %s\n", fsp->fsp_name));
fsp              1754 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              1763 source3/smbd/nttrans.c 	if((fsp = file_fsp(req, SVAL(params,0))) == NULL) {
fsp              1774 source3/smbd/nttrans.c 	DEBUG(3,("call_nt_transact_set_security_desc: file = %s, sent 0x%x\n", fsp->fsp_name,
fsp              1782 source3/smbd/nttrans.c 	status = set_sd(fsp, (uint8 *)data, data_count, security_info_sent);
fsp              1807 source3/smbd/nttrans.c 	files_struct *fsp;
fsp              1826 source3/smbd/nttrans.c 	fsp=file_fsp(req, fidnum);
fsp              1853 source3/smbd/nttrans.c 		if (!fsp_belongs_conn(conn, req, fsp)) {
fsp              1865 source3/smbd/nttrans.c 		push_file_id_16(pdata, &fsp->file_id);
fsp              1867 source3/smbd/nttrans.c 		push_file_id_16(pdata+32, &fsp->file_id);
fsp              1910 source3/smbd/nttrans.c 		if (!fsp_belongs_conn(conn, req, fsp)) {
fsp              1945 source3/smbd/nttrans.c 		if (SMB_VFS_GET_SHADOW_COPY_DATA(fsp, shadow_data, labels)!=0) {
fsp              1999 source3/smbd/nttrans.c 			shadow_data->num_volumes,fsp->fsp_name));
fsp              2033 source3/smbd/nttrans.c 		if (!fsp_belongs_conn(conn, req, fsp)) {
fsp              2106 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              2137 source3/smbd/nttrans.c 	fsp = file_fsp(req, SVAL(params,0));
fsp              2138 source3/smbd/nttrans.c 	if (!check_fsp_ntquota_handle(conn, req, fsp)) {
fsp              2147 source3/smbd/nttrans.c 	qt_handle = (SMB_NTQUOTA_HANDLE *)fsp->fake_file_handle->private_data;
fsp              2186 source3/smbd/nttrans.c 			if (start_enum && vfs_get_user_ntquota_list(fsp,&(qt_handle->quota_list))!=0) {
fsp              2298 source3/smbd/nttrans.c 			if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &qt)!=0) {
fsp              2350 source3/smbd/nttrans.c 			DEBUG(0,("do_nt_transact_get_user_quota: fnum %d unknown level 0x%04hX\n",fsp->fnum,level));
fsp              2380 source3/smbd/nttrans.c 	files_struct *fsp = NULL;
fsp              2404 source3/smbd/nttrans.c 	fsp = file_fsp(req, SVAL(params,0));
fsp              2405 source3/smbd/nttrans.c 	if (!check_fsp_ntquota_handle(conn, req, fsp)) {
fsp              2482 source3/smbd/nttrans.c 	if (vfs_set_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &qt)!=0) {
fsp               124 source3/smbd/open.c 		    files_struct *fsp,
fsp               136 source3/smbd/open.c 	if (fsp->posix_open || !lp_symlinks(SNUM(conn))) {
fsp               141 source3/smbd/open.c 	fsp->fh->fd = SMB_VFS_OPEN(conn,fname,fsp,flags,mode);
fsp               142 source3/smbd/open.c 	if (fsp->fh->fd == -1) {
fsp               159 source3/smbd/open.c 		    fname, flags, (int)mode, fsp->fh->fd,
fsp               160 source3/smbd/open.c 		(fsp->fh->fd == -1) ? strerror(errno) : "" ));
fsp               169 source3/smbd/open.c NTSTATUS fd_close(files_struct *fsp)
fsp               173 source3/smbd/open.c 	if (fsp->fh->fd == -1) {
fsp               176 source3/smbd/open.c 	if (fsp->fh->ref_count > 1) {
fsp               180 source3/smbd/open.c 	ret = SMB_VFS_CLOSE(fsp);
fsp               181 source3/smbd/open.c 	fsp->fh->fd = -1;
fsp               195 source3/smbd/open.c 					files_struct *fsp)
fsp               209 source3/smbd/open.c 	ret = SMB_VFS_FCHOWN(fsp, parent_st.st_uid, (gid_t)-1);
fsp               214 source3/smbd/open.c 			 "was %s\n", fsp->fsp_name,
fsp               220 source3/smbd/open.c 		  "parent directory uid %u.\n",	fsp->fsp_name,
fsp               315 source3/smbd/open.c static NTSTATUS open_file(files_struct *fsp,
fsp               332 source3/smbd/open.c 	fsp->fh->fd = -1;
fsp               405 source3/smbd/open.c 		if (fsp->base_fsp) {
fsp               410 source3/smbd/open.c 			wild = fsp->base_fsp->fsp_name;
fsp               420 source3/smbd/open.c 		status = fd_open(conn, path, fsp, local_flags, unx_mode);
fsp               439 source3/smbd/open.c 							    fsp);
fsp               447 source3/smbd/open.c 		fsp->fh->fd = -1; /* What we used to call a stat open. */
fsp               500 source3/smbd/open.c 							fsp->posix_open &&
fsp               521 source3/smbd/open.c 		if (fsp->fh->fd == -1) {
fsp               524 source3/smbd/open.c 			ret = SMB_VFS_FSTAT(fsp, psbuf);
fsp               535 source3/smbd/open.c 			fd_close(fsp);
fsp               547 source3/smbd/open.c 		fd_close(fsp);
fsp               552 source3/smbd/open.c 	fsp->mode = psbuf->st_mode;
fsp               553 source3/smbd/open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp               554 source3/smbd/open.c 	fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp               555 source3/smbd/open.c 	fsp->file_pid = req ? req->smbpid : 0;
fsp               556 source3/smbd/open.c 	fsp->can_lock = True;
fsp               557 source3/smbd/open.c 	fsp->can_read = (access_mask & (FILE_READ_DATA)) ? True : False;
fsp               559 source3/smbd/open.c 		fsp->can_write = False;
fsp               561 source3/smbd/open.c 		fsp->can_write = (access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) ?
fsp               564 source3/smbd/open.c 	fsp->print_file = False;
fsp               565 source3/smbd/open.c 	fsp->modified = False;
fsp               566 source3/smbd/open.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp               567 source3/smbd/open.c 	fsp->is_directory = False;
fsp               570 source3/smbd/open.c 		fsp->aio_write_behind = True;
fsp               573 source3/smbd/open.c 	string_set(&fsp->fsp_name, path);
fsp               574 source3/smbd/open.c 	fsp->wcp = NULL; /* Write cache pointer. */
fsp               578 source3/smbd/open.c 		 fsp->fsp_name,
fsp               579 source3/smbd/open.c 		 BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write),
fsp               691 source3/smbd/open.c 	files_struct *fsp;
fsp               710 source3/smbd/open.c 	fsp = file_find_dif(share_entry->id,
fsp               712 source3/smbd/open.c 	if (!fsp) {
fsp               725 source3/smbd/open.c 	    (fsp->oplock_type == FAKE_LEVEL_II_OPLOCK)) {
fsp               731 source3/smbd/open.c 	if (((uint16)fsp->oplock_type) != share_entry->op_type) {
fsp               745 source3/smbd/open.c 			 fsp->fsp_name, (unsigned int)fsp->oplock_type,
fsp               827 source3/smbd/open.c static bool is_delete_request(files_struct *fsp) {
fsp               828 source3/smbd/open.c 	return ((fsp->access_mask == DELETE_ACCESS) &&
fsp               829 source3/smbd/open.c 		(fsp->oplock_type == NO_OPLOCK));
fsp               837 source3/smbd/open.c static NTSTATUS send_break_message(files_struct *fsp,
fsp               882 source3/smbd/open.c 			      files_struct *fsp,
fsp               893 source3/smbd/open.c 		            lp_level2_oplocks(SNUM(fsp->conn));
fsp               896 source3/smbd/open.c 		fsp->oplock_type = NO_OPLOCK;
fsp               899 source3/smbd/open.c 	if ((oplock_request & INTERNAL_OPEN_ONLY) || is_stat_open(fsp->access_mask)) {
fsp               935 source3/smbd/open.c 		bool delay_it = is_delete_request(fsp) ?
fsp               939 source3/smbd/open.c 			send_break_message(fsp, exclusive, mid, oplock_request);
fsp               952 source3/smbd/open.c 		if (fsp->oplock_type == NO_OPLOCK) {
fsp               954 source3/smbd/open.c 			fsp->oplock_type = FAKE_LEVEL_II_OPLOCK;
fsp               957 source3/smbd/open.c 		fsp->oplock_type = NO_OPLOCK;
fsp               959 source3/smbd/open.c 		if (fsp->oplock_type == NO_OPLOCK ||
fsp               960 source3/smbd/open.c 				fsp->oplock_type == FAKE_LEVEL_II_OPLOCK) {
fsp               962 source3/smbd/open.c 			fsp->oplock_type = FAKE_LEVEL_II_OPLOCK;
fsp               964 source3/smbd/open.c 			fsp->oplock_type = LEVEL_II_OPLOCK;
fsp               975 source3/smbd/open.c 	if (fsp->oplock_type == LEVEL_II_OPLOCK && !allow_level2) {
fsp               976 source3/smbd/open.c 		fsp->oplock_type = FAKE_LEVEL_II_OPLOCK;
fsp               980 source3/smbd/open.c 		fsp->oplock_type, fsp->fsp_name));
fsp              1113 source3/smbd/open.c 	files_struct *fsp;
fsp              1118 source3/smbd/open.c 	for(fsp = file_find_di_first(id); fsp;
fsp              1119 source3/smbd/open.c 	    fsp = file_find_di_next(fsp)) {
fsp              1123 source3/smbd/open.c 			  "access_mask = 0x%x\n", fsp->fsp_name,
fsp              1124 source3/smbd/open.c 			  fsp->fh->fd, (unsigned int)fsp->vuid,
fsp              1125 source3/smbd/open.c 			  (unsigned int)fsp->file_pid,
fsp              1126 source3/smbd/open.c 			  (unsigned int)fsp->fh->private_options,
fsp              1127 source3/smbd/open.c 			  (unsigned int)fsp->access_mask ));
fsp              1129 source3/smbd/open.c 		if (fsp->fh->fd != -1 &&
fsp              1130 source3/smbd/open.c 		    fsp->vuid == vuid &&
fsp              1131 source3/smbd/open.c 		    fsp->file_pid == file_pid &&
fsp              1132 source3/smbd/open.c 		    (fsp->fh->private_options & (NTCREATEX_OPTIONS_PRIVATE_DENY_DOS |
fsp              1134 source3/smbd/open.c 		    (fsp->access_mask & FILE_WRITE_DATA) &&
fsp              1135 source3/smbd/open.c 		    strequal(fsp->fsp_name, fname)) {
fsp              1141 source3/smbd/open.c 	if (!fsp) {
fsp              1147 source3/smbd/open.c 	    (fsp->fh->private_options & NTCREATEX_OPTIONS_PRIVATE_DENY_DOS)) {
fsp              1153 source3/smbd/open.c 	dup_file_fsp(req, fsp, access_mask, share_access,
fsp              1413 source3/smbd/open.c 			    files_struct *fsp)
fsp              1451 source3/smbd/open.c 		return print_fsp_open(req, conn, fname, req->vuid, fsp, psbuf);
fsp              1711 source3/smbd/open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp              1712 source3/smbd/open.c 	fsp->share_access = share_access;
fsp              1713 source3/smbd/open.c 	fsp->fh->private_options = create_options;
fsp              1714 source3/smbd/open.c 	fsp->access_mask = open_access_mask; /* We change this to the
fsp              1717 source3/smbd/open.c 	fsp->posix_open = posix_open;
fsp              1720 source3/smbd/open.c 	fsp->oplock_type = (oplock_request & ~SAMBA_PRIVATE_OPLOCK_MASK);
fsp              1723 source3/smbd/open.c 		request_time = fsp->open_time;
fsp              1741 source3/smbd/open.c 		    && delay_for_oplocks(lck, fsp, req->mid, 1,
fsp              1760 source3/smbd/open.c 			     && delay_for_oplocks(lck, fsp, req->mid, 2,
fsp              1796 source3/smbd/open.c 							fsp,
fsp              1919 source3/smbd/open.c 	fsp_open = open_file(fsp, conn, req, parent_dir, newname, fname, psbuf,
fsp              1947 source3/smbd/open.c 		id = fsp->file_id;
fsp              1956 source3/smbd/open.c 			fd_close(fsp);
fsp              1962 source3/smbd/open.c 		    && delay_for_oplocks(lck, fsp, req->mid, 1,
fsp              1966 source3/smbd/open.c 			fd_close(fsp);
fsp              1980 source3/smbd/open.c 			    && delay_for_oplocks(lck, fsp, req->mid, 2,
fsp              1984 source3/smbd/open.c 				fd_close(fsp);
fsp              1992 source3/smbd/open.c 			fd_close(fsp);
fsp              2025 source3/smbd/open.c 			fd_close(fsp);
fsp              2038 source3/smbd/open.c 	if (fsp->fh->fd != -1) {
fsp              2039 source3/smbd/open.c 		ret_flock = SMB_VFS_KERNEL_FLOCK(fsp, share_access);
fsp              2043 source3/smbd/open.c 			fd_close(fsp);
fsp              2064 source3/smbd/open.c 		if ((SMB_VFS_FTRUNCATE(fsp, 0) == -1) ||
fsp              2065 source3/smbd/open.c 		    (SMB_VFS_FSTAT(fsp, psbuf)==-1)) {
fsp              2068 source3/smbd/open.c 			fd_close(fsp);
fsp              2074 source3/smbd/open.c 	fsp->share_access = share_access;
fsp              2075 source3/smbd/open.c 	fsp->fh->private_options = create_options;
fsp              2079 source3/smbd/open.c 	fsp->access_mask = access_mask | FILE_READ_ATTRIBUTES;
fsp              2084 source3/smbd/open.c 			fsp->oplock_type = NO_OPLOCK;
fsp              2105 source3/smbd/open.c 	if (!set_file_oplock(fsp, fsp->oplock_type)) {
fsp              2107 source3/smbd/open.c 		fsp->oplock_type = NO_OPLOCK;
fsp              2114 source3/smbd/open.c 	set_share_mode(lck, fsp, conn->server_info->utok.uid, 0,
fsp              2115 source3/smbd/open.c 		       fsp->oplock_type);
fsp              2120 source3/smbd/open.c 		status = can_set_delete_on_close(fsp, True, new_dos_attributes);
fsp              2124 source3/smbd/open.c 			del_share_mode(lck, fsp);
fsp              2126 source3/smbd/open.c 			fd_close(fsp);
fsp              2131 source3/smbd/open.c 		fsp->initial_delete_on_close = True;
fsp              2162 source3/smbd/open.c 		if (SMB_VFS_FCHMOD_ACL(fsp, unx_mode) == -1 &&
fsp              2176 source3/smbd/open.c 			ret = SMB_VFS_FCHMOD_ACL(fsp, new_unx_mode);
fsp              2189 source3/smbd/open.c 		    (SMB_VFS_FCHMOD(fsp, new_unx_mode) == -1))
fsp              2214 source3/smbd/open.c 	files_struct *fsp = NULL;
fsp              2221 source3/smbd/open.c 	status = file_new(req, conn, &fsp);
fsp              2242 source3/smbd/open.c 		&fsp,					/* result */
fsp              2252 source3/smbd/open.c 		file_free(req, fsp);
fsp              2256 source3/smbd/open.c 	*result = fsp;
fsp              2264 source3/smbd/open.c NTSTATUS close_file_fchmod(struct smb_request *req, files_struct *fsp)
fsp              2266 source3/smbd/open.c 	NTSTATUS status = fd_close(fsp);
fsp              2267 source3/smbd/open.c 	file_free(req, fsp);
fsp              2376 source3/smbd/open.c 	files_struct *fsp = NULL;
fsp              2527 source3/smbd/open.c 	status = file_new(req, conn, &fsp);
fsp              2536 source3/smbd/open.c 	fsp->mode = psbuf->st_mode;
fsp              2537 source3/smbd/open.c 	fsp->file_id = vfs_file_id_from_sbuf(conn, psbuf);
fsp              2538 source3/smbd/open.c 	fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp              2539 source3/smbd/open.c 	fsp->file_pid = req ? req->smbpid : 0;
fsp              2540 source3/smbd/open.c 	fsp->can_lock = False;
fsp              2541 source3/smbd/open.c 	fsp->can_read = False;
fsp              2542 source3/smbd/open.c 	fsp->can_write = False;
fsp              2544 source3/smbd/open.c 	fsp->share_access = share_access;
fsp              2545 source3/smbd/open.c 	fsp->fh->private_options = create_options;
fsp              2549 source3/smbd/open.c 	fsp->access_mask = access_mask | FILE_READ_ATTRIBUTES;
fsp              2550 source3/smbd/open.c 	fsp->print_file = False;
fsp              2551 source3/smbd/open.c 	fsp->modified = False;
fsp              2552 source3/smbd/open.c 	fsp->oplock_type = NO_OPLOCK;
fsp              2553 source3/smbd/open.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp              2554 source3/smbd/open.c 	fsp->is_directory = True;
fsp              2555 source3/smbd/open.c 	fsp->posix_open = (file_attributes & FILE_FLAG_POSIX_SEMANTICS) ? True : False;
fsp              2557 source3/smbd/open.c 	string_set(&fsp->fsp_name,fname);
fsp              2561 source3/smbd/open.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id,
fsp              2567 source3/smbd/open.c 		file_free(req, fsp);
fsp              2577 source3/smbd/open.c 		file_free(req, fsp);
fsp              2581 source3/smbd/open.c 	set_share_mode(lck, fsp, conn->server_info->utok.uid, 0, NO_OPLOCK);
fsp              2586 source3/smbd/open.c 		status = can_set_delete_on_close(fsp, True, 0);
fsp              2589 source3/smbd/open.c 			file_free(req, fsp);
fsp              2596 source3/smbd/open.c 			fsp->initial_delete_on_close = True;
fsp              2606 source3/smbd/open.c 	*result = fsp;
fsp              2614 source3/smbd/open.c 	files_struct *fsp;
fsp              2633 source3/smbd/open.c 		&fsp,					/* result */
fsp              2638 source3/smbd/open.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              2655 source3/smbd/open.c 	files_struct *fsp;
fsp              2679 source3/smbd/open.c 	for(fsp = file_find_di_first(id); fsp; fsp = file_find_di_next(fsp)) {
fsp              2680 source3/smbd/open.c 		if (memcmp(fsp->conn->connectpath, sharepath, sp_len) == 0) {
fsp              2682 source3/smbd/open.c 				fsp->fnum, fsp->fsp_name, newname ));
fsp              2683 source3/smbd/open.c 			string_set(&fsp->fsp_name, newname);
fsp              2691 source3/smbd/open.c 				fsp->conn->connectpath,
fsp              2693 source3/smbd/open.c 				fsp->fnum,
fsp              2694 source3/smbd/open.c 				fsp->fsp_name,
fsp              2882 source3/smbd/open.c 	files_struct *fsp = NULL;
fsp              3055 source3/smbd/open.c 			&info, &fsp);
fsp              3062 source3/smbd/open.c 		status = file_new(req, conn, &fsp);
fsp              3072 source3/smbd/open.c 			fsp->base_fsp = base_fsp;
fsp              3086 source3/smbd/open.c 					    fsp);
fsp              3089 source3/smbd/open.c 			file_free(req, fsp);
fsp              3090 source3/smbd/open.c 			fsp = NULL;
fsp              3117 source3/smbd/open.c 				&info, &fsp);
fsp              3125 source3/smbd/open.c 	fsp->base_fsp = base_fsp;
fsp              3142 source3/smbd/open.c 		uint32_t saved_access_mask = fsp->access_mask;
fsp              3146 source3/smbd/open.c 		fsp->access_mask = FILE_GENERIC_ALL;
fsp              3156 source3/smbd/open.c 			status = SMB_VFS_FSET_NT_ACL(fsp, sec_info_sent, sd);
fsp              3159 source3/smbd/open.c 		fsp->access_mask = saved_access_mask;
fsp              3168 source3/smbd/open.c 		status = set_ea(conn, fsp, fname, ea_list);
fsp              3174 source3/smbd/open.c 	if (!fsp->is_directory && S_ISDIR(sbuf.st_mode)) {
fsp              3183 source3/smbd/open.c 			fsp->initial_allocation_size = smb_roundup(
fsp              3184 source3/smbd/open.c 				fsp->conn, allocation_size);
fsp              3185 source3/smbd/open.c 			if (fsp->is_directory) {
fsp              3191 source3/smbd/open.c 				    fsp, fsp->initial_allocation_size) == -1) {
fsp              3196 source3/smbd/open.c 			fsp->initial_allocation_size = smb_roundup(
fsp              3197 source3/smbd/open.c 				fsp->conn, (uint64_t)sbuf.st_size);
fsp              3203 source3/smbd/open.c 	*result = fsp;
fsp              3208 source3/smbd/open.c 		if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
fsp              3212 source3/smbd/open.c 			SMB_VFS_FSTAT(fsp, psbuf);
fsp              3220 source3/smbd/open.c 	if (fsp != NULL) {
fsp              3221 source3/smbd/open.c 		if (base_fsp && fsp->base_fsp == base_fsp) {
fsp              3228 source3/smbd/open.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              3229 source3/smbd/open.c 		fsp = NULL;
fsp              3350 source3/smbd/open.c 	files_struct *fsp = NULL;
fsp              3431 source3/smbd/open.c 						access_mask, &fsp);
fsp              3489 source3/smbd/open.c 		&fsp, &info, &sbuf);
fsp              3498 source3/smbd/open.c 	*result = fsp;
fsp              3510 source3/smbd/open.c 	if (fsp != NULL) {
fsp              3511 source3/smbd/open.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              3512 source3/smbd/open.c 		fsp = NULL;
fsp                38 source3/smbd/oplock.c void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp)
fsp                43 source3/smbd/oplock.c 	push_file_id_24((char *)msg, &fsp->file_id);
fsp                44 source3/smbd/oplock.c 	SIVAL(msg,24,fsp->fh->gen_id);
fsp                59 source3/smbd/oplock.c bool set_file_oplock(files_struct *fsp, int oplock_type)
fsp                61 source3/smbd/oplock.c 	if ((fsp->oplock_type == LEVEL_II_OPLOCK)
fsp                67 source3/smbd/oplock.c 	if ((fsp->oplock_type != NO_OPLOCK) &&
fsp                68 source3/smbd/oplock.c 	    (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK) &&
fsp                70 source3/smbd/oplock.c 	    !koplocks->ops->set_oplock(koplocks, fsp, oplock_type)) {
fsp                74 source3/smbd/oplock.c 	fsp->oplock_type = oplock_type;
fsp                75 source3/smbd/oplock.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp                78 source3/smbd/oplock.c 	} else if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp                84 source3/smbd/oplock.c 		 fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp                85 source3/smbd/oplock.c 		 fsp->fh->gen_id, (int)fsp->open_time.tv_sec,
fsp                86 source3/smbd/oplock.c 		 (int)fsp->open_time.tv_usec ));
fsp                95 source3/smbd/oplock.c void release_file_oplock(files_struct *fsp)
fsp                97 source3/smbd/oplock.c 	if ((fsp->oplock_type != NO_OPLOCK) &&
fsp                98 source3/smbd/oplock.c 	    (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK) &&
fsp               100 source3/smbd/oplock.c 		koplocks->ops->release_oplock(koplocks, fsp, NO_OPLOCK);
fsp               103 source3/smbd/oplock.c 	if (fsp->oplock_type == LEVEL_II_OPLOCK) {
fsp               105 source3/smbd/oplock.c 	} else if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp               112 source3/smbd/oplock.c 	if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp               114 source3/smbd/oplock.c 		fsp->oplock_type = FAKE_LEVEL_II_OPLOCK;
fsp               116 source3/smbd/oplock.c 		fsp->oplock_type = NO_OPLOCK;
fsp               118 source3/smbd/oplock.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp               120 source3/smbd/oplock.c 	flush_write_cache(fsp, OPLOCK_RELEASE_FLUSH);
fsp               122 source3/smbd/oplock.c 	TALLOC_FREE(fsp->oplock_timeout);
fsp               129 source3/smbd/oplock.c static void downgrade_file_oplock(files_struct *fsp)
fsp               131 source3/smbd/oplock.c 	if (!EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp               137 source3/smbd/oplock.c 		koplocks->ops->release_oplock(koplocks, fsp, LEVEL_II_OPLOCK);
fsp               139 source3/smbd/oplock.c 	fsp->oplock_type = LEVEL_II_OPLOCK;
fsp               142 source3/smbd/oplock.c 	fsp->sent_oplock_break = NO_BREAK_SENT;
fsp               151 source3/smbd/oplock.c bool remove_oplock(files_struct *fsp)
fsp               157 source3/smbd/oplock.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp               161 source3/smbd/oplock.c 			 "file %s\n", fsp->fsp_name ));
fsp               164 source3/smbd/oplock.c 	ret = remove_share_oplock(lck, fsp);
fsp               168 source3/smbd/oplock.c 			 fsp->fsp_name, fsp->fnum, file_id_string_tos(&fsp->file_id)));
fsp               170 source3/smbd/oplock.c 	release_file_oplock(fsp);
fsp               178 source3/smbd/oplock.c bool downgrade_oplock(files_struct *fsp)
fsp               183 source3/smbd/oplock.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp               187 source3/smbd/oplock.c 			 "file %s\n", fsp->fsp_name ));
fsp               190 source3/smbd/oplock.c 	ret = downgrade_share_oplock(lck, fsp);
fsp               194 source3/smbd/oplock.c 			 fsp->fsp_name, fsp->fnum, file_id_string_tos(&fsp->file_id)));
fsp               197 source3/smbd/oplock.c 	downgrade_file_oplock(fsp);
fsp               216 source3/smbd/oplock.c 				   files_struct *fsp, uint8 cmd)
fsp               228 source3/smbd/oplock.c 	SSVAL(result,smb_tid,fsp->conn->cnum);
fsp               233 source3/smbd/oplock.c 	SSVAL(result,smb_vwv2,fsp->fnum);
fsp               258 source3/smbd/oplock.c 	files_struct *fsp = NULL;
fsp               273 source3/smbd/oplock.c 	fsp = file_find_dif(id, file_id);
fsp               275 source3/smbd/oplock.c 	if(fsp == NULL) {
fsp               295 source3/smbd/oplock.c 	if(fsp->oplock_type == NO_OPLOCK) {
fsp               297 source3/smbd/oplock.c 			dbgtext( "initial_break_processing: file %s ", fsp->fsp_name );
fsp               299 source3/smbd/oplock.c 				 file_id_string_tos(&id), fsp->fh->gen_id );
fsp               305 source3/smbd/oplock.c 	return fsp;
fsp               313 source3/smbd/oplock.c 	files_struct *fsp = (files_struct *)private_data;
fsp               316 source3/smbd/oplock.c 	TALLOC_FREE(fsp->oplock_timeout);
fsp               317 source3/smbd/oplock.c 	DEBUG(0, ("Oplock break failed for file %s -- replying anyway\n", fsp->fsp_name));
fsp               319 source3/smbd/oplock.c 	remove_oplock(fsp);
fsp               320 source3/smbd/oplock.c 	reply_to_oplock_break_requests(fsp);
fsp               327 source3/smbd/oplock.c static void add_oplock_timeout_handler(files_struct *fsp)
fsp               338 source3/smbd/oplock.c 	if (fsp->oplock_timeout != NULL) {
fsp               343 source3/smbd/oplock.c 	fsp->oplock_timeout =
fsp               346 source3/smbd/oplock.c 				oplock_timeout_handler, fsp);
fsp               348 source3/smbd/oplock.c 	if (fsp->oplock_timeout == NULL) {
fsp               353 source3/smbd/oplock.c void break_level2_to_none_async(files_struct *fsp)
fsp               358 source3/smbd/oplock.c 	if (fsp->oplock_type == NO_OPLOCK) {
fsp               366 source3/smbd/oplock.c 	if (fsp->oplock_type == FAKE_LEVEL_II_OPLOCK) {
fsp               370 source3/smbd/oplock.c 		remove_oplock(fsp);
fsp               375 source3/smbd/oplock.c 	SMB_ASSERT(fsp->oplock_type == LEVEL_II_OPLOCK);
fsp               378 source3/smbd/oplock.c 		  "to none message for fid %d, file %s\n", fsp->fnum,
fsp               379 source3/smbd/oplock.c 		  fsp->fsp_name));
fsp               382 source3/smbd/oplock.c 	break_msg = new_break_smb_message(NULL, fsp, OPLOCKLEVEL_NONE);
fsp               393 source3/smbd/oplock.c 			IS_CONN_ENCRYPTED(fsp->conn),
fsp               404 source3/smbd/oplock.c 	remove_oplock(fsp);
fsp               423 source3/smbd/oplock.c 	files_struct *fsp;
fsp               442 source3/smbd/oplock.c 	fsp = initial_break_processing(msg.id, msg.share_file_id);
fsp               444 source3/smbd/oplock.c 	if (fsp == NULL) {
fsp               452 source3/smbd/oplock.c 	break_level2_to_none_async(fsp);
fsp               466 source3/smbd/oplock.c 	files_struct *fsp;
fsp               488 source3/smbd/oplock.c 	fsp = initial_break_processing(msg.id, msg.share_file_id);
fsp               490 source3/smbd/oplock.c 	if (fsp == NULL) {
fsp               503 source3/smbd/oplock.c 	if (fsp->sent_oplock_break != NO_BREAK_SENT) {
fsp               508 source3/smbd/oplock.c 			     &fsp->pending_break_messages,
fsp               509 source3/smbd/oplock.c 			     &fsp->num_pending_break_messages);
fsp               514 source3/smbd/oplock.c 	    !EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp               516 source3/smbd/oplock.c 			  file_id_string_tos(&fsp->file_id),
fsp               517 source3/smbd/oplock.c 			  fsp->fsp_name));
fsp               528 source3/smbd/oplock.c 	    lp_level2_oplocks(SNUM(fsp->conn))) {
fsp               532 source3/smbd/oplock.c 	break_msg = new_break_smb_message(NULL, fsp, break_to_level2 ?
fsp               549 source3/smbd/oplock.c 			IS_CONN_ENCRYPTED(fsp->conn),
fsp               559 source3/smbd/oplock.c 	fsp->sent_oplock_break = break_to_level2 ? LEVEL_II_BREAK_SENT:BREAK_TO_NONE_SENT;
fsp               563 source3/smbd/oplock.c 		     &fsp->pending_break_messages,
fsp               564 source3/smbd/oplock.c 		     &fsp->num_pending_break_messages);
fsp               566 source3/smbd/oplock.c 	add_oplock_timeout_handler(fsp);
fsp               581 source3/smbd/oplock.c 	files_struct *fsp;
fsp               603 source3/smbd/oplock.c 	fsp = initial_break_processing(id, file_id);
fsp               605 source3/smbd/oplock.c 	if (fsp == NULL) {
fsp               611 source3/smbd/oplock.c 	if (fsp->sent_oplock_break != NO_BREAK_SENT) {
fsp               618 source3/smbd/oplock.c 	break_msg = new_break_smb_message(NULL, fsp, OPLOCKLEVEL_NONE);
fsp               629 source3/smbd/oplock.c 			IS_CONN_ENCRYPTED(fsp->conn),
fsp               639 source3/smbd/oplock.c 	fsp->sent_oplock_break = BREAK_TO_NONE_SENT;
fsp               641 source3/smbd/oplock.c 	add_oplock_timeout_handler(fsp);
fsp               644 source3/smbd/oplock.c void reply_to_oplock_break_requests(files_struct *fsp)
fsp               657 source3/smbd/oplock.c 	for (i=0; i<fsp->num_pending_break_messages; i++) {
fsp               658 source3/smbd/oplock.c 		struct share_mode_entry *e = &fsp->pending_break_messages[i];
fsp               669 source3/smbd/oplock.c 	SAFE_FREE(fsp->pending_break_messages);
fsp               670 source3/smbd/oplock.c 	fsp->num_pending_break_messages = 0;
fsp               671 source3/smbd/oplock.c 	if (fsp->oplock_timeout != NULL) {
fsp               673 source3/smbd/oplock.c 		TALLOC_FREE(fsp->oplock_timeout);
fsp               674 source3/smbd/oplock.c 		fsp->oplock_timeout = NULL;
fsp               743 source3/smbd/oplock.c static void contend_level2_oplocks_begin_default(files_struct *fsp,
fsp               757 source3/smbd/oplock.c 	if (!LEVEL_II_OPLOCK_TYPE(fsp->oplock_type))
fsp               760 source3/smbd/oplock.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp               764 source3/smbd/oplock.c 			 "share mode entry for file %s.\n", fsp->fsp_name ));
fsp               823 source3/smbd/oplock.c 			break_level2_to_none_async(fsp);
fsp               839 source3/smbd/oplock.c void contend_level2_oplocks_begin(files_struct *fsp,
fsp               843 source3/smbd/oplock.c 		koplocks->ops->contend_level2_oplocks_begin(fsp, type);
fsp               847 source3/smbd/oplock.c 	contend_level2_oplocks_begin_default(fsp, type);
fsp               850 source3/smbd/oplock.c void contend_level2_oplocks_end(files_struct *fsp,
fsp               855 source3/smbd/oplock.c 		koplocks->ops->contend_level2_oplocks_end(fsp, type);
fsp               136 source3/smbd/oplock_irix.c 	files_struct *fsp;
fsp               185 source3/smbd/oplock_irix.c 	if ((fsp = file_find_di_first(fileid)) == NULL) {
fsp               194 source3/smbd/oplock_irix.c 		 file_id_string_tos(&fsp->file_id),
fsp               195 source3/smbd/oplock_irix.c 		 fsp->fh->gen_id ));
fsp               197 source3/smbd/oplock_irix.c 	return fsp;
fsp               205 source3/smbd/oplock_irix.c 				   files_struct *fsp, int oplock_type)
fsp               210 source3/smbd/oplock_irix.c 	if (sys_fcntl_long(fsp->fh->fd, F_OPLKREG, ctx->write_fd) == -1) {
fsp               215 source3/smbd/oplock_irix.c 				 fsp->fsp_name, file_id_string_tos(&fsp->file_id), 
fsp               216 source3/smbd/oplock_irix.c 				 fsp->fh->gen_id,
fsp               223 source3/smbd/oplock_irix.c 				 fsp->fsp_name, fsp->fh->fd,
fsp               224 source3/smbd/oplock_irix.c 				 file_id_string_tos(&fsp->file_id),
fsp               225 source3/smbd/oplock_irix.c 				 fsp->fh->gen_id ));
fsp               232 source3/smbd/oplock_irix.c 		  fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp               233 source3/smbd/oplock_irix.c 		  fsp->fh->gen_id));
fsp               243 source3/smbd/oplock_irix.c 				       files_struct *fsp, int oplock_type)
fsp               250 source3/smbd/oplock_irix.c 		int state = sys_fcntl_long(fsp->fh->fd, F_OPLKACK, -1);
fsp               253 source3/smbd/oplock_irix.c 			"of %x.\n", fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp               254 source3/smbd/oplock_irix.c                         fsp->fh->gen_id, state );
fsp               260 source3/smbd/oplock_irix.c 	if(sys_fcntl_long(fsp->fh->fd, F_OPLKACK, OP_REVOKE) < 0) {
fsp               266 source3/smbd/oplock_irix.c 				fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp               267 source3/smbd/oplock_irix.c 				fsp->fh->gen_id,
fsp               280 source3/smbd/oplock_irix.c 	files_struct *fsp;
fsp               282 source3/smbd/oplock_irix.c 	fsp = irix_oplock_receive_message(ctx->ctx);
fsp               283 source3/smbd/oplock_irix.c 	break_kernel_oplock(smbd_messaging_context(), fsp);
fsp                98 source3/smbd/oplock_linux.c 	files_struct *fsp;
fsp               100 source3/smbd/oplock_linux.c 	fsp = file_find_fd(fd);
fsp               101 source3/smbd/oplock_linux.c 	if (fsp == NULL) {
fsp               105 source3/smbd/oplock_linux.c 	break_kernel_oplock(smbd_messaging_context(), fsp);
fsp               113 source3/smbd/oplock_linux.c 				    files_struct *fsp, int oplock_type)
fsp               115 source3/smbd/oplock_linux.c 	if ( SMB_VFS_LINUX_SETLEASE(fsp, F_WRLCK) == -1) {
fsp               118 source3/smbd/oplock_linux.c 			 fsp->fsp_name, fsp->fh->fd, 
fsp               119 source3/smbd/oplock_linux.c 			 file_id_string_tos(&fsp->file_id),
fsp               126 source3/smbd/oplock_linux.c 		 fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp               127 source3/smbd/oplock_linux.c 		 fsp->fh->gen_id));
fsp               137 source3/smbd/oplock_linux.c 					files_struct *fsp, int oplock_type)
fsp               144 source3/smbd/oplock_linux.c 		int state = fcntl(fsp->fh->fd, F_GETLEASE, 0);
fsp               147 source3/smbd/oplock_linux.c 			"of %x.\n", fsp->fsp_name, file_id_string_tos(&fsp->file_id),
fsp               148 source3/smbd/oplock_linux.c 			fsp->fh->gen_id, state );
fsp               154 source3/smbd/oplock_linux.c 	if ( SMB_VFS_LINUX_SETLEASE(fsp, F_UNLCK) == -1) {
fsp               159 source3/smbd/oplock_linux.c 				"Error was %s\n", fsp->fsp_name,
fsp               160 source3/smbd/oplock_linux.c 				file_id_string_tos(&fsp->file_id),
fsp               161 source3/smbd/oplock_linux.c 				fsp->fh->gen_id, strerror(errno) );
fsp                51 source3/smbd/oplock_onefs.c 		files_struct *fsp;	/* ONEFS_OPEN_FILE */
fsp                77 source3/smbd/oplock_onefs.c 			     r->id, r->data.fsp->fsp_name);
fsp               233 source3/smbd/oplock_onefs.c void onefs_set_oplock_callback(uint64_t id, files_struct *fsp)
fsp               260 source3/smbd/oplock_onefs.c 	cb->data.fsp = fsp;
fsp               275 source3/smbd/oplock_onefs.c 	sme->id = cb->data.fsp->file_id;
fsp               276 source3/smbd/oplock_onefs.c 	sme->share_file_id = cb->data.fsp->fh->gen_id;
fsp               302 source3/smbd/oplock_onefs.c 		   cb->data.fsp->fsp_name));
fsp               339 source3/smbd/oplock_onefs.c 		   cb->data.fsp->fsp_name));
fsp               365 source3/smbd/oplock_onefs.c 	files_struct *fsp = NULL;
fsp               375 source3/smbd/oplock_onefs.c 	fsp = cb->data.fsp;
fsp               377 source3/smbd/oplock_onefs.c 	SMB_ASSERT(fsp->oplock_timeout == NULL);
fsp               380 source3/smbd/oplock_onefs.c 		 "revoking oplock\n", fsp->fsp_name));
fsp               383 source3/smbd/oplock_onefs.c 	remove_oplock(fsp);
fsp               491 source3/smbd/oplock_onefs.c 				    files_struct *fsp, int oplock_type) {
fsp               499 source3/smbd/oplock_onefs.c 					files_struct *fsp, int oplock_type)
fsp               504 source3/smbd/oplock_onefs.c 		   fsp->fsp_name, onefs_oplock_str(oplock)));
fsp               506 source3/smbd/oplock_onefs.c 	if (fsp->fh->fd == -1) {
fsp               512 source3/smbd/oplock_onefs.c 	if (ifs_oplock_downgrade(fsp->fh->fd, oplock)) {
fsp               555 source3/smbd/oplock_onefs.c static void onefs_contend_level2_oplocks_begin(files_struct *fsp,
fsp               559 source3/smbd/oplock_onefs.c 	onefs_semlock_write(fsp->fh->fd, type, SEMLOCK_LOCK);
fsp               562 source3/smbd/oplock_onefs.c 	if (LEVEL_II_OPLOCK_TYPE(fsp->oplock_type))
fsp               563 source3/smbd/oplock_onefs.c 		break_level2_to_none_async(fsp);
fsp               569 source3/smbd/oplock_onefs.c static void onefs_contend_level2_oplocks_end(files_struct *fsp,
fsp               573 source3/smbd/oplock_onefs.c 	onefs_semlock_write(fsp->fh->fd, type, SEMLOCK_UNLOCK);
fsp                39 source3/smbd/pipes.c 	struct files_struct *fsp;
fsp                42 source3/smbd/pipes.c 	status = file_new(smb_req, conn, &fsp);
fsp                48 source3/smbd/pipes.c 	fsp->conn = conn;
fsp                49 source3/smbd/pipes.c 	fsp->fh->fd = -1;
fsp                50 source3/smbd/pipes.c 	fsp->vuid = smb_req->vuid;
fsp                51 source3/smbd/pipes.c 	fsp->can_lock = false;
fsp                52 source3/smbd/pipes.c 	fsp->access_mask = FILE_READ_DATA | FILE_WRITE_DATA;
fsp                53 source3/smbd/pipes.c 	string_set(&fsp->fsp_name, name);
fsp                56 source3/smbd/pipes.c 			 conn->server_info, &fsp->fake_file_handle);
fsp                60 source3/smbd/pipes.c 		file_free(smb_req, fsp);
fsp                64 source3/smbd/pipes.c 	*pfsp = fsp;
fsp                79 source3/smbd/pipes.c 	files_struct *fsp;
fsp               114 source3/smbd/pipes.c 	status = open_np_file(req, fname, &fsp);
fsp               132 source3/smbd/pipes.c 	SSVAL(req->outbuf, smb_vwv2, fsp->fnum);
fsp               155 source3/smbd/pipes.c 	files_struct *fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp               160 source3/smbd/pipes.c 	if (!fsp_is_np(fsp)) {
fsp               165 source3/smbd/pipes.c 	if (fsp->vuid != req->vuid) {
fsp               181 source3/smbd/pipes.c 	DEBUG(6, ("reply_pipe_write: %x name: %s len: %d\n", (int)fsp->fnum,
fsp               182 source3/smbd/pipes.c 		  fsp->fsp_name, (int)state->numtowrite));
fsp               185 source3/smbd/pipes.c 			       fsp->fake_file_handle, data, state->numtowrite);
fsp               242 source3/smbd/pipes.c 	files_struct *fsp = file_fsp(req, SVAL(req->vwv+2, 0));
fsp               248 source3/smbd/pipes.c 	if (!fsp_is_np(fsp)) {
fsp               253 source3/smbd/pipes.c 	if (fsp->vuid != req->vuid) {
fsp               271 source3/smbd/pipes.c 		  (int)fsp->fnum, fsp->fsp_name, (int)state->numtowrite));
fsp               294 source3/smbd/pipes.c 			       fsp->fake_file_handle, data, state->numtowrite);
fsp               352 source3/smbd/pipes.c 	files_struct *fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp               364 source3/smbd/pipes.c 	if (!fsp_is_np(fsp)) {
fsp               369 source3/smbd/pipes.c 	if (fsp->vuid != req->vuid) {
fsp               394 source3/smbd/pipes.c 			      fsp->fake_file_handle, data,
fsp               239 source3/smbd/posix_acls.c static void store_inheritance_attributes(files_struct *fsp,
fsp               248 source3/smbd/posix_acls.c 	if (!lp_map_acl_inherit(SNUM(fsp->conn))) {
fsp               255 source3/smbd/posix_acls.c 	if (fsp->fh->fd != -1) {
fsp               256 source3/smbd/posix_acls.c 		ret = SMB_VFS_FSETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
fsp               259 source3/smbd/posix_acls.c 		ret = SMB_VFS_SETXATTR(fsp->conn,fsp->fsp_name, SAMBA_POSIX_INHERITANCE_EA_NAME,
fsp               267 source3/smbd/posix_acls.c 		fsp->fsp_name));
fsp               582 source3/smbd/posix_acls.c static struct pai_val *fload_inherited_info(files_struct *fsp)
fsp               589 source3/smbd/posix_acls.c 	if (!lp_map_acl_inherit(SNUM(fsp->conn))) {
fsp               598 source3/smbd/posix_acls.c 		if (fsp->fh->fd != -1) {
fsp               599 source3/smbd/posix_acls.c 			ret = SMB_VFS_FGETXATTR(fsp, SAMBA_POSIX_INHERITANCE_EA_NAME,
fsp               602 source3/smbd/posix_acls.c 			ret = SMB_VFS_GETXATTR(fsp->conn,fsp->fsp_name,SAMBA_POSIX_INHERITANCE_EA_NAME,
fsp               621 source3/smbd/posix_acls.c 	DEBUG(10,("load_inherited_info: ret = %lu for file %s\n", (unsigned long)ret, fsp->fsp_name));
fsp               641 source3/smbd/posix_acls.c 			fsp->fsp_name));
fsp              1507 source3/smbd/posix_acls.c static bool create_canon_ace_lists(files_struct *fsp,
fsp              1515 source3/smbd/posix_acls.c 	bool all_aces_are_inherit_only = (fsp->is_directory ? True : False);
fsp              1709 source3/smbd/posix_acls.c 		if (fsp->is_directory) {
fsp              1731 source3/smbd/posix_acls.c Deny entry after Allow entry. Failing to set on file %s.\n", fsp->fsp_name ));
fsp              1789 source3/smbd/posix_acls.c Deny entry after Allow entry. Failing to set on file %s.\n", fsp->fsp_name ));
fsp              1814 source3/smbd/posix_acls.c 	if (fsp->is_directory && all_aces_are_inherit_only) {
fsp              2164 source3/smbd/posix_acls.c static mode_t create_default_mode(files_struct *fsp, bool interitable_mode)
fsp              2166 source3/smbd/posix_acls.c 	int snum = SNUM(fsp->conn);
fsp              2170 source3/smbd/posix_acls.c 		? unix_mode( fsp->conn, FILE_ATTRIBUTE_ARCHIVE, fsp->fsp_name,
fsp              2174 source3/smbd/posix_acls.c 	if (fsp->is_directory)
fsp              2182 source3/smbd/posix_acls.c 	if (fsp->is_directory) {
fsp              2198 source3/smbd/posix_acls.c static bool unpack_canon_ace(files_struct *fsp,
fsp              2229 source3/smbd/posix_acls.c 	if (!create_canon_ace_lists( fsp, pst, pfile_owner_sid, pfile_grp_sid,
fsp              2275 source3/smbd/posix_acls.c 	pst->st_mode = create_default_mode(fsp, False);
fsp              2277 source3/smbd/posix_acls.c 	if (!ensure_canon_entry_valid(&file_ace, fsp->conn->params, fsp->is_directory, pfile_owner_sid, pfile_grp_sid, pst, True)) {
fsp              2291 source3/smbd/posix_acls.c 	pst->st_mode = create_default_mode(fsp, True);
fsp              2293 source3/smbd/posix_acls.c 	if (dir_ace && !ensure_canon_entry_valid(&dir_ace, fsp->conn->params, fsp->is_directory, pfile_owner_sid, pfile_grp_sid, pst, True)) {
fsp              2576 source3/smbd/posix_acls.c static bool set_canon_ace_list(files_struct *fsp, canon_ace *the_ace, bool default_ace, SMB_STRUCT_STAT *psbuf, bool *pacl_set_support)
fsp              2578 source3/smbd/posix_acls.c 	connection_struct *conn = fsp->conn;
fsp              2745 source3/smbd/posix_acls.c 	if(default_ace || fsp->is_directory || fsp->fh->fd == -1) {
fsp              2746 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl) == -1) {
fsp              2755 source3/smbd/posix_acls.c 			if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
fsp              2759 source3/smbd/posix_acls.c 					fsp->fsp_name ));
fsp              2762 source3/smbd/posix_acls.c 				sret = SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl);
fsp              2772 source3/smbd/posix_acls.c 						fsp->fsp_name, strerror(errno) ));
fsp              2777 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FD(fsp, the_acl) == -1) {
fsp              2786 source3/smbd/posix_acls.c 			if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
fsp              2790 source3/smbd/posix_acls.c 					fsp->fsp_name ));
fsp              2793 source3/smbd/posix_acls.c 				sret = SMB_VFS_SYS_ACL_SET_FD(fsp, the_acl);
fsp              2802 source3/smbd/posix_acls.c 						fsp->fsp_name, strerror(errno) ));
fsp              2858 source3/smbd/posix_acls.c static bool convert_canon_ace_to_posix_perms( files_struct *fsp, canon_ace *file_ace_list, mode_t *posix_perms)
fsp              2860 source3/smbd/posix_acls.c 	int snum = SNUM(fsp->conn);
fsp              2871 source3/smbd/posix_acls.c posix perms.\n", fsp->fsp_name ));
fsp              2886 source3/smbd/posix_acls.c 				fsp->fsp_name ));
fsp              2903 source3/smbd/posix_acls.c 	if (fsp->is_directory)
fsp              2910 source3/smbd/posix_acls.c 	if (fsp->is_directory) {
fsp              2922 source3/smbd/posix_acls.c 		fsp->fsp_name ));
fsp              3306 source3/smbd/posix_acls.c NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, uint32_t security_info,
fsp              3315 source3/smbd/posix_acls.c 	DEBUG(10,("posix_fget_nt_acl: called for file %s\n", fsp->fsp_name ));
fsp              3318 source3/smbd/posix_acls.c 	if (fsp->is_directory ||  fsp->fh->fd == -1) {
fsp              3319 source3/smbd/posix_acls.c 		return posix_get_nt_acl(fsp->conn, fsp->fsp_name,
fsp              3324 source3/smbd/posix_acls.c 	if(SMB_VFS_FSTAT(fsp, &sbuf) != 0) {
fsp              3329 source3/smbd/posix_acls.c 	posix_acl = SMB_VFS_SYS_ACL_GET_FD(fsp);
fsp              3331 source3/smbd/posix_acls.c 	pal = fload_inherited_info(fsp);
fsp              3333 source3/smbd/posix_acls.c 	return posix_get_nt_acl_common(fsp->conn, fsp->fsp_name, &sbuf, pal,
fsp              3388 source3/smbd/posix_acls.c 	files_struct *fsp;
fsp              3451 source3/smbd/posix_acls.c 	if (!NT_STATUS_IS_OK(open_file_fchmod(NULL, conn, fname, &st, &fsp))) {
fsp              3457 source3/smbd/posix_acls.c 	ret = SMB_VFS_FCHOWN(fsp, uid, (gid_t)-1);
fsp              3460 source3/smbd/posix_acls.c 	close_file_fchmod(NULL, fsp);
fsp              3472 source3/smbd/posix_acls.c NTSTATUS append_parent_acl(files_struct *fsp,
fsp              3495 source3/smbd/posix_acls.c 	if (!parent_dirname(mem_ctx, fsp->fsp_name, &parent_name, NULL)) {
fsp              3500 source3/smbd/posix_acls.c 		fsp->conn,				/* conn */
fsp              3564 source3/smbd/posix_acls.c 		if (fsp->is_directory) {
fsp              3571 source3/smbd/posix_acls.c 					fsp->fsp_name,
fsp              3584 source3/smbd/posix_acls.c 					fsp->fsp_name,
fsp              3608 source3/smbd/posix_acls.c 					fsp->fsp_name,
fsp              3621 source3/smbd/posix_acls.c 		if (fsp->is_directory) {
fsp              3646 source3/smbd/posix_acls.c 			fsp->fsp_name,
fsp              3667 source3/smbd/posix_acls.c NTSTATUS set_nt_acl(files_struct *fsp, uint32 security_info_sent, const SEC_DESC *psd)
fsp              3669 source3/smbd/posix_acls.c 	connection_struct *conn = fsp->conn;
fsp              3686 source3/smbd/posix_acls.c 	DEBUG(10,("set_nt_acl: called for file %s\n", fsp->fsp_name ));
fsp              3697 source3/smbd/posix_acls.c 	if(fsp->is_directory || fsp->fh->fd == -1) {
fsp              3699 source3/smbd/posix_acls.c 			sret = SMB_VFS_LSTAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp              3701 source3/smbd/posix_acls.c 			sret = SMB_VFS_STAT(fsp->conn,fsp->fsp_name, &sbuf);
fsp              3707 source3/smbd/posix_acls.c 		if(SMB_VFS_FSTAT(fsp, &sbuf) != 0)
fsp              3732 source3/smbd/posix_acls.c 				fsp->fsp_name, (unsigned int)user, (unsigned int)grp ));
fsp              3734 source3/smbd/posix_acls.c 		if(try_chown( fsp->conn, fsp->fsp_name, user, grp) == -1) {
fsp              3736 source3/smbd/posix_acls.c 				fsp->fsp_name, (unsigned int)user, (unsigned int)grp, strerror(errno) ));
fsp              3748 source3/smbd/posix_acls.c 		if(fsp->is_directory) {
fsp              3750 source3/smbd/posix_acls.c 				sret = SMB_VFS_LSTAT(fsp->conn, fsp->fsp_name, &sbuf);
fsp              3752 source3/smbd/posix_acls.c 				sret = SMB_VFS_STAT(fsp->conn, fsp->fsp_name, &sbuf);
fsp              3758 source3/smbd/posix_acls.c 			if(fsp->fh->fd == -1) {
fsp              3760 source3/smbd/posix_acls.c 					sret = SMB_VFS_LSTAT(fsp->conn, fsp->fsp_name, &sbuf);
fsp              3762 source3/smbd/posix_acls.c 					sret = SMB_VFS_STAT(fsp->conn, fsp->fsp_name, &sbuf);
fsp              3765 source3/smbd/posix_acls.c 				sret = SMB_VFS_FSTAT(fsp, &sbuf);
fsp              3783 source3/smbd/posix_acls.c 	acl_perms = unpack_canon_ace( fsp, &sbuf, &file_owner_sid, &file_grp_sid,
fsp              3817 source3/smbd/posix_acls.c 		ret = set_canon_ace_list(fsp, file_ace_list, False, &sbuf, &acl_set_support);
fsp              3822 source3/smbd/posix_acls.c 			DEBUG(3,("set_nt_acl: failed to set file acl on file %s (%s).\n", fsp->fsp_name, strerror(errno) ));
fsp              3829 source3/smbd/posix_acls.c 	if (acl_perms && acl_set_support && fsp->is_directory) {
fsp              3834 source3/smbd/posix_acls.c 			ret = set_canon_ace_list(fsp, dir_ace_list, True, &sbuf, &acl_set_support);
fsp              3839 source3/smbd/posix_acls.c 				DEBUG(3,("set_nt_acl: failed to set default acl on directory %s (%s).\n", fsp->fsp_name, strerror(errno) ));
fsp              3852 source3/smbd/posix_acls.c 			sret = SMB_VFS_SYS_ACL_DELETE_DEF_FILE(conn, fsp->fsp_name);
fsp              3857 source3/smbd/posix_acls.c 				if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
fsp              3860 source3/smbd/posix_acls.c 						fsp->fsp_name ));
fsp              3863 source3/smbd/posix_acls.c 					sret = SMB_VFS_SYS_ACL_DELETE_DEF_FILE(conn, fsp->fsp_name);
fsp              3881 source3/smbd/posix_acls.c 		store_inheritance_attributes(fsp,
fsp              3897 source3/smbd/posix_acls.c 		if (!convert_canon_ace_to_posix_perms( fsp, file_ace_list, &posix_perms)) {
fsp              3901 source3/smbd/posix_acls.c 				fsp->fsp_name ));
fsp              3907 source3/smbd/posix_acls.c 				fsp->fsp_name, (unsigned int)posix_perms ));
fsp              3912 source3/smbd/posix_acls.c 			sret = SMB_VFS_CHMOD(conn,fsp->fsp_name, posix_perms);
fsp              3917 source3/smbd/posix_acls.c 				if (acl_group_override(conn, &sbuf, fsp->fsp_name)) {
fsp              3920 source3/smbd/posix_acls.c 						fsp->fsp_name ));
fsp              3923 source3/smbd/posix_acls.c 					sret = SMB_VFS_CHMOD(conn,fsp->fsp_name, posix_perms);
fsp              3929 source3/smbd/posix_acls.c 						fsp->fsp_name, (unsigned int)posix_perms, strerror(errno) ));
fsp              4129 source3/smbd/posix_acls.c int fchmod_acl(files_struct *fsp, mode_t mode)
fsp              4131 source3/smbd/posix_acls.c 	connection_struct *conn = fsp->conn;
fsp              4135 source3/smbd/posix_acls.c 	if ((posix_acl = SMB_VFS_SYS_ACL_GET_FD(fsp)) == NULL)
fsp              4141 source3/smbd/posix_acls.c 	ret = SMB_VFS_SYS_ACL_SET_FD(fsp, posix_acl);
fsp              4357 source3/smbd/posix_acls.c static bool remove_posix_acl(connection_struct *conn, files_struct *fsp, const char *fname)
fsp              4409 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fsp              4410 source3/smbd/posix_acls.c 		file_acl = SMB_VFS_SYS_ACL_GET_FD(fsp);
fsp              4460 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fsp              4461 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FD(fsp, new_file_acl) == -1) {
fsp              4493 source3/smbd/posix_acls.c bool set_unix_posix_acl(connection_struct *conn, files_struct *fsp, const char *fname, uint16 num_acls, const char *pdata)
fsp              4499 source3/smbd/posix_acls.c 		return remove_posix_acl(conn, fsp, fname);
fsp              4506 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fsp              4508 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FD(fsp, file_acl) == -1) {
fsp               328 source3/smbd/reply.c 		    files_struct *fsp)
fsp               330 source3/smbd/reply.c 	if (!(fsp) || !(conn)) {
fsp               334 source3/smbd/reply.c 	if (((conn) != (fsp)->conn) || req->vuid != (fsp)->vuid) {
fsp               346 source3/smbd/reply.c 	       files_struct *fsp)
fsp               348 source3/smbd/reply.c 	if (!check_fsp_open(conn, req, fsp)) {
fsp               351 source3/smbd/reply.c 	if ((fsp)->is_directory) {
fsp               355 source3/smbd/reply.c 	if ((fsp)->fh->fd == -1) {
fsp               359 source3/smbd/reply.c 	(fsp)->num_smb_operations++;
fsp               369 source3/smbd/reply.c 			      files_struct *fsp)
fsp               371 source3/smbd/reply.c 	if (!check_fsp_open(conn, req, fsp)) {
fsp               375 source3/smbd/reply.c 	if (fsp->is_directory) {
fsp               379 source3/smbd/reply.c 	if (fsp->fake_file_handle == NULL) {
fsp               383 source3/smbd/reply.c 	if (fsp->fake_file_handle->type != FAKE_FILE_TYPE_QUOTA) {
fsp               387 source3/smbd/reply.c 	if (fsp->fake_file_handle->private_data == NULL) {
fsp               399 source3/smbd/reply.c 		      files_struct *fsp)
fsp               401 source3/smbd/reply.c 	if ((fsp) && (conn) && ((conn)==(fsp)->conn)
fsp               402 source3/smbd/reply.c 	    && (req->vuid == (fsp)->vuid)) {
fsp               828 source3/smbd/reply.c 			files_struct *fsp = file_fsp(
fsp               830 source3/smbd/reply.c 			if (!fsp) {
fsp               835 source3/smbd/reply.c 			SSVAL(p,0,fsp->rap_print_jobid);             /* Job number */
fsp              1615 source3/smbd/reply.c 	files_struct *fsp;
fsp              1671 source3/smbd/reply.c 		&fsp,					/* result */
fsp              1687 source3/smbd/reply.c 	fattr = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp              1691 source3/smbd/reply.c 		DEBUG(3,("attempt to open a directory %s\n",fsp->fsp_name));
fsp              1692 source3/smbd/reply.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              1699 source3/smbd/reply.c 	SSVAL(req->outbuf,smb_vwv0,fsp->fnum);
fsp              1714 source3/smbd/reply.c 	if(EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              1747 source3/smbd/reply.c 	files_struct *fsp;
fsp              1819 source3/smbd/reply.c 		&fsp,					/* result */
fsp              1836 source3/smbd/reply.c 		fsp->initial_allocation_size = smb_roundup(fsp->conn, allocation_size);
fsp              1837 source3/smbd/reply.c 		if (vfs_allocate_file_space(fsp, fsp->initial_allocation_size) == -1) {
fsp              1838 source3/smbd/reply.c 			close_file(req, fsp, ERROR_CLOSE);
fsp              1843 source3/smbd/reply.c 		retval = vfs_set_filelen(fsp, (SMB_OFF_T)allocation_size);
fsp              1845 source3/smbd/reply.c 			close_file(req, fsp, ERROR_CLOSE);
fsp              1850 source3/smbd/reply.c 		sbuf.st_size = SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf);
fsp              1853 source3/smbd/reply.c 	fattr = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp              1856 source3/smbd/reply.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              1871 source3/smbd/reply.c 	if(ex_oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              1891 source3/smbd/reply.c 	if(core_oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              1896 source3/smbd/reply.c 	SSVAL(req->outbuf,smb_vwv2,fsp->fnum);
fsp              1960 source3/smbd/reply.c 	files_struct *fsp;
fsp              2022 source3/smbd/reply.c 		&fsp,					/* result */
fsp              2037 source3/smbd/reply.c 	status = smb_set_file_time(conn, fsp, fsp->fsp_name, &sbuf, &ft, true);
fsp              2045 source3/smbd/reply.c 	SSVAL(req->outbuf,smb_vwv0,fsp->fnum);
fsp              2052 source3/smbd/reply.c 	if(EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              2057 source3/smbd/reply.c 	DEBUG( 2, ( "reply_mknew: file %s\n", fsp->fsp_name ) );
fsp              2059 source3/smbd/reply.c 		    fsp->fsp_name, fsp->fh->fd, (unsigned int)fattr ) );
fsp              2074 source3/smbd/reply.c 	files_struct *fsp;
fsp              2170 source3/smbd/reply.c 		&fsp,					/* result */
fsp              2189 source3/smbd/reply.c 	SSVAL(req->outbuf,smb_vwv0,fsp->fnum);
fsp              2192 source3/smbd/reply.c 	s = strrchr_m(fsp->fsp_name, '/');
fsp              2194 source3/smbd/reply.c 		s = fsp->fsp_name;
fsp              2216 source3/smbd/reply.c 	if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              2221 source3/smbd/reply.c 	DEBUG( 2, ( "reply_ctemp: created temp file %s\n", fsp->fsp_name ) );
fsp              2222 source3/smbd/reply.c 	DEBUG( 3, ( "reply_ctemp %s fd=%d umode=0%o\n", fsp->fsp_name,
fsp              2223 source3/smbd/reply.c 		    fsp->fh->fd, (unsigned int)sbuf.st_mode ) );
fsp              2233 source3/smbd/reply.c static NTSTATUS can_rename(connection_struct *conn, files_struct *fsp,
fsp              2242 source3/smbd/reply.c 	fmode = dos_mode(conn, fsp->fsp_name, pst);
fsp              2248 source3/smbd/reply.c 		if (fsp->posix_open) {
fsp              2255 source3/smbd/reply.c 		if (file_find_subpath(fsp)) {
fsp              2261 source3/smbd/reply.c 	if (fsp->access_mask & (DELETE_ACCESS|FILE_WRITE_ATTRIBUTES)) {
fsp              2279 source3/smbd/reply.c 	files_struct *fsp;
fsp              2391 source3/smbd/reply.c 		 &fsp,			/* result */
fsp              2402 source3/smbd/reply.c 	if (!set_delete_on_close(fsp, True, &conn->server_info->utok)) {
fsp              2403 source3/smbd/reply.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              2407 source3/smbd/reply.c 	return close_file(req, fsp, NORMAL_CLOSE);
fsp              2662 source3/smbd/reply.c static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos,
fsp              2688 source3/smbd/reply.c 		ret = read_file(fsp,buf,startpos,cur_read);
fsp              2717 source3/smbd/reply.c static void sendfile_short_send(files_struct *fsp,
fsp              2726 source3/smbd/reply.c 			fsp->fsp_name, strerror(errno) ));
fsp              2740 source3/smbd/reply.c 			"with zeros !\n", fsp->fsp_name));
fsp              2790 source3/smbd/reply.c 			       files_struct *fsp,
fsp              2806 source3/smbd/reply.c 	if ( !req_is_in_chain(req) && (nread > 0) && (fsp->base_fsp == NULL) &&
fsp              2807 source3/smbd/reply.c 	    (fsp->wcp == NULL) && lp_use_sendfile(SNUM(conn)) ) {
fsp              2815 source3/smbd/reply.c 		if ((sendfile_read = SMB_VFS_SENDFILE(smbd_server_fd(), fsp,
fsp              2833 source3/smbd/reply.c 				if (fake_sendfile(fsp, startpos, nread) == -1) {
fsp              2835 source3/smbd/reply.c 						fsp->fsp_name, strerror(errno) ));
fsp              2842 source3/smbd/reply.c 				fsp->fsp_name, strerror(errno) ));
fsp              2854 source3/smbd/reply.c 				  "%s\n", fsp->fsp_name));
fsp              2860 source3/smbd/reply.c 			sendfile_short_send(fsp, sendfile_read, 4, nread);
fsp              2877 source3/smbd/reply.c 		ret = read_file(fsp,outbuf+4,startpos,nread);
fsp              2904 source3/smbd/reply.c 	files_struct *fsp;
fsp              2928 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              2936 source3/smbd/reply.c 	if (!fsp || !conn || conn != fsp->conn ||
fsp              2937 source3/smbd/reply.c 			req->vuid != fsp->vuid ||
fsp              2938 source3/smbd/reply.c 			fsp->is_directory || fsp->fh->fd == -1) {
fsp              2951 source3/smbd/reply.c 	if (!(fsp->can_read ||
fsp              2953 source3/smbd/reply.c 				(fsp->access_mask & FILE_EXECUTE)))) {
fsp              2961 source3/smbd/reply.c 	flush_write_cache(fsp, READRAW_FLUSH);
fsp              3006 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3010 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3016 source3/smbd/reply.c 	if (SMB_VFS_FSTAT(fsp, &st) == 0) {
fsp              3033 source3/smbd/reply.c 		fsp->fnum, (double)startpos,
fsp              3038 source3/smbd/reply.c 	send_file_readbraw(conn, req, fsp, startpos, nread, mincount);
fsp              3042 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3063 source3/smbd/reply.c 	files_struct *fsp;
fsp              3075 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              3077 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3082 source3/smbd/reply.c 	if (!CHECK_READ(fsp,req)) {
fsp              3106 source3/smbd/reply.c 			fsp,
fsp              3134 source3/smbd/reply.c 	nread = read_file(fsp,data,startpos,numtoread);
fsp              3151 source3/smbd/reply.c 		 fsp->fnum, (int)numtoread, (int)nread));
fsp              3172 source3/smbd/reply.c 	files_struct *fsp;
fsp              3183 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              3185 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3190 source3/smbd/reply.c 	if (!CHECK_READ(fsp,req)) {
fsp              3215 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3219 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3226 source3/smbd/reply.c 		nread = read_file(fsp,data,startpos,numtoread);
fsp              3241 source3/smbd/reply.c 		fsp->fnum, (int)numtoread, (int)nread ) );
fsp              3244 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3285 source3/smbd/reply.c 			    files_struct *fsp, SMB_OFF_T startpos,
fsp              3292 source3/smbd/reply.c 	if(SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp              3297 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3301 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3323 source3/smbd/reply.c 	    !is_encrypted_packet(req->inbuf) && (fsp->base_fsp == NULL) &&
fsp              3324 source3/smbd/reply.c 	    lp_use_sendfile(SNUM(conn)) && (fsp->wcp == NULL) ) {
fsp              3339 source3/smbd/reply.c 		if ((nread = SMB_VFS_SENDFILE(smbd_server_fd(), fsp, &header, startpos, smb_maxcnt)) == -1) {
fsp              3356 source3/smbd/reply.c 				nread = fake_sendfile(fsp, startpos,
fsp              3360 source3/smbd/reply.c 						fsp->fsp_name, strerror(errno) ));
fsp              3364 source3/smbd/reply.c 					fsp->fnum, (int)smb_maxcnt, (int)nread ) );
fsp              3370 source3/smbd/reply.c 				fsp->fsp_name, strerror(errno) ));
fsp              3382 source3/smbd/reply.c 				  fsp->fsp_name));
fsp              3387 source3/smbd/reply.c 			fsp->fnum, (int)smb_maxcnt, (int)nread ) );
fsp              3391 source3/smbd/reply.c 			sendfile_short_send(fsp, nread, sizeof(headerbuf), smb_maxcnt);
fsp              3413 source3/smbd/reply.c 				fsp->fsp_name, strerror(errno) ));
fsp              3416 source3/smbd/reply.c 		nread = fake_sendfile(fsp, startpos, smb_maxcnt);
fsp              3419 source3/smbd/reply.c 				fsp->fsp_name, strerror(errno) ));
fsp              3429 source3/smbd/reply.c 	nread = read_file(fsp, smb_buf(req->outbuf), startpos, smb_maxcnt);
fsp              3431 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3441 source3/smbd/reply.c 		    fsp->fnum, (int)smb_maxcnt, (int)nread ) );
fsp              3447 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3459 source3/smbd/reply.c 	files_struct *fsp;
fsp              3474 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+2, 0));
fsp              3485 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3490 source3/smbd/reply.c 	if (!CHECK_READ(fsp,req)) {
fsp              3550 source3/smbd/reply.c 	    schedule_aio_read_and_X(conn, req, fsp, startpos, smb_maxcnt)) {
fsp              3554 source3/smbd/reply.c 	send_file_readX(conn, req, fsp,	startpos, smb_maxcnt);
fsp              3590 source3/smbd/reply.c 	files_struct *fsp;
fsp              3616 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              3617 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3623 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              3653 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3657 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3665 source3/smbd/reply.c 		nwritten = write_file(req,fsp,data,startpos,numtowrite);
fsp              3670 source3/smbd/reply.c 		fsp->fnum, (double)startpos, (int)numtowrite,
fsp              3739 source3/smbd/reply.c 		nwritten = write_file(req,fsp,buf+4,startpos+nwritten,numtowrite);
fsp              3760 source3/smbd/reply.c 	status = sync_file(conn, fsp, write_through);
fsp              3763 source3/smbd/reply.c 			fsp->fsp_name, nt_errstr(status) ));
fsp              3771 source3/smbd/reply.c 		fsp->fnum, (double)startpos, (int)numtowrite,
fsp              3774 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3798 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3819 source3/smbd/reply.c 	files_struct *fsp;
fsp              3830 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              3832 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3837 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              3848 source3/smbd/reply.c 		init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3852 source3/smbd/reply.c 		if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3865 source3/smbd/reply.c 		nwritten = write_file(req,fsp,data,startpos,numtowrite);
fsp              3868 source3/smbd/reply.c 	status = sync_file(conn, fsp, False /* write through */);
fsp              3871 source3/smbd/reply.c 			fsp->fsp_name, nt_errstr(status) ));
fsp              3883 source3/smbd/reply.c 				fsp,
fsp              3900 source3/smbd/reply.c 		 fsp->fnum, (int)numtowrite, (int)nwritten));
fsp              3904 source3/smbd/reply.c 		SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              3925 source3/smbd/reply.c 	files_struct *fsp;
fsp              3944 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              3946 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              3951 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              3961 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              3965 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              3981 source3/smbd/reply.c 		nwritten = vfs_allocate_file_space(fsp, (SMB_OFF_T)startpos);
fsp              3986 source3/smbd/reply.c 		nwritten = vfs_set_filelen(fsp, (SMB_OFF_T)startpos);
fsp              3991 source3/smbd/reply.c 		trigger_write_time_update_immediate(fsp);
fsp              3993 source3/smbd/reply.c 		nwritten = write_file(req,fsp,data,startpos,numtowrite);
fsp              3996 source3/smbd/reply.c 	status = sync_file(conn, fsp, False);
fsp              3999 source3/smbd/reply.c 			fsp->fsp_name, nt_errstr(status) ));
fsp              4018 source3/smbd/reply.c 	DEBUG(3,("write fnum=%d num=%d wrote=%d\n", fsp->fnum, (int)numtowrite, (int)nwritten));
fsp              4021 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              4119 source3/smbd/reply.c 	files_struct *fsp;
fsp              4181 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+2, 0));
fsp              4185 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4190 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              4223 source3/smbd/reply.c 	init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              4227 source3/smbd/reply.c 	if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              4243 source3/smbd/reply.c 		    schedule_aio_write_and_X(conn, req, fsp, data, startpos,
fsp              4248 source3/smbd/reply.c 		nwritten = write_file(req,fsp,data,startpos,numtowrite);
fsp              4266 source3/smbd/reply.c 		fsp->fnum, (int)numtowrite, (int)nwritten));
fsp              4268 source3/smbd/reply.c 	status = sync_file(conn, fsp, write_through);
fsp              4271 source3/smbd/reply.c 			fsp->fsp_name, nt_errstr(status) ));
fsp              4276 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              4283 source3/smbd/reply.c 	SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              4299 source3/smbd/reply.c 	files_struct *fsp;
fsp              4309 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4311 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4315 source3/smbd/reply.c 	flush_write_cache(fsp, SEEK_FLUSH);
fsp              4328 source3/smbd/reply.c 			res = fsp->fh->pos + startpos;
fsp              4340 source3/smbd/reply.c 		if((res = SMB_VFS_LSEEK(fsp,startpos,umode)) == -1) {
fsp              4345 source3/smbd/reply.c 				if(SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp              4354 source3/smbd/reply.c 					res = SMB_VFS_LSEEK(fsp,0,SEEK_SET);
fsp              4365 source3/smbd/reply.c 	fsp->fh->pos = res;
fsp              4371 source3/smbd/reply.c 		fsp->fnum, (double)startpos, (double)res, mode));
fsp              4385 source3/smbd/reply.c 	files_struct *fsp;
fsp              4395 source3/smbd/reply.c 	fsp = file_fsp(req, fnum);
fsp              4397 source3/smbd/reply.c 	if ((fnum != 0xFFFF) && !check_fsp(conn, req, fsp)) {
fsp              4401 source3/smbd/reply.c 	if (!fsp) {
fsp              4404 source3/smbd/reply.c 		NTSTATUS status = sync_file(conn, fsp, True);
fsp              4407 source3/smbd/reply.c 				fsp->fsp_name, nt_errstr(status) ));
fsp              4448 source3/smbd/reply.c 	files_struct *fsp = NULL;
fsp              4457 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4463 source3/smbd/reply.c 	if(!fsp || (fsp->conn != conn) || (fsp->vuid != req->vuid)) {
fsp              4469 source3/smbd/reply.c 	if(fsp->is_directory) {
fsp              4473 source3/smbd/reply.c 		DEBUG(3,("close directory fnum=%d\n", fsp->fnum));
fsp              4474 source3/smbd/reply.c 		status = close_file(req, fsp, NORMAL_CLOSE);
fsp              4482 source3/smbd/reply.c 			 fsp->fh->fd, fsp->fnum,
fsp              4490 source3/smbd/reply.c 		set_close_write_time(fsp, convert_time_t_to_timespec(t));
fsp              4498 source3/smbd/reply.c 		status = close_file(req, fsp, NORMAL_CLOSE);
fsp              4525 source3/smbd/reply.c 	files_struct *fsp;
fsp              4536 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4538 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4542 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              4554 source3/smbd/reply.c 		init_strict_lock_struct(fsp, (uint32)req->smbpid,
fsp              4558 source3/smbd/reply.c 		if (!SMB_VFS_STRICT_LOCK(conn, fsp, &lock)) {
fsp              4565 source3/smbd/reply.c 	nwritten = write_file(req,fsp,data,startpos,numtowrite);
fsp              4567 source3/smbd/reply.c 	set_close_write_time(fsp, mtime);
fsp              4576 source3/smbd/reply.c 			fsp->fsp_name ));
fsp              4577 source3/smbd/reply.c 		close_status = close_file(req, fsp, NORMAL_CLOSE);
fsp              4581 source3/smbd/reply.c 		 fsp->fnum, (int)numtowrite, (int)nwritten,
fsp              4600 source3/smbd/reply.c 		SMB_VFS_STRICT_UNLOCK(conn, fsp, &lock);
fsp              4619 source3/smbd/reply.c 	files_struct *fsp;
fsp              4630 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4632 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4641 source3/smbd/reply.c 		 fsp->fh->fd, fsp->fnum, (double)offset, (double)count));
fsp              4644 source3/smbd/reply.c 			fsp,
fsp              4678 source3/smbd/reply.c 	files_struct *fsp;
fsp              4688 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4690 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4699 source3/smbd/reply.c 			fsp,
fsp              4712 source3/smbd/reply.c 		    fsp->fh->fd, fsp->fnum, (double)offset, (double)count ) );
fsp              4822 source3/smbd/reply.c 	files_struct *fsp;
fsp              4840 source3/smbd/reply.c 	status = file_new(req, conn, &fsp);
fsp              4848 source3/smbd/reply.c 	status = print_fsp_open(req, conn, NULL, req->vuid, fsp, &sbuf);
fsp              4857 source3/smbd/reply.c 	SSVAL(req->outbuf,smb_vwv0,fsp->fnum);
fsp              4860 source3/smbd/reply.c 		 fsp->fh->fd, fsp->fnum));
fsp              4873 source3/smbd/reply.c 	files_struct *fsp;
fsp              4884 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              4886 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              4898 source3/smbd/reply.c 		 fsp->fh->fd,fsp->fnum));
fsp              4900 source3/smbd/reply.c 	status = close_file(req, fsp, NORMAL_CLOSE);
fsp              5016 source3/smbd/reply.c 	files_struct *fsp;
fsp              5026 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              5028 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              5039 source3/smbd/reply.c 	if (!CHECK_WRITE(fsp)) {
fsp              5055 source3/smbd/reply.c 	if (write_file(req,fsp,data,-1,numtowrite) != numtowrite) {
fsp              5061 source3/smbd/reply.c 	DEBUG( 3, ( "printwrite fnum=%d num=%d\n", fsp->fnum, numtowrite ) );
fsp              5549 source3/smbd/reply.c 	files_struct *fsp;
fsp              5552 source3/smbd/reply.c 	for(fsp = file_find_di_first(lck->id); fsp;
fsp              5553 source3/smbd/reply.c 	    fsp = file_find_di_next(fsp)) {
fsp              5558 source3/smbd/reply.c 		if (!strequal(fsp->conn->connectpath, conn->connectpath)) {
fsp              5562 source3/smbd/reply.c 			  fsp->fnum, file_id_string_tos(&fsp->file_id),
fsp              5563 source3/smbd/reply.c 			fsp->fsp_name, newname ));
fsp              5564 source3/smbd/reply.c 		string_set(&fsp->fsp_name, newname);
fsp              5654 source3/smbd/reply.c 			files_struct *fsp,
fsp              5692 source3/smbd/reply.c 			strequal(newname, fsp->fsp_name)) {
fsp              5727 source3/smbd/reply.c 	if (strcsequal(fsp->fsp_name, newname)) {
fsp              5733 source3/smbd/reply.c 	old_is_stream = is_ntfs_stream_name(fsp->fsp_name);
fsp              5752 source3/smbd/reply.c 			fsp->fsp_name,newname));
fsp              5767 source3/smbd/reply.c 	if (fsp->fh->fd != -1) {
fsp              5768 source3/smbd/reply.c 		if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp              5773 source3/smbd/reply.c 		if (fsp->posix_open) {
fsp              5774 source3/smbd/reply.c 			ret = SMB_VFS_LSTAT(conn,fsp->fsp_name,&sbuf);
fsp              5776 source3/smbd/reply.c 			ret = SMB_VFS_STAT(conn,fsp->fsp_name,&sbuf);
fsp              5783 source3/smbd/reply.c 	status = can_rename(conn, fsp, attrs, &sbuf);
fsp              5787 source3/smbd/reply.c 			nt_errstr(status), fsp->fsp_name,newname));
fsp              5793 source3/smbd/reply.c 	if (rename_path_prefix_equal(fsp->fsp_name, newname)) {
fsp              5797 source3/smbd/reply.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp              5807 source3/smbd/reply.c 	if(SMB_VFS_RENAME(conn,fsp->fsp_name, newname) == 0) {
fsp              5808 source3/smbd/reply.c 		uint32 create_options = fsp->fh->private_options;
fsp              5811 source3/smbd/reply.c 			fsp->fsp_name,newname));
fsp              5813 source3/smbd/reply.c 		notify_rename(conn, fsp->is_directory, fsp->fsp_name, newname);
fsp              5827 source3/smbd/reply.c 			status = can_set_delete_on_close(fsp, True, 0);
fsp              5832 source3/smbd/reply.c 				fsp->initial_delete_on_close = True;
fsp              5848 source3/smbd/reply.c 		nt_errstr(status), fsp->fsp_name,newname));
fsp              5947 source3/smbd/reply.c 		files_struct *fsp;
fsp              6019 source3/smbd/reply.c 			&fsp,				/* result */
fsp              6029 source3/smbd/reply.c 		status = rename_internals_fsp(conn, fsp, newname,
fsp              6033 source3/smbd/reply.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              6066 source3/smbd/reply.c 		files_struct *fsp = NULL;
fsp              6141 source3/smbd/reply.c 			&fsp,				/* result */
fsp              6152 source3/smbd/reply.c 		status = rename_internals_fsp(conn, fsp, destname, dname,
fsp              6155 source3/smbd/reply.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              6902 source3/smbd/reply.c 	files_struct *fsp;
fsp              6924 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+2, 0));
fsp              6932 source3/smbd/reply.c 	if (!check_fsp(conn, req, fsp)) {
fsp              6958 source3/smbd/reply.c 			 fsp->fnum ));
fsp              6965 source3/smbd/reply.c 		if (fsp->oplock_type == 0) {
fsp              6976 source3/smbd/reply.c 				 fsp->fnum, fsp->oplock_type, fsp->fsp_name));
fsp              6990 source3/smbd/reply.c 		if ((fsp->sent_oplock_break == BREAK_TO_NONE_SENT) ||
fsp              6992 source3/smbd/reply.c 			result = remove_oplock(fsp);
fsp              6994 source3/smbd/reply.c 			result = downgrade_oplock(fsp);
fsp              6999 source3/smbd/reply.c 				  "oplock on file %s\n", fsp->fsp_name));
fsp              7004 source3/smbd/reply.c 		reply_to_oplock_break_requests(fsp);
fsp              7045 source3/smbd/reply.c 			  (unsigned int)lock_pid, fsp->fsp_name ));
fsp              7048 source3/smbd/reply.c 				fsp,
fsp              7095 source3/smbd/reply.c 			  fsp->fsp_name, (int)lock_timeout ));
fsp              7106 source3/smbd/reply.c 				blr = blocking_lock_cancel(fsp,
fsp              7124 source3/smbd/reply.c 			status = do_lock_cancel(fsp,
fsp              7137 source3/smbd/reply.c 					fsp,
fsp              7176 source3/smbd/reply.c 							fsp,
fsp              7229 source3/smbd/reply.c 				fsp,
fsp              7243 source3/smbd/reply.c 		  fsp->fnum, (unsigned int)locktype, num_locks, num_ulocks));
fsp              7288 source3/smbd/reply.c 	files_struct *fsp;
fsp              7301 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              7303 source3/smbd/reply.c 	if(!fsp || (fsp->conn != conn)) {
fsp              7329 source3/smbd/reply.c 	if (fsp->fh->fd != -1) {
fsp              7330 source3/smbd/reply.c 		if (SMB_VFS_FSTAT(fsp, &sbuf) == -1) {
fsp              7339 source3/smbd/reply.c 		if (fsp->posix_open) {
fsp              7340 source3/smbd/reply.c 			ret = SMB_VFS_LSTAT(conn, fsp->fsp_name, &sbuf);
fsp              7342 source3/smbd/reply.c 			ret = SMB_VFS_STAT(conn, fsp->fsp_name, &sbuf);
fsp              7352 source3/smbd/reply.c 	status = smb_set_file_time(conn, fsp, fsp->fsp_name,
fsp              7362 source3/smbd/reply.c 		fsp->fnum,
fsp              7412 source3/smbd/reply.c 	files_struct *fsp;
fsp              7423 source3/smbd/reply.c 	fsp = file_fsp(req, SVAL(req->vwv+0, 0));
fsp              7425 source3/smbd/reply.c 	if(!fsp || (fsp->conn != conn)) {
fsp              7432 source3/smbd/reply.c 	if(fsp_stat(fsp, &sbuf)) {
fsp              7438 source3/smbd/reply.c 	mode = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp              7459 source3/smbd/reply.c 		uint32 allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn,fsp, &sbuf);
fsp              7465 source3/smbd/reply.c 	DEBUG( 3, ( "reply_getattrE fnum=%d\n", fsp->fnum));
fsp                36 source3/smbd/trans2.c 				files_struct *fsp,
fsp                41 source3/smbd/trans2.c 				files_struct *fsp,
fsp                95 source3/smbd/trans2.c 		      files_struct *fsp, const char *fname,
fsp               110 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fsp               111 source3/smbd/trans2.c 		sizeret = SMB_VFS_FGETXATTR(fsp, ea_name, val, attr_size);
fsp               144 source3/smbd/trans2.c 				files_struct *fsp, const char *fname,
fsp               182 source3/smbd/trans2.c 		if (fsp && fsp->fh->fd != -1) {
fsp               183 source3/smbd/trans2.c 			sizeret = SMB_VFS_FLISTXATTR(fsp, ea_namelist,
fsp               254 source3/smbd/trans2.c static struct ea_list *get_ea_list_from_file(TALLOC_CTX *mem_ctx, connection_struct *conn, files_struct *fsp,
fsp               269 source3/smbd/trans2.c 	status = get_ea_names_from_file(talloc_tos(), conn, fsp, fname,
fsp               289 source3/smbd/trans2.c 		if (!NT_STATUS_IS_OK(get_ea_value(mem_ctx, conn, fsp,
fsp               369 source3/smbd/trans2.c static unsigned int estimate_ea_size(connection_struct *conn, files_struct *fsp, const char *fname)
fsp               378 source3/smbd/trans2.c 	(void)get_ea_list_from_file(mem_ctx, conn, fsp, fname, &total_ea_len);
fsp               386 source3/smbd/trans2.c static void canonicalize_ea_name(connection_struct *conn, files_struct *fsp, const char *fname, fstring unix_ea_name)
fsp               390 source3/smbd/trans2.c 	struct ea_list *ea_list = get_ea_list_from_file(mem_ctx, conn, fsp, fname, &total_ea_len);
fsp               406 source3/smbd/trans2.c NTSTATUS set_ea(connection_struct *conn, files_struct *fsp, const char *fname, struct ea_list *ea_list)
fsp               419 source3/smbd/trans2.c 		canonicalize_ea_name(conn, fsp, fname, unix_ea_name);
fsp               430 source3/smbd/trans2.c 			if (fsp && (fsp->fh->fd != -1)) {
fsp               432 source3/smbd/trans2.c 					unix_ea_name, fsp->fsp_name));
fsp               433 source3/smbd/trans2.c 				ret = SMB_VFS_FREMOVEXATTR(fsp, unix_ea_name);
fsp               448 source3/smbd/trans2.c 			if (fsp && (fsp->fh->fd != -1)) {
fsp               450 source3/smbd/trans2.c 					unix_ea_name, fsp->fsp_name));
fsp               451 source3/smbd/trans2.c 				ret = SMB_VFS_FSETXATTR(fsp, unix_ea_name,
fsp               887 source3/smbd/trans2.c 	files_struct *fsp;
fsp              1001 source3/smbd/trans2.c 		&fsp,					/* result */
fsp              1015 source3/smbd/trans2.c 	fattr = dos_mode(conn,fsp->fsp_name,&sbuf);
fsp              1019 source3/smbd/trans2.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              1032 source3/smbd/trans2.c 	SSVAL(params,0,fsp->fnum);
fsp              1052 source3/smbd/trans2.c 		uint32 ea_size = estimate_ea_size(conn, fsp, fsp->fsp_name);
fsp              2841 source3/smbd/trans2.c 			files_struct fsp;
fsp              2844 source3/smbd/trans2.c 			ZERO_STRUCT(fsp);
fsp              2847 source3/smbd/trans2.c 			fsp.conn = conn;
fsp              2848 source3/smbd/trans2.c 			fsp.fnum = -1;
fsp              2860 source3/smbd/trans2.c 			if (vfs_get_ntquota(&fsp, SMB_USER_FS_QUOTA_TYPE, NULL, &quotas)!=0) {
fsp              3292 source3/smbd/trans2.c 				files_struct *fsp = NULL;
fsp              3311 source3/smbd/trans2.c 				fsp = file_fsp(req, SVAL(params,0));
fsp              3314 source3/smbd/trans2.c 							      fsp)) {
fsp              3370 source3/smbd/trans2.c 				if (vfs_set_ntquota(fsp, SMB_USER_FS_QUOTA_TYPE, NULL, &quotas)!=0) {
fsp              3520 source3/smbd/trans2.c 				files_struct *fsp,
fsp              3529 source3/smbd/trans2.c 	SOFF_T(pdata,0,SMB_VFS_GET_ALLOC_SIZE(conn,fsp,psbuf)); /* Number of bytes used on disk - 64 Bit */
fsp              3665 source3/smbd/trans2.c 				files_struct *fsp,
fsp              3671 source3/smbd/trans2.c 	pdata = store_file_unix_basic(conn, pdata, fsp, psbuf);
fsp              3758 source3/smbd/trans2.c 	files_struct *fsp;
fsp              3770 source3/smbd/trans2.c 	fsp = file_fsp(req, SVAL(params,0));
fsp              3771 source3/smbd/trans2.c 	if (!fsp_is_np(fsp)) {
fsp              3847 source3/smbd/trans2.c 	files_struct *fsp = NULL;
fsp              3876 source3/smbd/trans2.c 		fsp = file_fsp(req, SVAL(params,0));
fsp              3887 source3/smbd/trans2.c 		if (!check_fsp_open(conn, req, fsp)) {
fsp              3891 source3/smbd/trans2.c 		fname = talloc_strdup(talloc_tos(),fsp->fsp_name);
fsp              3897 source3/smbd/trans2.c 		if(fsp->fake_file_handle) {
fsp              3904 source3/smbd/trans2.c 		} else if(fsp && (fsp->is_directory || fsp->fh->fd == -1)) {
fsp              3930 source3/smbd/trans2.c 			if (!check_fsp(conn, req, fsp)) {
fsp              3934 source3/smbd/trans2.c 			if (SMB_VFS_FSTAT(fsp, &sbuf) != 0) {
fsp              3935 source3/smbd/trans2.c 				DEBUG(3,("fstat of fnum %d failed (%s)\n", fsp->fnum, strerror(errno)));
fsp              3939 source3/smbd/trans2.c 			pos = fsp->fh->position_information;
fsp              4069 source3/smbd/trans2.c 		fname,fsp ? fsp->fnum : -1, info_level,tran_call,total_data));
fsp              4139 source3/smbd/trans2.c 			if (fsp == NULL || fsp->fh->fd == -1) {
fsp              4183 source3/smbd/trans2.c 	allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf);
fsp              4185 source3/smbd/trans2.c 	if (!fsp) {
fsp              4242 source3/smbd/trans2.c 			unsigned int ea_size = estimate_ea_size(conn, fsp, fname);
fsp              4273 source3/smbd/trans2.c 			ea_file_list = get_ea_list_from_file(ctx, conn, fsp, fname, &total_ea_len);
fsp              4293 source3/smbd/trans2.c 			ea_list = get_ea_list_from_file(ctx, conn, fsp, fname, &total_ea_len);
fsp              4345 source3/smbd/trans2.c 			unsigned int ea_size = estimate_ea_size(conn, fsp, fname);
fsp              4403 source3/smbd/trans2.c 			unsigned int ea_size = estimate_ea_size(conn, fsp, fname);
fsp              4445 source3/smbd/trans2.c 			if (fsp) {
fsp              4446 source3/smbd/trans2.c 				SIVAL(pdata,0,fsp->access_mask);
fsp              4507 source3/smbd/trans2.c 				conn, fsp, fname, talloc_tos(),
fsp              4567 source3/smbd/trans2.c 			pdata = store_file_unix_basic(conn, pdata, fsp, &sbuf);
fsp              4583 source3/smbd/trans2.c 			pdata = store_file_unix_basic_info2(conn, pdata, fsp, &sbuf);
fsp              4643 source3/smbd/trans2.c 				if (fsp && !fsp->is_directory && (fsp->fh->fd != -1)) {
fsp              4644 source3/smbd/trans2.c 					file_acl = SMB_VFS_SYS_ACL_GET_FD(fsp);
fsp              4659 source3/smbd/trans2.c 					if (fsp && fsp->is_directory) {
fsp              4660 source3/smbd/trans2.c 						def_acl = SMB_VFS_SYS_ACL_GET_FILE(conn, fsp->fsp_name, SMB_ACL_TYPE_DEFAULT);
fsp              4767 source3/smbd/trans2.c 			status = query_lock(fsp,
fsp              4894 source3/smbd/trans2.c 			   files_struct *fsp,
fsp              4959 source3/smbd/trans2.c 		if (fsp != NULL) {
fsp              4960 source3/smbd/trans2.c 			if (fsp->base_fsp) {
fsp              4961 source3/smbd/trans2.c 				set_sticky_write_time_fsp(fsp->base_fsp,
fsp              4964 source3/smbd/trans2.c 				set_sticky_write_time_fsp(fsp, ft->mtime);
fsp              4982 source3/smbd/trans2.c 	if (fsp && fsp->base_fsp) {
fsp              4983 source3/smbd/trans2.c 		fname = fsp->base_fsp->fsp_name;
fsp              5004 source3/smbd/trans2.c 				files_struct *fsp,
fsp              5013 source3/smbd/trans2.c 	if (fsp) {
fsp              5014 source3/smbd/trans2.c 		if (fsp->base_fsp) {
fsp              5015 source3/smbd/trans2.c 			fname = fsp->base_fsp->fsp_name;
fsp              5017 source3/smbd/trans2.c 			fname = fsp->fsp_name;
fsp              5052 source3/smbd/trans2.c 				files_struct *fsp,
fsp              5073 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fsp              5075 source3/smbd/trans2.c 		if (vfs_set_filelen(fsp, size) == -1) {
fsp              5078 source3/smbd/trans2.c 		trigger_write_time_update_immediate(fsp);
fsp              5125 source3/smbd/trans2.c 				files_struct *fsp,
fsp              5156 source3/smbd/trans2.c 	status = set_ea(conn, fsp, fname, ea_list);
fsp              5168 source3/smbd/trans2.c 				files_struct *fsp,
fsp              5180 source3/smbd/trans2.c 	if (fsp == NULL) {
fsp              5189 source3/smbd/trans2.c 		fsp->fsp_name,
fsp              5193 source3/smbd/trans2.c 	status = can_set_delete_on_close(fsp, delete_on_close, dosmode);
fsp              5200 source3/smbd/trans2.c 	if (!set_delete_on_close(fsp, delete_on_close,
fsp              5214 source3/smbd/trans2.c 				files_struct *fsp)
fsp              5222 source3/smbd/trans2.c 	if (fsp == NULL) {
fsp              5238 source3/smbd/trans2.c 		fsp->fsp_name, (double)position_information ));
fsp              5239 source3/smbd/trans2.c 	fsp->fh->position_information = position_information;
fsp              5352 source3/smbd/trans2.c 					    files_struct *fsp,
fsp              5405 source3/smbd/trans2.c 	if (fsp && fsp->base_fsp) {
fsp              5411 source3/smbd/trans2.c 					   fsp->base_fsp->fsp_name,
fsp              5459 source3/smbd/trans2.c 	if (fsp) {
fsp              5461 source3/smbd/trans2.c 			fsp->fnum, fsp->fsp_name, base_name ));
fsp              5462 source3/smbd/trans2.c 		status = rename_internals_fsp(conn, fsp, base_name,
fsp              5484 source3/smbd/trans2.c 				files_struct *fsp,
fsp              5521 source3/smbd/trans2.c 		fname ? fname : fsp->fsp_name,
fsp              5525 source3/smbd/trans2.c 	if (valid_file_acls && !set_unix_posix_acl(conn, fsp, fname, num_file_acls,
fsp              5547 source3/smbd/trans2.c 				files_struct *fsp)
fsp              5557 source3/smbd/trans2.c 	if (fsp == NULL || fsp->fh->fd == -1) {
fsp              5571 source3/smbd/trans2.c 			if (!fsp->can_write) {
fsp              5608 source3/smbd/trans2.c 		fsp->fsp_name,
fsp              5616 source3/smbd/trans2.c 				fsp,
fsp              5625 source3/smbd/trans2.c 							fsp,
fsp              5644 source3/smbd/trans2.c 						fsp,
fsp              5670 source3/smbd/trans2.c 					files_struct *fsp,
fsp              5691 source3/smbd/trans2.c 		fname ? fname : fsp->fsp_name ));
fsp              5694 source3/smbd/trans2.c 				fsp,
fsp              5708 source3/smbd/trans2.c 					files_struct *fsp,
fsp              5728 source3/smbd/trans2.c 	status = smb_set_file_dosmode(conn, fsp, fname, psbuf, dosmode);
fsp              5761 source3/smbd/trans2.c 		fname ? fname : fsp->fsp_name ));
fsp              5764 source3/smbd/trans2.c 				fsp,
fsp              5779 source3/smbd/trans2.c 					files_struct *fsp,
fsp              5815 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fsp              5819 source3/smbd/trans2.c 			if (vfs_allocate_file_space(fsp, allocation_size) == -1) {
fsp              5828 source3/smbd/trans2.c 		trigger_write_time_update_immediate(fsp);
fsp              5887 source3/smbd/trans2.c 					files_struct *fsp,
fsp              5910 source3/smbd/trans2.c 				fsp,
fsp              6011 source3/smbd/trans2.c 					files_struct *fsp,
fsp              6166 source3/smbd/trans2.c 				fsp,
fsp              6197 source3/smbd/trans2.c 				fsp,
fsp              6217 source3/smbd/trans2.c 					files_struct *fsp,
fsp              6233 source3/smbd/trans2.c 				fsp, fname, psbuf);
fsp              6253 source3/smbd/trans2.c 		if (fsp && fsp->fh->fd != -1) {
fsp              6287 source3/smbd/trans2.c 	files_struct *fsp = NULL;
fsp              6324 source3/smbd/trans2.c 		&fsp,					/* result */
fsp              6329 source3/smbd/trans2.c                 close_file(req, fsp, NORMAL_CLOSE);
fsp              6358 source3/smbd/trans2.c 			store_file_unix_basic(conn, pdata + 12, fsp, psbuf);
fsp              6363 source3/smbd/trans2.c 			store_file_unix_basic_info2(conn, pdata + 12, fsp, psbuf);
fsp              6397 source3/smbd/trans2.c 	files_struct *fsp = NULL;
fsp              6501 source3/smbd/trans2.c 		&fsp,					/* result */
fsp              6513 source3/smbd/trans2.c 	if(oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
fsp              6532 source3/smbd/trans2.c 		close_file(req, fsp, ERROR_CLOSE);
fsp              6544 source3/smbd/trans2.c 	} else if (fsp->oplock_type == LEVEL_II_OPLOCK) {
fsp              6550 source3/smbd/trans2.c 	SSVAL(pdata,2,fsp->fnum);
fsp              6557 source3/smbd/trans2.c 			store_file_unix_basic(conn, pdata + 12, fsp, psbuf);
fsp              6562 source3/smbd/trans2.c 			store_file_unix_basic_info2(conn, pdata + 12, fsp, psbuf);
fsp              6584 source3/smbd/trans2.c 	files_struct *fsp = NULL;
fsp              6631 source3/smbd/trans2.c 		&fsp,					/* result */
fsp              6644 source3/smbd/trans2.c 	lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL,
fsp              6648 source3/smbd/trans2.c 			"lock for file %s\n", fsp->fsp_name));
fsp              6649 source3/smbd/trans2.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              6665 source3/smbd/trans2.c 			close_file(req, fsp, NORMAL_CLOSE);
fsp              6677 source3/smbd/trans2.c 						fsp,
fsp              6682 source3/smbd/trans2.c 		close_file(req, fsp, NORMAL_CLOSE);
fsp              6687 source3/smbd/trans2.c 	return close_file(req, fsp, NORMAL_CLOSE);
fsp              6706 source3/smbd/trans2.c 	files_struct *fsp = NULL;
fsp              6724 source3/smbd/trans2.c 		fsp = file_fsp(req, SVAL(params,0));
fsp              6726 source3/smbd/trans2.c 	        if (!check_fsp_open(conn, req, fsp)) {
fsp              6731 source3/smbd/trans2.c 		fname = talloc_strdup(talloc_tos(),fsp->fsp_name);
fsp              6737 source3/smbd/trans2.c 		if(fsp->is_directory || fsp->fh->fd == -1) {
fsp              6757 source3/smbd/trans2.c 		} else if (fsp->print_file) {
fsp              6762 source3/smbd/trans2.c 				fsp->fh->private_options |= FILE_DELETE_ON_CLOSE;
fsp              6764 source3/smbd/trans2.c 				DEBUG(3,("call_trans2setfilepathinfo: Cancelling print job (%s)\n", fsp->fsp_name ));
fsp              6779 source3/smbd/trans2.c 		        if (!check_fsp(conn, req, fsp)) {
fsp              6783 source3/smbd/trans2.c 			if (SMB_VFS_FSTAT(fsp, &sbuf) != 0) {
fsp              6784 source3/smbd/trans2.c 				DEBUG(3,("call_trans2setfilepathinfo: fstat of fnum %d failed (%s)\n",fsp->fnum, strerror(errno)));
fsp              6863 source3/smbd/trans2.c 		tran_call,fname, fsp ? fsp->fnum : -1, info_level,total_data));
fsp              6882 source3/smbd/trans2.c 					fsp,
fsp              6893 source3/smbd/trans2.c 						fsp,
fsp              6904 source3/smbd/trans2.c 							fsp,
fsp              6916 source3/smbd/trans2.c 								fsp,
fsp              6928 source3/smbd/trans2.c 								fsp,
fsp              6949 source3/smbd/trans2.c 						fsp,
fsp              6960 source3/smbd/trans2.c 						fsp);
fsp              6987 source3/smbd/trans2.c 							fsp,
fsp              6998 source3/smbd/trans2.c 							fsp,
fsp              7033 source3/smbd/trans2.c 							     fsp, fname);
fsp              7043 source3/smbd/trans2.c 						fsp,
fsp              7057 source3/smbd/trans2.c 						    pdata, total_data, fsp);
fsp              7411 source3/smbd/trans2.c 	files_struct *fsp = file_fsp(req, SVAL(req->vwv+15, 0));
fsp              7415 source3/smbd/trans2.c 	if (!fsp) {
fsp              7432 source3/smbd/trans2.c 		SSVAL(pdata,0,fsp->rap_print_jobid);                     /* Job number */
fsp               224 source3/smbd/vfs.c 				   files_struct *fsp, size_t ext_size,
fsp               231 source3/smbd/vfs.c 	if ((ext_data = vfs_fetch_fsp_extension(handle, fsp))) {
fsp               242 source3/smbd/vfs.c 	ext->next = fsp->vfs_extension;
fsp               244 source3/smbd/vfs.c 	fsp->vfs_extension = ext;
fsp               248 source3/smbd/vfs.c void vfs_remove_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
fsp               253 source3/smbd/vfs.c 	for (curr = fsp->vfs_extension, prev = NULL;
fsp               260 source3/smbd/vfs.c 			    fsp->vfs_extension = curr->next;
fsp               271 source3/smbd/vfs.c void *vfs_memctx_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
fsp               275 source3/smbd/vfs.c 	for (head = fsp->vfs_extension; head; head = head->next) {
fsp               284 source3/smbd/vfs.c void *vfs_fetch_fsp_extension(vfs_handle_struct *handle, files_struct *fsp)
fsp               288 source3/smbd/vfs.c 	head = (struct vfs_fsp_data *)vfs_memctx_fsp_extension(handle, fsp);
fsp               391 source3/smbd/vfs.c ssize_t vfs_read_data(files_struct *fsp, char *buf, size_t byte_count)
fsp               397 source3/smbd/vfs.c 		ssize_t ret = SMB_VFS_READ(fsp, buf + total,
fsp               412 source3/smbd/vfs.c ssize_t vfs_pread_data(files_struct *fsp, char *buf,
fsp               419 source3/smbd/vfs.c 		ssize_t ret = SMB_VFS_PREAD(fsp, buf + total,
fsp               439 source3/smbd/vfs.c 			files_struct *fsp,
fsp               452 source3/smbd/vfs.c 					fsp,
fsp               458 source3/smbd/vfs.c 		ret = SMB_VFS_WRITE(fsp, buffer + total, N - total);
fsp               471 source3/smbd/vfs.c 			files_struct *fsp,
fsp               485 source3/smbd/vfs.c 					fsp,
fsp               491 source3/smbd/vfs.c 		ret = SMB_VFS_PWRITE(fsp, buffer + total, N - total,
fsp               509 source3/smbd/vfs.c int vfs_allocate_file_space(files_struct *fsp, uint64_t len)
fsp               513 source3/smbd/vfs.c 	connection_struct *conn = fsp->conn;
fsp               521 source3/smbd/vfs.c 	DEBUG(10,("vfs_allocate_file_space: file %s, len %.0f\n", fsp->fsp_name, (double)len ));
fsp               524 source3/smbd/vfs.c 		DEBUG(0,("vfs_allocate_file_space: %s negative len requested.\n", fsp->fsp_name ));
fsp               529 source3/smbd/vfs.c 	ret = SMB_VFS_FSTAT(fsp, &st);
fsp               540 source3/smbd/vfs.c 				fsp->fsp_name, (double)st.st_size ));
fsp               542 source3/smbd/vfs.c 		contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_ALLOC_SHRINK);
fsp               544 source3/smbd/vfs.c 		flush_write_cache(fsp, SIZECHANGE_FLUSH);
fsp               545 source3/smbd/vfs.c 		if ((ret = SMB_VFS_FTRUNCATE(fsp, (SMB_OFF_T)len)) != -1) {
fsp               546 source3/smbd/vfs.c 			set_filelen_write_cache(fsp, len);
fsp               549 source3/smbd/vfs.c 		contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_ALLOC_SHRINK);
fsp               556 source3/smbd/vfs.c 	contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_ALLOC_GROW);
fsp               557 source3/smbd/vfs.c 	contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_ALLOC_GROW);
fsp               559 source3/smbd/vfs.c 	if (!lp_strict_allocate(SNUM(fsp->conn)))
fsp               564 source3/smbd/vfs.c 	space_avail = get_dfree_info(conn,fsp->fsp_name,False,&bsize,&dfree,&dsize);
fsp               570 source3/smbd/vfs.c 			fsp->fsp_name, (double)st.st_size, (double)len, (double)space_avail ));
fsp               586 source3/smbd/vfs.c int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len)
fsp               590 source3/smbd/vfs.c 	contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_SET_FILE_LEN);
fsp               592 source3/smbd/vfs.c 	DEBUG(10,("vfs_set_filelen: ftruncate %s to len %.0f\n", fsp->fsp_name, (double)len));
fsp               593 source3/smbd/vfs.c 	flush_write_cache(fsp, SIZECHANGE_FLUSH);
fsp               594 source3/smbd/vfs.c 	if ((ret = SMB_VFS_FTRUNCATE(fsp, len)) != -1) {
fsp               595 source3/smbd/vfs.c 		set_filelen_write_cache(fsp, len);
fsp               596 source3/smbd/vfs.c 		notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED,
fsp               599 source3/smbd/vfs.c 			     fsp->fsp_name);
fsp               602 source3/smbd/vfs.c 	contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_SET_FILE_LEN);
fsp               616 source3/smbd/vfs.c int vfs_fill_sparse(files_struct *fsp, SMB_OFF_T len)
fsp               625 source3/smbd/vfs.c 	ret = SMB_VFS_FSTAT(fsp, &st);
fsp               635 source3/smbd/vfs.c 		fsp->fsp_name, (double)st.st_size, (double)len, (double)(len - st.st_size)));
fsp               637 source3/smbd/vfs.c 	contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_FILL_SPARSE);
fsp               639 source3/smbd/vfs.c 	flush_write_cache(fsp, SIZECHANGE_FLUSH);
fsp               657 source3/smbd/vfs.c 		pwrite_ret = SMB_VFS_PWRITE(fsp, sparse_buf, curr_write_size, offset + total);
fsp               660 source3/smbd/vfs.c 				fsp->fsp_name, strerror(errno) ));
fsp               672 source3/smbd/vfs.c 	set_filelen_write_cache(fsp, len);
fsp               676 source3/smbd/vfs.c 	contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_FILL_SPARSE);
fsp               686 source3/smbd/vfs.c 	struct files_struct *fsp = (struct files_struct *)file;
fsp               688 source3/smbd/vfs.c 	return SMB_VFS_READ(fsp, buf, len);
fsp               693 source3/smbd/vfs.c 	struct files_struct *fsp = (struct files_struct *)file;
fsp               695 source3/smbd/vfs.c 	return SMB_VFS_WRITE(fsp, buf, len);
fsp               234 source3/torture/cmd_vfs.c 	files_struct *fsp;
fsp               310 source3/torture/cmd_vfs.c 	fsp = SMB_MALLOC_P(struct files_struct);
fsp               311 source3/torture/cmd_vfs.c 	if (fsp == NULL) {
fsp               314 source3/torture/cmd_vfs.c 	fsp->fsp_name = SMB_STRDUP(argv[1]);
fsp               315 source3/torture/cmd_vfs.c 	if (fsp->fsp_name == NULL) {
fsp               316 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp);
fsp               319 source3/torture/cmd_vfs.c 	fsp->fh = SMB_MALLOC_P(struct fd_handle);
fsp               320 source3/torture/cmd_vfs.c 	if (fsp->fh == NULL) {
fsp               321 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp->fsp_name);
fsp               322 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp);
fsp               325 source3/torture/cmd_vfs.c 	fsp->conn = vfs->conn;
fsp               327 source3/torture/cmd_vfs.c 	fsp->fh->fd = SMB_VFS_OPEN(vfs->conn, argv[1], fsp, flags, mode);
fsp               328 source3/torture/cmd_vfs.c 	if (fsp->fh->fd == -1) {
fsp               330 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp->fh);
fsp               331 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp->fsp_name);
fsp               332 source3/torture/cmd_vfs.c 		SAFE_FREE(fsp);
fsp               336 source3/torture/cmd_vfs.c 	vfs->files[fsp->fh->fd] = fsp;
fsp               337 source3/torture/cmd_vfs.c 	printf("open: fd=%d\n", fsp->fh->fd);