summaryrefslogtreecommitdiffstats
path: root/source/smbd/oplock_irix.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-11 05:57:58 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-11 05:57:58 +0000
commitb28cc4163bc2faaa80c5782fc02c8f03c410cdeb (patch)
tree58a5eda9a58f43d9f6bad4f7037ee852f69bf00e /source/smbd/oplock_irix.c
parent1871d4a3f64401f9a6f749ce26d1715e3bcdeac3 (diff)
downloadsamba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.tar.gz
samba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.tar.xz
samba-b28cc4163bc2faaa80c5782fc02c8f03c410cdeb.zip
Linux kernel oplocks now seem to work, but need a _lot_ of testing
I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
Diffstat (limited to 'source/smbd/oplock_irix.c')
-rw-r--r--source/smbd/oplock_irix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/oplock_irix.c b/source/smbd/oplock_irix.c
index 6eb8ff91915..8d55a3d4a05 100644
--- a/source/smbd/oplock_irix.c
+++ b/source/smbd/oplock_irix.c
@@ -1,5 +1,4 @@
#define OLD_NTDOMAIN 1
-#if HAVE_KERNEL_OPLOCKS_IRIX
/*
Unix SMB/Netbios implementation.
@@ -24,6 +23,7 @@
#include "includes.h"
+#if HAVE_KERNEL_OPLOCKS_IRIX
extern int DEBUGLEVEL;
@@ -227,7 +227,7 @@ should be %d).\n", msg_len, KERNEL_OPLOCK_BREAK_MSG_LEN));
memcpy((char *)dev, msg_start+KERNEL_OPLOCK_BREAK_DEV_OFFSET, sizeof(*dev));
DEBUG(5,("process_local_message: kernel oplock break request for \
-file dev = %x, inode = %.0f\n", (unsigned int)dev, (double)inode));
+file dev = %x, inode = %.0f\n", (unsigned int)*dev, (double)*inode));
return True;
}