TALLOC_FREE(br_lck);
}
- DEBUG(10, ("strict_lock_default: flavour = %s brl start=%ju "
- "len=%ju %s for fnum %ju file %s\n",
- lock_flav_name(plock->lock_flav),
- (uintmax_t)plock->start, (uintmax_t)plock->size,
- ret ? "unlocked" : "locked",
- (uintmax_t)plock->fnum, fsp_str_dbg(fsp)));
+ DBG_DEBUG("flavour = %s brl start=%" PRIu64 " "
+ "len=%" PRIu64 " %s for fnum %" PRIu64 " file %s\n",
+ lock_flav_name(plock->lock_flav),
+ plock->start,
+ plock->size,
+ ret ? "unlocked" : "locked",
+ plock->fnum,
+ fsp_str_dbg(fsp));
return ret;
}
NTSTATUS status;
bool ok;
- DEBUG(10, ("rename_share_filename: servicepath %s newname %s\n",
- servicepath, smb_fname_dst->base_name));
+ DBG_DEBUG("servicepath %s newname %s\n",
+ servicepath,
+ smb_fname_dst->base_name);
status = share_mode_lock_access_private_data(lck, &d);
if (!NT_STATUS_IS_OK(status)) {
*/
lck_state.cleanup_fn = close_share_mode_lock_cleanup;
- DEBUG(5,("close_remove_share_mode: file %s. Delete on close was set "
- "- deleting file.\n", fsp_str_dbg(fsp)));
+ DBG_INFO("%s. Delete on close was set - deleting file.\n",
+ fsp_str_dbg(fsp));
/*
* Don't try to update the write time when we delete the file
{
/* Become the user who requested the delete. */
- DEBUG(5,("close_remove_share_mode: file %s. "
- "Change user to uid %u\n",
- fsp_str_dbg(fsp),
- (unsigned int)lck_state.del_token->uid));
+ DBG_INFO("file %s. Change user to uid %u\n",
+ fsp_str_dbg(fsp),
+ (unsigned int)lck_state.del_token->uid);
if (!push_sec_ctx()) {
smb_panic("close_remove_share_mode: file %s. failed to push "
tmp_status = vfs_stat_fsp(fsp);
if (!NT_STATUS_IS_OK(tmp_status)) {
- DEBUG(5,("close_remove_share_mode: file %s. Delete on close "
+ DBG_INFO("file %s. Delete on close "
"was set and stat failed with error %s\n",
- fsp_str_dbg(fsp), nt_errstr(tmp_status)));
+ fsp_str_dbg(fsp),
+ nt_errstr(tmp_status));
/*
* Don't save the errno here, we ignore this error
*/
if (!file_id_equal(&fsp->file_id, &id)) {
struct file_id_buf ftmp1, ftmp2;
- DEBUG(5,("close_remove_share_mode: file %s. Delete on close "
+ DBG_INFO("file %s. Delete on close "
"was set and dev and/or inode does not match\n",
- fsp_str_dbg(fsp)));
- DEBUG(5,("close_remove_share_mode: file %s. stored file_id %s, "
- "stat file_id %s\n",
+ fsp_str_dbg(fsp));
+ DBG_INFO("file %s. stored file_id %s, stat file_id %s\n",
fsp_str_dbg(fsp),
file_id_str_buf(fsp->file_id, &ftmp1),
- file_id_str_buf(id, &ftmp2)));
+ file_id_str_buf(id, &ftmp2));
/*
* Don't save the errno here, we ignore this error
*/
* zero.
*/
- DEBUG(5,("close_remove_share_mode: file %s. Delete on close "
+ DBG_INFO("file %s. Delete on close "
"was set and unlink failed with error %s\n",
- fsp_str_dbg(fsp), strerror(errno)));
+ fsp_str_dbg(fsp),
+ strerror(errno));
status = map_nt_error_from_unix(errno);
}