diff options
author | Jeremy Allison <jra@samba.org> | 2001-08-13 17:58:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-08-13 17:58:54 +0000 |
commit | e430190a66933bc89837daca04f8d524af0284fa (patch) | |
tree | 2b3ce100732b4f5c25f4b083c6bca8febb165215 /source3 | |
parent | 432dbf7e24d40144282f307e3c279b62f92af88f (diff) | |
download | samba-e430190a66933bc89837daca04f8d524af0284fa.tar.gz samba-e430190a66933bc89837daca04f8d524af0284fa.tar.bz2 samba-e430190a66933bc89837daca04f8d524af0284fa.zip |
Add printing of errno when POSIX lock requests fail.
Jeremy.
(This used to be commit befbfea21035b0566fc6ba8674587fc44ad7bbdc)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/posix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 833914c7aa..2a6f2be562 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -1128,8 +1128,8 @@ BOOL set_posix_lock(files_struct *fsp, SMB_BIG_UINT u_offset, SMB_BIG_UINT u_cou posix_lock_type_name(posix_lock_type), (double)offset, (double)count )); if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,posix_lock_type)) { - DEBUG(5,("set_posix_lock: Lock fail !: Type = %s: offset = %.0f, count = %.0f\n", - posix_lock_type_name(posix_lock_type), (double)offset, (double)count )); + DEBUG(5,("set_posix_lock: Lock fail !: Type = %s: offset = %.0f, count = %.0f. Errno = %s\n", + posix_lock_type_name(posix_lock_type), (double)offset, (double)count, strerror(errno) )); ret = False; break; } @@ -1211,7 +1211,7 @@ BOOL release_posix_lock(files_struct *fsp, SMB_BIG_UINT u_offset, SMB_BIG_UINT u if (num_overlapped_entries > 0 && deleted_lock.lock_type == F_WRLCK) { if (!posix_fcntl_lock(fsp,SMB_F_SETLK,offset,count,F_RDLCK)) { - DEBUG(0,("release_posix_lock: downgrade of lock failed !\n")); + DEBUG(0,("release_posix_lock: downgrade of lock failed with error %s !\n", strerror(errno) )); return False; } } |