fslog-dpf-20060731
authorDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 20:01:08 +0000 (20:01 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 20:01:08 +0000 (20:01 +0000)
turns out it's nice to log why we exit

src/rx/rx_globals.h
src/tviced/Makefile.in
src/tvolser/Makefile.in

index 0f329e3..2990b02 100644 (file)
@@ -524,7 +524,11 @@ EXT int rxdebug_active;
 #define dpf(args)
 #endif
 #else
+#ifdef DPF_FSLOG
+#define dpf(args) FSLog args
+#else
 #define dpf(args) if (rx_debugFile) rxi_DebugPrint args; else
+#endif 
 #endif
 #define rx_Log_event rxevent_debugFile
 
index 68363fc..67970cb 100644 (file)
@@ -15,6 +15,7 @@ CFLAGS=${COMMON_CFLAGS} -I.. -DNINTERFACE ${MT_CFLAGS} -DRXDEBUG -DFSSYNC_BUILD_
 
 CCRULE=${CC} ${CFLAGS} -c $?
 
+RX=../rx
 VICED=../viced
 VLSERVER=../vlserver
 LWP=../lwp
@@ -42,8 +43,10 @@ VOLOBJS= vnode.o volume.o vutil.o partition.o fssync-server.o \
 
 FSINTOBJS= afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o
 
+RXOBJS = rx_pthread.o 
+
 objects= ${VICEDOBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \
-        ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS}
+        ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} ${RXOBJS}
 
 SDBGOBJS = state_analyzer.o uuid.o dirpath.o fileutil.o ${TOP_LIBDIR}/util.a
 
@@ -51,6 +54,9 @@ LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.
 
 all: fileserver state_analyzer
 
+rx_pthread.o: ${RX}/rx_pthread.c
+       ${CCRULE} -DDPF_FSLOG
+
 viced.o: ${VICED}/viced.c
        ${CCRULE}
 
index bfeb3a2..834f984 100644 (file)
@@ -23,6 +23,7 @@ DIR=../dir
 VOL=../vol
 FSINT=../fsint
 VOLSER=../volser
+RX=../rx
 
 VOLSEROBJS=volmain.o volprocs.o physio.o voltrans.o volerr.o volint.cs.o dumpstuff.o  volint.ss.o volint.xdr.o vscommon.o
 
@@ -42,8 +43,10 @@ VOLOBJS= vnode.o volume.o vutil.o partition.o fssync-client.o purge.o \
 
 FSINTOBJS=# afsaux.o afscbint.cs.o afsint.ss.o afsint.xdr.o
 
+RXOBJS=rx_pthread.o
+
 objects= ${VOLSEROBJS} ${VLSERVEROBJS} ${LWPOBJS} ${LIBACLOBJS} \
-        ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS}
+        ${UTILOBJS} ${DIROBJS} ${VOLOBJS} ${FSINTOBJS} ${RXOBJS}
 
 LIBS=${TOP_LIBDIR}/libafsauthent.a ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/util.a
 
@@ -51,6 +54,8 @@ all: volserver
 
 COMPILE=${CC} ${CFLAGS} -c $?
 
+rx_pthread.o: ${RX}/rx_pthread.c
+       ${COMPILE} -DDPF_FSLOG
 volmain.o: ${VOLSER}/volmain.c
        ${COMPILE}
 volprocs.o: ${VOLSER}/volprocs.c