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.6.10_pre1^2~83 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c35419e495575840e5cac8ee6f5e2e5ee430f85f;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. Reviewed-on: http://gerrit.openafs.org/4694 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit c833ff6c5b7f9c27cf26eae4833b033bd7382c56) Change-Id: I6e059a070785fb44821827a75397d04c8669418d Reviewed-on: http://gerrit.openafs.org/11247 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 19ae86bdf..a8e37a911 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -580,9 +580,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); @@ -607,9 +604,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; }