From 68900af5e7dc40a52043d499eaa3babae992f8b9 Mon Sep 17 00:00:00 2001 From: Rainer Toebbicke Date: Tue, 13 Dec 2005 21:58:49 +0000 Subject: [PATCH] fix-cbd-20051213 The attached patch makes the cbd program (the stand-alone version of the fileserver's callback.c) work again. (Now I expect 99% "what's that?" and 0% "what a relief!" reactions. As a reminder that's one of the things you might go hunting for after a 'kill -XCPU' to the fileserver - this program is probably used infrequently but the older you get... ) --- src/viced/callback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viced/callback.c b/src/viced/callback.c index 2c5716e..8b25dfc 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -1957,6 +1957,9 @@ PrintCB(register struct CallBack *cb, afs_uint32 now) struct FileEntry *fe = itofe(cb->fhead); time_t expires = TIndexToTime(cb->thead); + if (fe == NULL) + return; + printf("vol=%u vn=%u cbs=%d hi=%d st=%d fest=%d, exp in %d secs at %s", fe->volid, fe->vnode, fe->ncbs, cb->hhead, cb->status, fe->status, expires - now, ctime(&expires)); -- 1.9.4