[OpenAFS-devel] Fix for cbd (callback debug) program
Rainer Toebbicke
rtb@pclella.cern.ch
Fri, 18 Nov 2005 11:04:04 +0100
This is a multi-part message in MIME format.
--------------020302040905090704010708
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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... )
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland
Phone: +41 22 767 8985 Fax: +41 22 767 7155
--------------020302040905090704010708
Content-Type: text/plain;
name="patch_cbd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch_cbd"
*** openafs/src/viced/callback.c.1rig 2005-05-31 15:19:09.000000000 +0200
--- openafs/src/viced/callback.c 2005-06-06 12:21:18.000000000 +0200
***************
*** 1963,1968 ****
--- 1963,1970 ----
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));
--------------020302040905090704010708--