]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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>
Sun, 22 May 2011 15:30:40 +0000 (08:30 -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.

Reviewed-on: http://gerrit.openafs.org/4689
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 33cb8a53fdc8907dafed2e77cc1da539d17397c5)

Change-Id: Ic538976a697317fd3458c8a619f14dd100c4cdab
Reviewed-on: http://gerrit.openafs.org/4697
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/vol-info.c

index 53e0aa35ac584e9afd1a7019ed3334b39e525a32..e592cf899dbf6fa61de0f9359155d5d1d5fb48f4 100644 (file)
@@ -280,13 +280,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);