for(i = 0; i < (int)num_locks; i++) {
struct smbd_lock_element *e = &locks[i];
- DEBUG(10,("smbd_do_locking: lock start=%.0f, len=%.0f for smblctx "
- "%llu, file %s timeout = %d\n",
+ DEBUG(10,("smbd_do_locking: lock type %s start=%.0f, len=%.0f"
+ " for smblctx %llu, file %s timeout = %d\n",
+ e->lock_flav == WINDOWS_LOCK ? "WINDOWS" : "POSIX",
(double)e->offset,
(double)e->count,
(unsigned long long)e->smblctx,
e->smblctx,
e->offset,
e->count,
- WINDOWS_LOCK,
+ e->lock_flav,
type,
NT_STATUS_FILE_LOCK_CONFLICT);
if (blr == NULL) {
e->smblctx,
e->count,
e->offset,
- WINDOWS_LOCK);
+ e->lock_flav);
} else {
bool blocking_lock = timeout ? true : false;
bool defer_lock = false;
e->count,
e->offset,
e->brltype,
- WINDOWS_LOCK,
+ e->lock_flav,
blocking_lock,
&status,
&block_smblctx);
i,
e->smblctx,
e->brltype,
- WINDOWS_LOCK,
+ e->lock_flav,
e->offset,
e->count,
block_smblctx)) {
e->smblctx,
e->count,
e->offset,
- WINDOWS_LOCK);
+ e->lock_flav);
}
return status;
}
e->smblctx,
e->count,
e->offset,
- WINDOWS_LOCK);
+ e->lock_flav);
DEBUG(10, ("%s: unlock returned %s\n", __func__,
nt_errstr(status)));
ulocks[i].smblctx = get_lock_pid(data, i, large_file_format);
ulocks[i].count = get_lock_count(data, i, large_file_format);
ulocks[i].offset = get_lock_offset(data, i, large_file_format);
+ ulocks[i].lock_flav = WINDOWS_LOCK;
ulocks[i].brltype = UNLOCK_LOCK;
}
locks[i].smblctx = get_lock_pid(data, i, large_file_format);
locks[i].count = get_lock_count(data, i, large_file_format);
locks[i].offset = get_lock_offset(data, i, large_file_format);
+ locks[i].lock_flav = WINDOWS_LOCK;
if (locktype & LOCKING_ANDX_SHARED_LOCK) {
if (locktype & LOCKING_ANDX_CANCEL_LOCK) {
locks[i].smblctx = fsp->op->global->open_persistent_id;
locks[i].offset = in_locks[i].offset;
locks[i].count = in_locks[i].length;
+ locks[i].lock_flav = WINDOWS_LOCK;
if (in_locks[i].flags & SMB2_LOCK_FLAG_EXCLUSIVE) {
locks[i].brltype = WRITE_LOCK;
e->count,
e->offset,
e->brltype,
- WINDOWS_LOCK,
+ e->lock_flav,
true,
&status,
&blr->blocking_smblctx);