From: Michael Meffie Date: Sat, 21 May 2011 16:38:03 +0000 (-0400) Subject: volinfo: fix volume aux totals output X-Git-Tag: upstream/1.8.0_pre1^2~3728 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c833ff6c5b7f9c27cf26eae4833b033bd7382c56;p=packages%2Fo%2Fopenafs.git volinfo: fix volume aux totals output Do not print the volumes aux totals prematurely when running volinfo with the -headers flag on an namei fileserver. Instead print the aux totals only once after the link table size is found. Change-Id: I4538e2fc8978530fd2e8593e0b343a2497c7a764 Reviewed-on: http://gerrit.openafs.org/4694 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index bfc7d4448..db693dba8 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -552,9 +552,6 @@ HandleVolume(struct DiskPartition64 *dp, char *name) if (!dsizeOnly && !saveinodes) { printf("\tLarge inode\t= %s (size = %d)\n", PrintInode(NULL, header.largeVnodeIndex), (int)code); -#ifndef AFS_NT40_ENV - printf("Total aux volume size = %d\n\n", (int)size); -#endif } #ifdef AFS_NAMEI_ENV IH_INIT(ih, dp->device, header.parent, header.linkTable); @@ -579,9 +576,9 @@ HandleVolume(struct DiskPartition64 *dp, char *name) if (!dsizeOnly && !saveinodes) { printf("\tLink inode\t= %s (size = %d)\n", PrintInode(NULL, header.linkTable), (int)code); - printf("Total aux volume size = %d\n\n", (int)size); } #endif + printf("Total aux volume size = %d\n\n", (int)size); Vauxsize = size; Vauxsize_k = size / 1024; }