[OpenAFS-devel] problem in volinfo

Neulinger, Nathan R. nneul@umr.edu
Fri, 16 Mar 2001 12:56:47 -0600


In working on modifying volinfo to be able to generate vos dump type output,
I found that it has some core dump issues at least on linux.

Applying the following change corrects the problem for me, but might not be
the best fix.

Index: vol-info.c
===================================================================
RCS file: /cvs/openafs/src/vol/vol-info.c,v
retrieving revision 1.2
diff -u -r1.2 vol-info.c
--- vol-info.c  2000/11/04 10:06:26     1.2
+++ vol-info.c  2001/03/16 18:54:55
@@ -730,6 +730,8 @@
                    continue;
                }
                sprintf(nfile, "TmpInode.%s", PrintInode(NULL, ino));
+               printf("About to copy inode %d to file %s...\n",
+                      (int) ino, nfile);
                ofd = open(nfile, O_CREAT | O_RDWR | O_TRUNC, 0600);
                if (ofd < 0) {
                    printf("Can't create file %s; error %d (ignored)\n",
nfile, errno);
@@ -766,7 +768,7 @@
                IH_RELEASE(ih1);
                close(ofd);
                printf("... Copied inode %d to file %s (%d bytes)\n",
-                      ino, nfile, total);
+                      (int) ino, nfile, total);
            }
        } else {
            PrintVnode(offset, vnode,



------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216