From b1566e42a69935467a5869391ed20860d416fcdd Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Wed, 30 Jun 2010 00:29:41 -0400 Subject: [PATCH] FBSD: in reclaim, print the failed vnode If we fail to flush a vnode, in addition to printing a diagnostic message, also print information about the vnode; fs getfid can frequently confirm which vnode(s) are problematic, which may be useful in debugging the failure. Change-Id: Ia6e93f436f9dcd2d634c46856ede5effbf79e9cb Reviewed-on: http://gerrit.openafs.org/2296 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/FBSD/osi_vnodeops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/afs/FBSD/osi_vnodeops.c b/src/afs/FBSD/osi_vnodeops.c index cfa59ff25..8d88aef29 100644 --- a/src/afs/FBSD/osi_vnodeops.c +++ b/src/afs/FBSD/osi_vnodeops.c @@ -1438,8 +1438,10 @@ afs_vop_reclaim(struct vop_reclaim_args *ap) * XXX Pretend it worked, to prevent panic on shutdown * Garrett, please fix - Jim Rees */ - if (code) - printf("afs_vop_reclaim: afs_FlushVCache failed code %d\n", code); + if (code) { + printf("afs_vop_reclaim: afs_FlushVCache failed code %d vnode\n", code); + VOP_PRINT(vp); + } /* basically, it must not fail */ vnode_destroy_vobject(vp); -- 2.39.5