From: Michael Meffie Date: Tue, 27 Mar 2012 04:33:26 +0000 (-0400) Subject: volscan: index offset output column X-Git-Tag: upstream/1.6.10_pre1^2~11 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=baa20f13174dd4c2081aa9d9c470b519c7efcd6d;p=packages%2Fo%2Fopenafs.git volscan: index offset output column Add index offset as a possible volscan output column. Reviewed-on: http://gerrit.openafs.org/6980 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit 03ec768fa65dc5961e161517871f3035df70b643) Change-Id: I17cede564fde259e04b7f1cb78724798808fb881 Reviewed-on: http://gerrit.openafs.org/11273 Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Andrew Deason Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 5386dad23..7a6d26b45 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -109,6 +109,7 @@ typedef enum { c(host) \ c(desc) \ c(vid) \ + c(offset) \ c(vtype) \ c(vname) \ c(part) \ @@ -2468,6 +2469,9 @@ PrintColumns(struct VnodeDetails *vdp, const char *desc) case col_vid: printf("%lu", afs_printable_uint32_lu(V_id(vdp->vp))); break; + case col_offset: + printf("%llu", vdp->offset); + break; case col_vtype: printf("%s", volumeTypeShortString(V_type(vdp->vp))); break;