From: Andrew Deason Date: Thu, 9 Jun 2011 04:06:58 +0000 (-0500) Subject: volinfo: PrintFileNames is namei-only X-Git-Tag: upstream/1.6.10_pre1^2~25 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7914d83509959884d95b7a58f42fcaef965de7da;p=packages%2Fo%2Fopenafs.git volinfo: PrintFileNames is namei-only PrintFileNames only exists on namei, so make sure it's inside a namei ifdef. Reviewed-on: http://gerrit.openafs.org/4830 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Derrick Brashear (cherry picked from commit fc087f187759398a2646480eca25c1195ed23d22) Change-Id: Id9cfacd35248389cb513a5470dd75ed5a2a30fb9 Reviewed-on: http://gerrit.openafs.org/11259 Reviewed-by: Andrew Deason Reviewed-by: Chas Williams - CONTRACTOR Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 1776a009f..8ee82735d 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -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. */