Skip to contentSkip to conversation

2.1.126 still no sparc64 autofs

DISCUSSION Rich Sahlender 1 participant 1 message Nov 14, 1998

lore
Share & tools
lore
#0 lore raw

Okay, I finally had time to take a closer look at this. I've found the problem but am not sure what's the best fix.

The linux/include/linux/auto_fs.h file is shared between the autofs.o kernel module and the automount user space daemon and contains the following struct:

struct autofs_packet_missing {
       struct autofs_packet_hdr hdr;
       unsigned long wait_queue_token;
       int len;
       char name[NAME_MAX+1];
};

The problem is that on sparc64 systems the unsigned long generates a 64 bit long for the kernel to use, but the user space automount expects a 32 bit long and is therefore not able to reference the len and name fields properly. I've worked around the problem for now by inserting an unused long before wait_queue_token in the automount build.

I thought about providing a patch for the struct since it looks like 32 bits should be large enough for the token but was then told there are ioctl's which should handle passing data between 32 bit user <-> 64 bit kernel space automatically. I'm getting lost in the code trying to find them but if they exist I guess that's the best place for a fix.

Perhaps Dave M. or Jakub J. will have a look?

Thanks for the great work on the ultrapenguin guys. I'm really loving these ultra's with hme's at 100mb...

Regards,
Rich

Quoted 21 lines · Rich Sahlender

I pulled 2.1.126 from vger this morning and sparc64 autofs still fails.

[root@skater /root]# uname -a
Linux skater 2.1.126 #1 Tue Oct 27 09:59:14 EST 1998 sparc64 unknown [root@skater /root]# automount /home yp auto.home [root@skater /root]#

No error messages when starting automount, but login as normal user with automounted home hangs with following messages in syslog:

Oct 27 10:32:09 skater automount[347]: starting automounter version 0.3.14, path = /home, maptype = yp, mapname = auto.home
Oct 27 10:32:10 skater automount[347]: using kernel protocol version 3
Oct 27 10:35:02 skater automount[347]: attempting to mount entry /home/
Oct 27 10:35:02 skater automount[379]: lookup(yp): lookup for  failed: Request arguments bad
Oct 27 10:35:02 skater automount[347]: AUTOFS_IOC_READY: Invalid argument

Note the "attempting to mount entry /home/"
and "lookup(yp): lookup for failed" messages.
It looks like automount is getting or trying to use a null string instead of the home mount point for this user.