volscan: index offset output column

Add index offset as a possible volscan output column.

Change-Id: I1bf6e8dc3c506a2ee013536e19141ddb214879a6
Reviewed-on: http://gerrit.openafs.org/6980
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Michael Meffie 2012-03-27 00:33:26 -04:00 committed by Derrick Brashear
parent 22fbed08a6
commit 03ec768fa6

View File

@ -81,6 +81,7 @@ typedef enum {
c(host) \ c(host) \
c(desc) \ c(desc) \
c(vid) \ c(vid) \
c(offset) \
c(vtype) \ c(vtype) \
c(vname) \ c(vname) \
c(part) \ c(part) \
@ -2443,6 +2444,9 @@ PrintColumns(struct VnodeDetails *vdp, const char *desc)
case col_vid: case col_vid:
printf("%lu", afs_printable_uint32_lu(V_id(vdp->vp))); printf("%lu", afs_printable_uint32_lu(V_id(vdp->vp)));
break; break;
case col_offset:
printf("%llu", vdp->offset);
break;
case col_vtype: case col_vtype:
printf("%s", volumeTypeShortString(V_type(vdp->vp))); printf("%s", volumeTypeShortString(V_type(vdp->vp)));
break; break;