r6502: add LOCKING debug class - pull PRINTINGDB class definition from trunk
authorHerb Lewis <herb@samba.org>
Wed, 27 Apr 2005 18:32:37 +0000 (18:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:43 +0000 (10:56 -0500)
so our numbers don't get out of sync
(This used to be commit 58e307664e02ebf0415f19ed625d2f166d9cb1cc)

source3/include/debug.h
source3/lib/debug.c
source3/lib/util.c
source3/locking/brlock.c
source3/locking/locking.c
source3/locking/posix.c
source3/smbd/reply.c

index 05a9a3f0c523426deb900b243f83514045dd5621..062bbe1a0a0596e99dc1020f9b240deb4eca03a9 100644 (file)
@@ -94,6 +94,8 @@ extern int DEBUGLEVEL;
 #define DBGC_IDMAP             13
 #define DBGC_QUOTA             14
 #define DBGC_ACLS              15
+#define DBGC_PRINTERDB         16
+#define DBGC_LOCKING           17
 
 /* So you can define DBGC_CLASS before including debug.h */
 #ifndef DBGC_CLASS
index b69a35ecd5c829f93cd8646f5f732604d7185e2c..43d1f64eb17ceb3a88091ecba5ec932287c4f64e 100644 (file)
@@ -164,6 +164,8 @@ static const char *default_classname_table[] = {
        "idmap",             /* DBGC_IDMAP        */
        "quota",             /* DBGC_QUOTA        */
        "acls",              /* DBGC_ACLS         */
+       "printerdb",         /* DBGC_PRINTERDB    */
+       "locking",           /* DBGC_LOCKING      */
        NULL
 };
 
index 596f0827a5759fc4f698266a85a8cb7f9d6586cc..b0cd9aa9e7a340008391b3bdfd33711e7975de8d 100644 (file)
@@ -1793,6 +1793,9 @@ void free_namearray(name_compare_entry *name_array)
        SAFE_FREE(name_array);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /****************************************************************************
  Simple routine to do POSIX file locking. Cruft in NFS and 64->32 bit mapping
  is dealt with in posix.c
@@ -1843,6 +1846,9 @@ BOOL fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type)
        return(True);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ALL
+
 /*******************************************************************
  Is the name specified one of my netbios names.
  Returns true if it is equal, false otherwise.
index 09c96b1286a58cb6ef173b704f4ecefe1fe2699c..da7fc1e67d455a457a64dffb2c0ab84206164b8a 100644 (file)
@@ -27,6 +27,9 @@
 
 #include "includes.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 #define ZERO_ZERO 0
 
 /* This contains elements that differentiate locks. The smbpid is a
index e10e8a1fa0ffc9f232426f595d2c4d84fe702752..75b40d74a4117a9d46090c2b1524b02f2f21f8ca 100644 (file)
@@ -37,6 +37,9 @@
 #include "includes.h"
 uint16 global_smbpid;
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /* the locking database handle */
 static TDB_CONTEXT *tdb;
 
index 95d4518c172b417bde908eb819a02034a1f6be36..5b001b71416b2fc00ab217a684ce6405f720baf3 100644 (file)
@@ -24,6 +24,9 @@
 
 #include "includes.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /*
  * The POSIX locking database handle.
  */
index c3cb81ddfc412b8333d0147f408342386715cb85..aa33e59b7eab149847c1245dd4c35327c39c8290 100644 (file)
@@ -2129,6 +2129,9 @@ int reply_readbraw(connection_struct *conn, char *inbuf, char *outbuf, int dum_s
        return -1;
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /****************************************************************************
  Reply to a lockread (core+ protocol).
 ****************************************************************************/
@@ -2222,6 +2225,9 @@ Returning short read of maximum allowed for compatibility with Windows 2000.\n",
        return(outsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ALL
+
 /****************************************************************************
  Reply to a read.
 ****************************************************************************/
@@ -2610,6 +2616,9 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size,
        return(outsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /****************************************************************************
  Reply to a writeunlock (core+).
 ****************************************************************************/
@@ -2674,6 +2683,9 @@ int reply_writeunlock(connection_struct *conn, char *inbuf,char *outbuf,
        return outsize;
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ALL
+
 /****************************************************************************
  Reply to a write.
 ****************************************************************************/
@@ -3121,6 +3133,9 @@ int reply_writeclose(connection_struct *conn,
        return(outsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /****************************************************************************
  Reply to a lock.
 ****************************************************************************/
@@ -3201,6 +3216,9 @@ int reply_unlock(connection_struct *conn, char *inbuf,char *outbuf, int size,
        return(outsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ALL
+
 /****************************************************************************
  Reply to a tdis.
 ****************************************************************************/
@@ -4652,6 +4670,9 @@ int reply_setdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
        return(outsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_LOCKING
+
 /****************************************************************************
  Get a lock pid, dealing with large count requests.
 ****************************************************************************/
@@ -4989,6 +5010,9 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
        return chain_reply(inbuf,outbuf,length,bufsize);
 }
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ALL
+
 /****************************************************************************
  Reply to a SMBreadbmpx (read block multiplex) request.
 ****************************************************************************/