summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-05 02:37:23 +0000
committerJeremy Allison <jra@samba.org>2002-01-05 02:37:23 +0000
commit86b3aeb42a32a767e6411a730526d67472273c6f (patch)
tree8d53594f1a9235d38ef8cf858e058b28fe275911 /source3/locking
parentf358c516185ab617902f91da558ada50709e1ebd (diff)
downloadsamba-86b3aeb42a32a767e6411a730526d67472273c6f.tar.gz
samba-86b3aeb42a32a767e6411a730526d67472273c6f.tar.bz2
samba-86b3aeb42a32a767e6411a730526d67472273c6f.zip
Added DEBUG in set_share_mode to track down logic insanity.
Jeremy. (This used to be commit 32f4f3a45d473b3be1ae07f6c60897c12323d60c)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index cb523532d8..0eca0b61bc 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -552,6 +552,10 @@ BOOL set_share_mode(files_struct *fsp, uint16 port, uint16 op_type)
return False;
data = (struct locking_data *)p;
data->u.num_share_mode_entries = 1;
+
+ DEBUG(10,("set_share_mode: creating entry for file %s. num_share_modes = 1\n",
+ fsp->fsp_name ));
+
pstrcpy(p + sizeof(*data) + sizeof(share_mode_entry), fname);
fill_share_mode(p + sizeof(*data), fsp, port, op_type);
dbuf.dptr = p;
@@ -566,6 +570,10 @@ BOOL set_share_mode(files_struct *fsp, uint16 port, uint16 op_type)
data = (struct locking_data *)dbuf.dptr;
data->u.num_share_mode_entries++;
+
+ DEBUG(10,("set_share_mode: adding entry for file %s. new num_share_modes = %d\n",
+ fsp->fsp_name, data->u.num_share_mode_entries ));
+
size = dbuf.dsize + sizeof(share_mode_entry);
p = malloc(size);
if (!p)