]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volinfo: PrintFileNames is namei-only
authorAndrew Deason <adeason@sinenomine.net>
Thu, 9 Jun 2011 04:06:58 +0000 (23:06 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 13 Aug 2014 18:18:12 +0000 (14:18 -0400)
PrintFileNames only exists on namei, so make sure it's inside a namei
ifdef.

Reviewed-on: http://gerrit.openafs.org/4830
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit fc087f187759398a2646480eca25c1195ed23d22)

Change-Id: Id9cfacd35248389cb513a5470dd75ed5a2a30fb9
Reviewed-on: http://gerrit.openafs.org/11259
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/vol-info.c

index 1776a009fb8e23e06ecc98607a3ccfc2bc2fcb9d..8ee82735d3040d659d9bdf00a2eff112bd1b0d5d 100644 (file)
@@ -507,8 +507,12 @@ handleit(struct cmd_syndesc *as, void *arock)
        DumpVnodes = 0;
        InodeTimes = 0;
        ShowOrphaned = 0;
-    } else if (ShowOrphaned || PrintFileNames) {
+    } else if (ShowOrphaned) {
        DumpVnodes = 1;         /* implied */
+#ifdef AFS_NAMEI_ENV
+    } else if (PrintFileNames) {
+       DumpVnodes = 1;         /* implied */
+#endif
     }
 
     /* Allow user to specify partition by name or id. */