In message <[EMAIL PROTECTED]>,Loic Tortay writes:
>The volume name requested is really "line noise".

ok.  after looking at the code, i dont see anything obviously wrong
and since other 64-bit platforms dont seem to have a problem i am
forced to think it might be a compiler issue.  can you apply
this to a broken version and let me know what you see.

also, you might try 'fs lsm /afs/whatever' just to see what
it says.

Index: src/afs/afs_volume.c
===================================================================
RCS file: /cvs/openafs/src/afs/afs_volume.c,v
retrieving revision 1.28
diff -u -u -r1.28 afs_volume.c
--- src/afs/afs_volume.c        13 Oct 2005 15:12:07 -0000      1.28
+++ src/afs/afs_volume.c        10 Nov 2005 14:54:41 -0000
@@ -536,7 +536,7 @@
 
 
 struct volume *
-afs_GetVolumeByName(register char *aname, afs_int32 acell, int agood,
+afs_GetVolumeByName(char *aname, afs_int32 acell, int agood,
                    struct vrequest *areq, afs_int32 locktype)
 {
     afs_int32 i;
Index: src/afs/afs_prototypes.h
===================================================================
RCS file: /cvs/openafs/src/afs/afs_prototypes.h,v
retrieving revision 1.68
diff -u -u -r1.68 afs_prototypes.h
--- src/afs/afs_prototypes.h    4 Aug 2005 19:53:30 -0000       1.68
+++ src/afs/afs_prototypes.h    10 Nov 2005 14:54:41 -0000
@@ -1056,7 +1056,7 @@
 extern struct volume *afs_GetVolume(struct VenusFid *afid,
                                    struct vrequest *areq,
                                    afs_int32 locktype);
-extern struct volume *afs_GetVolumeByName(register char *aname,
+extern struct volume *afs_GetVolumeByName(char *aname,
                                          afs_int32 acell, int agood,
                                          struct vrequest *areq,
                                          afs_int32 locktype);
Index: src/afs/VNOPS/afs_vnop_lookup.c
===================================================================
RCS file: /cvs/openafs/src/afs/VNOPS/afs_vnop_lookup.c,v
retrieving revision 1.68
diff -u -u -r1.68 afs_vnop_lookup.c
--- src/afs/VNOPS/afs_vnop_lookup.c     15 Oct 2005 02:32:09 -0000      1.68
+++ src/afs/VNOPS/afs_vnop_lookup.c     10 Nov 2005 14:54:41 -0000
@@ -79,6 +79,8 @@
     /* Determine which cell and volume the mointpoint goes to */
     type = avc->linkData[0];   /* '#'=>Regular '%'=>RW */
     cpos = afs_strchr(&avc->linkData[1], ':'); /* if cell name present */
+printf("avc->linkData %s\n", avc->linkData);
+printf("cpos %s\n", cpos);
     if (cpos) {
        volnamep = cpos + 1;
        *cpos = 0;
@@ -88,6 +90,7 @@
        volnamep = &avc->linkData[1];
        tcell = afs_GetCell(avc->fid.Cell, READ_LOCK);
     }
+printf("volnamep %s\n", volnamep);
     if (!tcell)
        return ENODEV;
 

_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to