2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
13 Institution: The Information Technology Center, Carnegie-Mellon University
17 #include <afsconfig.h>
18 #include <afs/param.h>
24 #ifdef HAVE_SYS_FILE_H
32 #include <afs/afsint.h>
34 #include <afs/errors.h>
37 #include <afs/afssyscalls.h>
41 #include "partition.h"
42 #include "viceinode.h"
43 #include <afs/afssyscalls.h>
44 #include <afs/afsutil.h>
46 static const char *progname = "volinfo";
48 int DumpVnodes = 0; /* Dump everything, i.e. summary of all vnodes */
49 int DumpInodeNumber = 0; /* Dump inode numbers with vnodes */
50 int DumpDate = 0; /* Dump vnode date (server modify date) with vnode */
51 int InodeTimes = 0; /* Dump some of the dates associated with inodes */
52 #if defined(AFS_NAMEI_ENV)
53 int PrintFileNames = 0;
57 int dsizeOnly = 0, totvolsize = 0, Vauxsize = 0, Vdiskused = 0, Vvnodesize =
59 int Vvnodesize_k = 0, Vauxsize_k = 0;
60 int Totvolsize = 0, TVauxsize = 0, TVdiskused = 0, TVvnodesize = 0;
61 int Stotvolsize = 0, SVauxsize = 0, SVdiskused = 0, SVvnodesize = 0;
62 int fixheader = 0, saveinodes = 0, orphaned = 0;
65 /* Forward Declarations */
66 void PrintHeader(Volume * vp);
67 void HandleAllPart(void);
68 void HandlePart(struct DiskPartition64 *partP);
69 void HandleVolume(struct DiskPartition64 *partP, char *name);
70 struct DiskPartition64 *FindCurrentPartition(void);
71 Volume *AttachVolume(struct DiskPartition64 *dp, char *volname,
72 struct VolumeHeader *header);
73 #if defined(AFS_NAMEI_ENV)
74 void PrintVnode(afs_foff_t offset, VnodeDiskObject * vnode, VnodeId vnodeNumber,
75 Inode ino, Volume * vp);
77 void PrintVnode(afs_foff_t offset, VnodeDiskObject * vnode, VnodeId vnodeNumber,
80 void PrintVnodes(Volume * vp, VnodeClass class);
85 #define MAX_DATE_RESULT 100
86 static char results[8][MAX_DATE_RESULT];
88 struct tm *tm = localtime(&date);
91 (void)strftime(buf, 32, "%Y/%m/%d.%H:%M:%S", tm); /* NT does not have %T */
92 snprintf(results[next = (next + 1) & 7], MAX_DATE_RESULT,
93 "%lu (%s)", (unsigned long)date, buf);
98 #include "AFS_component_version_number.c"
101 char name[VMAXPATHLEN];
105 static int PrintingVolumeSizes = 0; /* printing volume size lines */
108 * Print the volume size table heading line, if needed.
113 PrintVolumeSizeHeading(void)
115 if (!PrintingVolumeSizes) {
117 ("Volume-Id\t Volsize Auxsize Inodesize AVolsize SizeDiff (VolName)\n");
118 PrintingVolumeSizes = 1;
123 * Print the sizes for a volume.
128 PrintVolumeSizes(Volume * vp)
130 PrintVolumeSizeHeading();
131 printf("%u\t%9d%9d%10d%10d%9d\t%24s\n", V_id(vp), Vdiskused,
132 Vauxsize_k, Vvnodesize_k, totvolsize, totvolsize - Vdiskused,
137 * Print the size totals for the partition.
142 PrintPartitionTotals(int nvols)
144 PrintVolumeSizeHeading();
145 printf("\nPart Totals %12d%9d%10d%10d%9d (%d volumes)\n\n",
146 TVdiskused, TVauxsize, TVvnodesize, Totvolsize,
147 Totvolsize - TVdiskused, nvols);
148 PrintingVolumeSizes = 0;
152 * Print the size totals for all the partitions.
157 PrintServerTotals(void)
159 printf("\nServer Totals%12d%9d%10d%10d%9d\n", SVdiskused, SVauxsize,
160 SVvnodesize, Stotvolsize, Stotvolsize - SVdiskused);
164 ReadHdr1(IHandle_t * ih, char *to, int size, u_int magic, u_int version)
166 struct versionStamp *vsn;
170 vsn = (struct versionStamp *)to;
172 code = IH_IREAD(ih, 0, to, size);
176 if (vsn->magic != magic) {
178 fprintf(stderr, "%s: Inode %s: Bad magic %x (%x): IGNORED\n",
179 progname, PrintInode(NULL, ih->ih_ino), vsn->magic, magic);
182 /* Check is conditional, in case caller wants to inspect version himself */
183 if (version && vsn->version != version) {
185 fprintf(stderr, "%s: Inode %s: Bad version %x (%x): IGNORED\n",
187 PrintInode(NULL, ih->ih_ino), vsn->version, version);
189 if (bad && fixheader) {
191 vsn->version = version;
192 printf("Special index inode %s has a bad header. Reconstructing...\n",
193 PrintInode(NULL, ih->ih_ino));
194 code = IH_IWRITE(ih, 0, to, size);
197 "%s: Write failed for inode %s; header left in damaged state\n",
198 progname, PrintInode(NULL, ih->ih_ino));
201 if (!dsizeOnly && !saveinodes) {
202 printf("Inode %s: Good magic %x and version %x\n",
203 PrintInode(NULL, ih->ih_ino), magic, version);
211 AttachVolume(struct DiskPartition64 * dp, char *volname,
212 struct VolumeHeader * header)
217 vp = (Volume *) calloc(1, sizeof(Volume));
218 vp->specialStatus = 0;
219 vp->device = dp->device;
221 IH_INIT(vp->vnodeIndex[vLarge].handle, dp->device, header->parent,
222 header->largeVnodeIndex);
223 IH_INIT(vp->vnodeIndex[vSmall].handle, dp->device, header->parent,
224 header->smallVnodeIndex);
225 IH_INIT(vp->diskDataHandle, dp->device, header->parent,
227 IH_INIT(V_linkHandle(vp), dp->device, header->parent, header->linkTable);
228 vp->cacheCheck = 0; /* XXXX */
229 vp->shuttingDown = 0;
230 vp->goingOffline = 0;
232 vp->header = (struct volHeader *)calloc(1, sizeof(*vp->header));
233 ec = ReadHdr1(V_diskDataHandle(vp), (char *)&V_disk(vp),
234 sizeof(V_disk(vp)), VOLUMEINFOMAGIC, VOLUMEINFOVERSION);
236 struct IndexFileHeader iHead;
237 ec = ReadHdr1(vp->vnodeIndex[vSmall].handle, (char *)&iHead,
238 sizeof(iHead), SMALLINDEXMAGIC, SMALLINDEXVERSION);
241 struct IndexFileHeader iHead;
242 ec = ReadHdr1(vp->vnodeIndex[vLarge].handle, (char *)&iHead,
243 sizeof(iHead), LARGEINDEXMAGIC, LARGEINDEXVERSION);
247 struct versionStamp stamp;
248 ec = ReadHdr1(V_linkHandle(vp), (char *)&stamp, sizeof(stamp),
249 LINKTABLEMAGIC, LINKTABLEVERSION);
259 handleit(struct cmd_syndesc *as, void *arock)
263 afs_uint32 volumeId = 0;
265 struct DiskPartition64 *partP = NULL;
269 if (geteuid() != 0) {
270 fprintf(stderr, "%s: Must be run as root; sorry\n", progname);
275 if (as->parms[0].items)
279 if (as->parms[1].items)
283 if (as->parms[2].items)
287 if (as->parms[3].items)
291 if (as->parms[4].items)
295 if ((ti = as->parms[5].items))
297 if ((ti = as->parms[6].items))
298 volumeId = strtoul(ti->data, NULL, 10);
299 if (as->parms[7].items)
303 if (as->parms[8].items) {
309 if (as->parms[9].items) {
313 if (as->parms[10].items) {
319 if (as->parms[11].items) {
324 #if defined(AFS_NAMEI_ENV)
325 if (as->parms[12].items) {
334 err = VAttachPartitions();
336 fprintf(stderr, "%s: %d partitions had errors during attach.\n",
341 partP = VGetPartition(partName, 0);
343 fprintf(stderr, "%s: %s is not an AFS partition name on this server.\n",
359 partP = FindCurrentPartition();
362 "%s: Current partition is not a vice partition.\n",
367 snprintf(name1, sizeof name1, VFORMAT,
368 afs_printable_uint32_lu(volumeId));
369 HandleVolume(partP, name1);
376 struct DiskPartition64 *
377 FindCurrentPartition(void)
379 int dr = _getdrive();
380 struct DiskPartition64 *dp;
383 for (dp = DiskPartitionList; dp; dp = dp->next) {
384 if (*dp->devName - 'A' == dr)
388 fprintf(stderr, "%s: Current drive is not a valid vice partition.\n",
394 struct DiskPartition64 *
395 FindCurrentPartition(void)
400 struct DiskPartition64 *dp;
402 if (!getcwd(partName, 1023)) {
403 fprintf(stderr, "%s: Failed to get current working directory: ",
408 p = strchr(&partName[1], OS_DIRSEPC);
413 if (!(dp = VGetPartition(partName, 0))) {
416 fprintf(stderr, "%s: %s is not a valid vice partition.\n", progname,
427 struct DiskPartition64 *partP;
430 for (partP = DiskPartitionList; partP; partP = partP->next) {
431 printf("Processing Partition %s:\n", partP->name);
433 Stotvolsize += Totvolsize;
434 SVauxsize += TVauxsize;
435 SVvnodesize += TVvnodesize;
436 SVdiskused += TVdiskused;
446 HandlePart(struct DiskPartition64 *partP)
454 (void)sprintf(pname, "%s\\", VPartitionPath(partP));
456 char *p = VPartitionPath(partP);
459 if ((dirp = opendir(p)) == NULL) {
460 fprintf(stderr, "%s: Can't read directory %s; giving up\n", progname,
464 while ((dp = readdir(dirp))) {
465 p = (char *)strrchr(dp->d_name, '.');
466 if (p != NULL && strcmp(p, VHDREXT) == 0) {
467 HandleVolume(partP, dp->d_name);
468 Totvolsize += totvolsize;
469 TVauxsize += Vauxsize;
470 TVvnodesize += Vvnodesize;
471 TVdiskused += Vdiskused;
477 PrintPartitionTotals(nvols);
482 * Inspect a volume header special file.
484 * @param[in] name descriptive name of the type of header special file
485 * @param[in] dp partition object for this volume
486 * @param[in] header header object for this volume
487 * @param[in] inode fileserver inode number for this header special file
488 * @param[out] psize total of the header special file
493 HandleSpecialFile(const char *name, struct DiskPartition64 *dp,
494 struct VolumeHeader *header, Inode inode,
495 afs_sfsize_t * psize)
497 afs_sfsize_t size = 0;
498 IHandle_t *ih = NULL;
499 FdHandle_t *fdP = NULL;
502 #endif /* AFS_NAMEI_ENV */
504 IH_INIT(ih, dp->device, header->parent, inode);
508 "%s: Error opening header file '%s' for volume %u", progname,
513 size = FDH_SIZE(fdP);
516 "%s: Error getting size of header file '%s' for volume %u",
517 progname, name, header->id);
521 if (!dsizeOnly && !saveinodes) {
522 printf("\t%s inode\t= %s (size = %lld)\n",
523 name, PrintInode(NULL, inode), size);
525 namei_HandleToName(&filename, ih);
526 printf("\t%s namei\t= %s\n", name, filename.n_path);
527 #endif /* AFS_NAMEI_ENV */
533 FDH_REALLYCLOSE(fdP);
541 * Inspect this volume header files.
543 * @param[in] dp partition object for this volume
544 * @param[in] header_fd volume header file descriptor
545 * @param[in] header volume header object
546 * @param[out] psize total of the header special file
551 HandleHeaderFiles(struct DiskPartition64 *dp, FD_t header_fd,
552 struct VolumeHeader *header)
554 afs_sfsize_t size = 0;
556 if (!dsizeOnly && !saveinodes) {
557 size = OS_SIZE(header_fd);
558 printf("Volume header (size = %lld):\n", size);
559 printf("\tstamp\t= 0x%x\n", header->stamp.version);
560 printf("\tVolId\t= %u\n", header->id);
561 printf("\tparent\t= %u\n", header->parent);
564 HandleSpecialFile("Info", dp, header, header->volumeInfo, &size);
565 HandleSpecialFile("Small", dp, header, header->smallVnodeIndex,
567 HandleSpecialFile("Large", dp, header, header->largeVnodeIndex,
570 HandleSpecialFile("Link", dp, header, header->linkTable, &size);
571 #endif /* AFS_NAMEI_ENV */
573 if (!dsizeOnly && !saveinodes) {
574 printf("Total aux volume size = %lld\n\n", size);
577 Vauxsize_k = size / 1024;
581 HandleVolume(struct DiskPartition64 *dp, char *name)
583 struct VolumeHeader header;
584 struct VolumeDiskHeader diskHeader;
585 FD_t fd = INVALID_FD;
587 char headerName[1024];
590 fprintf(stderr, "%s: -online not supported\n", progname);
595 snprintf(headerName, sizeof headerName, "%s" OS_DIRSEP "%s",
596 VPartitionPath(dp), name);
597 if ((fd = OS_OPEN(headerName, O_RDONLY, 0666)) == INVALID_FD
598 || OS_SIZE(fd) < 0) {
599 fprintf(stderr, "%s: Cannot read volume header %s\n", progname,
604 n = OS_READ(fd, &diskHeader, sizeof(diskHeader));
606 if (n != sizeof(diskHeader)
607 || diskHeader.stamp.magic != VOLUMEHEADERMAGIC) {
608 fprintf(stderr, "%s: Error reading volume header %s\n", progname,
612 if (diskHeader.stamp.version != VOLUMEHEADERVERSION) {
614 "%s: Volume %s, version number is incorrect; volume needs salvage\n",
618 DiskToVolumeHeader(&header, &diskHeader);
621 HandleHeaderFiles(dp, fd, &header);
624 vp = AttachVolume(dp, name, &header);
626 fprintf(stderr, "%s: Error attaching volume header %s\n",
633 if (!dsizeOnly && !saveinodes)
634 printf("\nLarge vnodes (directories)\n");
635 PrintVnodes(vp, vLarge);
636 if (!dsizeOnly && !saveinodes) {
637 printf("\nSmall vnodes(files, symbolic links)\n");
641 printf("Saving all volume files to current directory ...\n");
642 PrintingVolumeSizes = 0; /* -saveinodes interfers with -sizeOnly */
644 PrintVnodes(vp, vSmall);
647 totvolsize = Vauxsize_k + Vvnodesize_k;
648 PrintVolumeSizes(vp);
655 main(int argc, char **argv)
657 struct cmd_syndesc *ts;
660 ts = cmd_CreateSyntax(NULL, handleit, NULL, "Dump volume's internal state");
661 cmd_AddParm(ts, "-online", CMD_FLAG, CMD_OPTIONAL,
662 "Get info from running fileserver");
663 cmd_AddParm(ts, "-vnode", CMD_FLAG, CMD_OPTIONAL, "Dump vnode info");
664 cmd_AddParm(ts, "-date", CMD_FLAG, CMD_OPTIONAL,
665 "Also dump vnode's mod date");
666 cmd_AddParm(ts, "-inode", CMD_FLAG, CMD_OPTIONAL,
667 "Also dump vnode's inode number");
668 cmd_AddParm(ts, "-itime", CMD_FLAG, CMD_OPTIONAL,
669 "Dump special inode's mod times");
670 cmd_AddParm(ts, "-part", CMD_LIST, CMD_OPTIONAL,
671 "AFS partition name (default current partition)");
672 cmd_AddParm(ts, "-volumeid", CMD_LIST, CMD_OPTIONAL, "Volume id");
673 cmd_AddParm(ts, "-header", CMD_FLAG, CMD_OPTIONAL,
674 "Dump volume's header info");
675 cmd_AddParm(ts, "-sizeOnly", CMD_FLAG, CMD_OPTIONAL,
676 "Dump volume's size");
677 cmd_AddParm(ts, "-fixheader", CMD_FLAG, CMD_OPTIONAL,
678 "Try to fix header");
679 cmd_AddParm(ts, "-saveinodes", CMD_FLAG, CMD_OPTIONAL,
680 "Try to save all inodes");
681 cmd_AddParm(ts, "-orphaned", CMD_FLAG, CMD_OPTIONAL,
682 "List all dir/files without a parent");
683 #if defined(AFS_NAMEI_ENV)
684 cmd_AddParm(ts, "-filenames", CMD_FLAG, CMD_OPTIONAL, "Also dump vnode's namei filename");
686 code = cmd_Dispatch(argc, argv);
690 #define typestring(type) (type == RWVOL? "read/write": type == ROVOL? "readonly": type == BACKVOL? "backup": "unknown")
693 PrintHeader(Volume * vp)
695 Vdiskused = V_diskused(vp);
696 if (dsizeOnly || saveinodes)
698 printf("Volume header for volume %u (%s)\n", V_id(vp), V_name(vp));
699 printf("stamp.magic = %x, stamp.version = %u\n", V_stamp(vp).magic,
700 V_stamp(vp).version);
702 ("inUse = %d, inService = %d, blessed = %d, needsSalvaged = %d, dontSalvage = %d\n",
703 V_inUse(vp), V_inService(vp), V_blessed(vp), V_needsSalvaged(vp),
706 ("type = %d (%s), uniquifier = %u, needsCallback = %d, destroyMe = %x\n",
707 V_type(vp), typestring(V_type(vp)), V_uniquifier(vp),
708 V_needsCallback(vp), V_destroyMe(vp));
710 ("id = %u, parentId = %u, cloneId = %u, backupId = %u, restoredFromId = %u\n",
711 V_id(vp), V_parentId(vp), V_cloneId(vp), V_backupId(vp),
712 V_restoredFromId(vp));
714 ("maxquota = %d, minquota = %d, maxfiles = %d, filecount = %d, diskused = %d\n",
715 V_maxquota(vp), V_minquota(vp), V_maxfiles(vp), V_filecount(vp),
717 printf("creationDate = %s, copyDate = %s\n", date(V_creationDate(vp)),
718 date(V_copyDate(vp)));
719 printf("backupDate = %s, expirationDate = %s\n", date(V_backupDate(vp)),
720 date(V_expirationDate(vp)));
721 printf("accessDate = %s, updateDate = %s\n", date(V_accessDate(vp)),
722 date(V_updateDate(vp)));
723 printf("owner = %u, accountNumber = %u\n", V_owner(vp),
724 V_accountNumber(vp));
726 ("dayUse = %u; week = (%u, %u, %u, %u, %u, %u, %u), dayUseDate = %s\n",
727 V_dayUse(vp), V_weekUse(vp)[0], V_weekUse(vp)[1], V_weekUse(vp)[2],
728 V_weekUse(vp)[3], V_weekUse(vp)[4], V_weekUse(vp)[5],
729 V_weekUse(vp)[6], date(V_dayUseDate(vp)));
730 printf("volUpdateCounter = %u\n", V_volUpCounter(vp));
734 * OS independent file info. Die on failure.
738 NT_date(FILETIME * ft)
740 static char result[8][64];
745 if (!FileTimeToLocalFileTime(ft, &lft)
746 || !FileTimeToSystemTime(&lft, &st)) {
747 fprintf(stderr, "%s: Time conversion failed.\n", progname);
750 sprintf(result[next = ((next + 1) & 7)], "%4d/%02d/%02d.%2d:%2d:%2d",
751 st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
757 GetFileInfo(FD_t fd, int *size, char **ctime, char **mtime, char **atime)
760 BY_HANDLE_FILE_INFORMATION fi;
761 if (!GetFileInformationByHandle(fd, &fi)) {
762 fprintf(stderr, "%s: GetFileInformationByHandle failed, exiting\n",
766 *size = (int)fi.nFileSizeLow;
768 *mtime = NT_date(&fi.ftLastWriteTime);
769 *atime = NT_date(&fi.ftLastAccessTime);
771 struct afs_stat_st status;
772 if (afs_fstat(fd, &status) == -1) {
773 fprintf(stderr, "%s: fstat failed %d\n", progname, errno);
776 *size = (int)status.st_size;
777 *ctime = date(status.st_ctime);
778 *mtime = date(status.st_mtime);
779 *atime = date(status.st_atime);
784 PrintVnodes(Volume * vp, VnodeClass class)
787 (class == vSmall ? SIZEOF_SMALLDISKVNODE : SIZEOF_LARGEDISKVNODE);
788 char buf[SIZEOF_LARGEDISKVNODE];
789 struct VnodeDiskObject *vnode = (struct VnodeDiskObject *)buf;
790 StreamHandle_t *file;
791 int vnodeIndex, nVnodes;
792 afs_foff_t offset = 0;
794 IHandle_t *ih = vp->vnodeIndex[class].handle;
797 char *ctime, *atime, *mtime;
798 char nfile[50], buffer[256];
805 fprintf(stderr, "%s: open failed: ", progname);
809 file = FDH_FDOPEN(fdP, "r");
811 fprintf(stderr, "%s: fdopen failed\n", progname);
815 GetFileInfo(fdP->fd_fd, &size, &ctime, &atime, &mtime);
816 if (InodeTimes && !dsizeOnly) {
817 printf("ichanged : %s\nimodified: %s\niaccessed: %s\n\n", ctime,
821 nVnodes = (size / diskSize) - 1;
823 STREAM_ASEEK(file, diskSize);
828 nVnodes && STREAM_READ(vnode, diskSize, 1, file) == 1;
829 nVnodes--, vnodeIndex++, offset += diskSize) {
831 ino = VNDISK_GET_INO(vnode);
833 if (!VALID_INO(ino)) {
836 if (dsizeOnly && (class == vLarge)) {
837 afs_fsize_t fileLength;
839 VNDISK_GET_LEN(fileLength, vnode);
840 Vvnodesize += fileLength;
841 Vvnodesize_k += fileLength / 1024;
842 } else if (class == vSmall) {
845 IH_INIT(ih1, V_device(vp), V_parentId(vp), ino);
849 "%s: Can't open inode %s error %d (ignored)\n",
850 progname, PrintInode(NULL, ino), errno);
853 snprintf(nfile, sizeof nfile, "TmpInode.%s",
854 PrintInode(NULL, ino));
855 ofd = afs_open(nfile, O_CREAT | O_RDWR | O_TRUNC, 0600);
858 "%s: Can't create file %s; error %d (ignored)\n",
859 progname, nfile, errno);
865 len = FDH_PREAD(fdP1, buffer, sizeof(buffer), total);
867 FDH_REALLYCLOSE(fdP1);
872 "%s: Error while reading from inode %s (%d - ignored)\n",
873 progname, PrintInode(NULL, ino), errno);
878 break; /* No more input */
879 nBytes = write(ofd, buffer, len);
881 FDH_REALLYCLOSE(fdP1);
886 "%s: Error while writing to \"%s\" (%d - ignored)\n",
887 progname, nfile, errno);
895 FDH_REALLYCLOSE(fdP1);
898 printf("... Copied inode %s to file %s (%lu bytes)\n",
899 PrintInode(NULL, ino), nfile, (unsigned long)total);
902 #if defined(AFS_NAMEI_ENV)
903 PrintVnode(offset, vnode,
904 bitNumberToVnodeNumber(vnodeIndex, class), ino, vp);
906 PrintVnode(offset, vnode,
907 bitNumberToVnodeNumber(vnodeIndex, class), ino);
915 #if defined(AFS_NAMEI_ENV)
917 PrintVnode(afs_foff_t offset, VnodeDiskObject * vnode, VnodeId vnodeNumber,
918 Inode ino, Volume * vp)
921 PrintVnode(afs_foff_t offset, VnodeDiskObject * vnode, VnodeId vnodeNumber,
925 #if defined(AFS_NAMEI_ENV)
929 afs_fsize_t fileLength;
931 VNDISK_GET_LEN(fileLength, vnode);
932 Vvnodesize += fileLength;
933 Vvnodesize_k += fileLength / 1024;
936 if (orphaned && (fileLength == 0 || vnode->parent || !offset))
939 ("%10lld Vnode %u.%u.%u cloned: %u, length: %llu linkCount: %d parent: %u",
940 (long long)offset, vnodeNumber, vnode->uniquifier, vnode->dataVersion,
941 vnode->cloned, (afs_uintmax_t) fileLength, vnode->linkCount,
944 printf(" inode: %s", PrintInode(NULL, ino));
946 printf(" ServerModTime: %s", date(vnode->serverModifyTime));
947 #if defined(AFS_NAMEI_ENV)
948 if (PrintFileNames) {
949 IH_INIT(ihtmpp, V_device(vp), V_parentId(vp), ino);
950 namei_HandleToName(&filename, ihtmpp);
951 #if !defined(AFS_NT40_ENV)
952 printf(" UFS-Filename: %s", filename.n_path);
954 printf(" NTFS-Filename: %s", filename.n_path);