All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.1.126 still no sparc64 autofs
@ 1998-10-27 16:08 Rich Sahlender
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Sahlender @ 1998-10-27 16:08 UTC (permalink / raw)
  To: ultralinux

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

[root@skater /root]# uname -a
Linux skater.micro.lucent.com 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.1.126 still no sparc64 autofs
@ 1998-11-14  4:46 Rich Sahlender
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Sahlender @ 1998-11-14  4:46 UTC (permalink / raw)
  To: ultralinux

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

Rich Sahlender wrote:
> 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.
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-11-14  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-14  4:46 2.1.126 still no sparc64 autofs Rich Sahlender
  -- strict thread matches above, loose matches on Subject: below --
1998-10-27 16:08 Rich Sahlender

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.