bool delete_on_close : 1;
bool is_sparse : 1;
bool backup_intent : 1;
+ bool use_ofd_locks : 1;
} fsp_flags;
struct tevent_timer *update_write_time_event;
int current_lock_count; /* Count the number of outstanding locks and pending locks. */
uint64_t posix_flags;
- bool use_ofd_locks; /* Are we using open file description locks ? */
struct smb_filename *fsp_name;
uint32_t name_hash; /* Jenkins hash of full pathname. */
uint64_t mid; /* Mid of the operation that created us. */
if (!lp_locking(fsp->conn->params) ||
!lp_posix_locking(fsp->conn->params) ||
- fsp->use_ofd_locks)
+ fsp->fsp_flags.use_ofd_locks)
{
/*
* No locking or POSIX to worry about or we are using POSIX
START_PROFILE(syscall_fcntl_lock);
- if (fsp->use_ofd_locks) {
+ if (fsp->fsp_flags.use_ofd_locks) {
op = map_process_lock_to_ofd_lock(op);
}
START_PROFILE(syscall_fcntl_getlock);
- if (fsp->use_ofd_locks) {
+ if (fsp->fsp_flags.use_ofd_locks) {
op = map_process_lock_to_ofd_lock(op);
}
}
#if defined(HAVE_OFD_LOCKS)
- fsp->use_ofd_locks = true;
+ fsp->fsp_flags.use_ofd_locks = true;
if (lp_parm_bool(SNUM(conn),
"smbd",
"force process locks",
false)) {
- fsp->use_ofd_locks = false;
+ fsp->fsp_flags.use_ofd_locks = false;
}
#endif
fsp->fh->ref_count = 1;