volinfo: fix -filenames option check
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 18 May 2011 17:42:27 +0000 (13:42 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 May 2011 13:50:51 +0000 (06:50 -0700)
Fix the logic for checking the presense of the volinfo -filenames
option.  The original patch inadvertently added the -filenames
check as an if-else cause to the -orphaned flag check, which
prevents filenames from being printed when listing orphaned
vnodes.

Change-Id: I070d796e7ea9c0f5df9cf92a17eaa4004444d423
Reviewed-on: http://gerrit.openafs.org/4689
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/vol/vol-info.c

index e821223..9016048 100644 (file)
@@ -257,13 +257,14 @@ handleit(struct cmd_syndesc *as, void *arock)
        orphaned = 1;
        DumpVnodes = 1;
     } else
+       orphaned = 0;
 #if defined(AFS_NAMEI_ENV)
     if (as->parms[12].items) {
        PrintFileNames = 1;
        DumpVnodes = 1;
     } else
+       PrintFileNames = 0;
 #endif
-       orphaned = 0;
 
     DInit(10);