* NFS to Irix server broken again in 2.4.9
@ 2001-09-04 16:40 Mikko Huhtala
2001-09-04 19:07 ` David Rees
0 siblings, 1 reply; 4+ messages in thread
From: Mikko Huhtala @ 2001-09-04 16:40 UTC (permalink / raw)
To: linux-kernel
Don't know if this is well-known already. The 2.4.9 kernel NFS client
does not see all files/directories mounted from an Irix 6.5 NFS server
(the 32/64-bit cookie problem). Changing NFS versions from 3 to 2 does
not help. 2.4.8 client works for me, but the problem is apparently
back in 2.4.9. I am running 2.4.9 with MOSIX 1.3.0 patches, but I do
not think that those are the cause of the problem.
Mikko Huhtala
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS to Irix server broken again in 2.4.9
2001-09-04 16:40 NFS to Irix server broken again in 2.4.9 Mikko Huhtala
@ 2001-09-04 19:07 ` David Rees
2001-09-04 20:03 ` Trond Myklebust
0 siblings, 1 reply; 4+ messages in thread
From: David Rees @ 2001-09-04 19:07 UTC (permalink / raw)
To: linux-kernel
On Tue, Sep 04, 2001 at 07:40:10PM +0300, Mikko Huhtala wrote:
>
> Don't know if this is well-known already. The 2.4.9 kernel NFS client
> does not see all files/directories mounted from an Irix 6.5 NFS server
> (the 32/64-bit cookie problem). Changing NFS versions from 3 to 2 does
> not help. 2.4.8 client works for me, but the problem is apparently
> back in 2.4.9. I am running 2.4.9 with MOSIX 1.3.0 patches, but I do
> not think that those are the cause of the problem.
As far as I know, this has been broken for quite a while. You need to apply
the patches at http://www.fys.uio.no/~trondmy/src/ (specifically the seekdir
patch), as well as supply the 32bitclients option to the IRIX NFS server in
2.4.9. Previous 2.4.X kernels didn't require the 32bitclients option on the
IRIX server for some reason.
After doing both of these things, everything appears to work properly over
here in my testing.
-Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS to Irix server broken again in 2.4.9
2001-09-04 19:07 ` David Rees
@ 2001-09-04 20:03 ` Trond Myklebust
2001-09-04 20:20 ` David Rees
0 siblings, 1 reply; 4+ messages in thread
From: Trond Myklebust @ 2001-09-04 20:03 UTC (permalink / raw)
To: David Rees; +Cc: linux-kernel
>>>>> " " == David Rees <dbr@greenhydrant.com> writes:
> Previous 2.4.X kernels didn't require the 32bitclients option
> on the IRIX server for some reason.
That was because prior to 2.4.9 the kernel would automatically
truncate the getdents() offsets to 32 bits. We now have true 64 bit
offsets, and they actually get passed back to userland.
glibc-2.x's 32 bit version of readdir() still assumes that
getdents64() syscall returns some an offset (rather than a cookie) and
that the offset fits into 32bits on ordinary directories.
Using '32bitclients' on these older IRIX servers sort of shoehorns
them into the glibc assumptions in the same way the 32 bit truncation
in kernels 2.4.[0-8] did.
Cheers,
Trond
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS to Irix server broken again in 2.4.9
2001-09-04 20:03 ` Trond Myklebust
@ 2001-09-04 20:20 ` David Rees
0 siblings, 0 replies; 4+ messages in thread
From: David Rees @ 2001-09-04 20:20 UTC (permalink / raw)
To: Trond Myklebust; +Cc: linux-kernel
On Tue, Sep 04, 2001 at 10:03:43PM +0200, Trond Myklebust wrote:
> >>>>> " " == David Rees <dbr@greenhydrant.com> writes:
>
> > Previous 2.4.X kernels didn't require the 32bitclients option
> > on the IRIX server for some reason.
>
> That was because prior to 2.4.9 the kernel would automatically
> truncate the getdents() offsets to 32 bits. We now have true 64 bit
> offsets, and they actually get passed back to userland.
>
> glibc-2.x's 32 bit version of readdir() still assumes that
> getdents64() syscall returns some an offset (rather than a cookie) and
> that the offset fits into 32bits on ordinary directories.
> Using '32bitclients' on these older IRIX servers sort of shoehorns
> them into the glibc assumptions in the same way the 32 bit truncation
> in kernels 2.4.[0-8] did.
Hmm, the the server I'm running is IRIX 6.5.12 which isn't that old. IRIX
6.5.13 was only released a little while ago (with some specific IRIX/Linux
NFS fixes according to the changelog) so I assume that with 6.5.13 we won't
need the 32bitclients options.
Thanks for the info.
-Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-04 20:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-04 16:40 NFS to Irix server broken again in 2.4.9 Mikko Huhtala
2001-09-04 19:07 ` David Rees
2001-09-04 20:03 ` Trond Myklebust
2001-09-04 20:20 ` David Rees
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox