1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Extra debug in open.c, fix for bad debug message in reply.c

Jeremy.
(This used to be commit 2c2fc85136)
This commit is contained in:
Jeremy Allison 2001-06-19 07:31:55 +00:00
parent 01877b38e4
commit 850a0e27e1
3 changed files with 5 additions and 3 deletions

View File

@ -492,8 +492,8 @@ static int open_mode_check(connection_struct *conn, const char *fname, SMB_DEV_T
BOOL opb_ret;
DEBUG(5,("open_mode_check: breaking oplock (%x) on file %s, \
dev = %x, inode = %.0f\n", share_entry->op_type, fname, (unsigned int)dev, (double)inode));
DEBUG(5,("open_mode_check: oplock_request = %d, breaking oplock (%x) on file %s, \
dev = %x, inode = %.0f\n", *p_oplock_request, share_entry->op_type, fname, (unsigned int)dev, (double)inode));
/* Oplock break - unlock to request it. */
unlock_share_entry(conn, dev, inode);

View File

@ -4343,7 +4343,7 @@ int reply_lockingX(connection_struct *conn, char *inbuf,char *outbuf,int length,
BOOL break_to_none = (oplocklevel == 0);
DEBUG(5,("reply_lockingX: oplock break reply (%u) from client for fnum = %d\n",
fsp->fnum, (unsigned int)oplocklevel ));
(unsigned int)oplocklevel, fsp->fnum ));
/*
* Make sure we have granted an exclusive or batch oplock on this file.

View File

@ -2156,6 +2156,8 @@ static void run_oplock3(int dummy)
if (fork() == 0) {
/* Child code */
use_oplocks = True;
use_level_II_oplocks = True;
if (!open_connection(&cli)) return;
sleep(2);
/* try to trigger a oplock break in parent */