mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
smbd: Update debug messages for failed sharemode release
Use new macros, consistent log level and remove reference to flock. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Tue Sep 21 19:39:10 UTC 2021 on sn-devel-184
This commit is contained in:
parent
0a2b501145
commit
e50083ceb8
@ -458,8 +458,9 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
|
||||
*/
|
||||
ret = SMB_VFS_FILESYSTEM_SHAREMODE(fsp, 0, 0);
|
||||
if (ret == -1) {
|
||||
DBG_INFO("removing kernel flock for %s failed: %s\n",
|
||||
fsp_str_dbg(fsp), strerror(errno));
|
||||
DBG_INFO("Removing file system sharemode for %s "
|
||||
"failed: %s\n",
|
||||
fsp_str_dbg(fsp), strerror(errno));
|
||||
}
|
||||
|
||||
fsp->fsp_flags.kernel_share_modes_taken = false;
|
||||
@ -517,9 +518,9 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
|
||||
/* remove filesystem sharemodes */
|
||||
ret = SMB_VFS_FILESYSTEM_SHAREMODE(fsp, 0, 0);
|
||||
if (ret == -1) {
|
||||
DEBUG(2, ("close_remove_share_mode: removing kernel "
|
||||
"flock for %s failed: %s\n",
|
||||
fsp_str_dbg(fsp), strerror(errno)));
|
||||
DBG_INFO("Removing file system sharemode for "
|
||||
"%s failed: %s\n",
|
||||
fsp_str_dbg(fsp), strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user