From: Andrew Deason Date: Wed, 31 Oct 2012 20:02:09 +0000 (-0500) Subject: afs: Log slot for GetDSlot read errors X-Git-Tag: upstream/1.8.0_pre1^2~1834 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b5d9e29e89c2a63c857c47f1fb9accae90b0a3aa;p=packages%2Fo%2Fopenafs.git afs: Log slot for GetDSlot read errors When we log that a disk read error occurred during GetDSlot, log which slot we were trying to read for convenience. Change-Id: I35ffa94ff31cee735e85542ed9697b5f14180226 Reviewed-on: http://gerrit.openafs.org/8368 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index d9e720753..5d40929cd 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -2762,8 +2762,9 @@ afs_UFSGetDSlot(afs_int32 aslot, int needvalid) if (afs_osi_Stat(afs_cacheInodep, &tstat)) { tstat.size = -1; } - afs_warn("afs: disk cache read error in CacheItems off %d/%d " - "code %d/%d\n", + afs_warn("afs: disk cache read error in CacheItems slot %d " + "off %d/%d code %d/%d\n", + (int)aslot, off, (int)tstat.size, (int)code, (int)sizeof(struct fcache)); /* put tdc back on the free dslot list */