]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volinfo: print namei filenames of index files
authorMichael Meffie <mmeffie@sinenomine.net>
Sun, 22 May 2011 00:56:23 +0000 (20:56 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 23 Jul 2014 13:38:47 +0000 (09:38 -0400)
On namei fileservers, also print the namei filenames of the volume special
files when the -header flag is given.

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

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

index c949c24217272ba66c84a9f6e7945ab9dada4c13..8ea9a2211bbd74cee0b0811fb362f070890be152 100644 (file)
@@ -471,6 +471,9 @@ HandleSpecialFile(const char *name, struct DiskPartition64 *dp,
     afs_sfsize_t size = 0;
     IHandle_t *ih = NULL;
     FdHandle_t *fdP = NULL;
+#ifdef AFS_NAMEI_ENV
+    namei_t filename;
+#endif /* AFS_NAMEI_ENV */
 
     IH_INIT(ih, dp->device, header->parent, inode);
     fdP = IH_OPEN(ih);
@@ -492,6 +495,10 @@ HandleSpecialFile(const char *name, struct DiskPartition64 *dp,
     if (!dsizeOnly && !saveinodes) {
        printf("\t%s inode\t= %s (size = %lld)\n",
               name, PrintInode(NULL, inode), size);
+#ifdef AFS_NAMEI_ENV
+       namei_HandleToName(&filename, ih);
+       printf("\t%s namei\t= %s\n", name, filename.n_path);
+#endif /* AFS_NAMEI_ENV */
     }
     *psize += size;