fs whereis reversed?

Love lha at stacken.kth.se
Fri Sep 24 02:27:34 CEST 1999


Todd Cohen <cohentl at clarkson.edu> writes:

> [cohentl at toad cohentl]$ pwd
> /afs/cu/users/c/o/cohentl
> [cohentl at toad cohentl]$ fs whereis .
> File . is on host 131.1.153.128
> 
> the address is actually 128.153.1.131... whereis displays it backwards..
> is this a known problem?

Yes, it have been up a couple of times. If you apply the folloing patch
fs whereis will work (on both arla and tramsarc, linux/i386)

Love


Index: messages.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/messages.c,v
retrieving revision 1.161
diff -u -w -u -w -r1.161 messages.c
--- messages.c	1999/09/23 22:22:53	1.161
+++ messages.c	1999/09/24 00:17:44
@@ -2150,7 +2150,7 @@
     }
     memset(addresses, 0, sizeof(addresses));
     for (i = 0; (i < e->volume->entry.nServers) && (i < 8); i++)
-	addresses[i] = e->volume->entry.serverNumber[i];
+	addresses[i] = htonl(e->volume->entry.serverNumber[i]);
 
     xfs_send_message_wakeup_data (fd, h->header.sequence_num, error,
 				  addresses, sizeof(long) * 8);





More information about the Arla-drinkers mailing list