]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afs: Log slot for GetDSlot read errors
authorAndrew Deason <adeason@sinenomine.net>
Wed, 31 Oct 2012 20:02:09 +0000 (15:02 -0500)
committerPaul Smeddle <paul.smeddle@gmail.com>
Wed, 5 Dec 2012 09:24:22 +0000 (01:24 -0800)
When we log that a disk read error occurred during GetDSlot, log which
slot we were trying to read for convenience.

Reviewed-on: http://gerrit.openafs.org/8368
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit b5d9e29e89c2a63c857c47f1fb9accae90b0a3aa)

Change-Id: I0d5fffd3ef3af5d788db082e10c401afc0dd440a
Reviewed-on: http://gerrit.openafs.org/8544
Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com>
src/afs/afs_dcache.c

index ff5ee5c6f115442e1c828c598f01a070b3f3f3e7..525d71463bdbb3d58d68ec3dcd8bce10c09f046c 100644 (file)
@@ -2763,8 +2763,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 */