Re: bug in nfs in 2.6.18-rc5?



On Thu, 2006-08-31 at 10:54 -0400, Shaya Potter wrote:

__lookup_hash() ends up calling the underlying fs's lookup op, i.e.
nfs_lookup()

nfs_lookup() calls nfs_reval_fsid(nd->mnt, dir, &fhandle, &fattr);

see the bug? :)

This doesn't seem like a unionfs bug, as one should be able to call
lookup_one_len() on an NFS fs.

Did someone start handing out these promises when I wasn't looking?

AFAICS, lookup_one_len() should only be used by the filesystem itself,
or by services like nfsd that have intimate knowledge of the
filesystem's inner workings.

The reason why NFS would like to insist on that nameidata is that we
need to be able to create mountpoints on the fly when we cross from one
filesystem on the server to another. Otherwise, we cannot offer the type
of guarantees that POSIX applications expect, such as the ability to
provide unique permanent inode numbers.
If we're to provide the ability for unionfs to use lookup_one_len() on
NFS, then we will have to error out whenever we hit a case where we
should be creating a new mountpoint. Is that acceptable?

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: bug in nfs in 2.6.18-rc5?
    ... This doesn't seem like a unionfs bug, as one should be able to call lookup_one_lenon an NFS fs. ... The server's nfsd has to tell them apart, otherwise shouldn't give them to the client. ...
    (Linux-Kernel)
  • Re: Network file system like NFS but with login/pass ?
    ... > I would like to know if there is a network file system similar to NFS ... Samba 3 has the ability to carry Unix specific information, ... NFS tunneled over SSH may work? ...
    (comp.os.linux.networking)
  • Re: Pxeboot problem
    ... Bengali wrote: ... rpc.mountd offers the ability to disable specific NFS version ... I think in the kernel from kernel.org the option for nfs3 means nfs2+3. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: [SLE] Basic SAMBA Configuration
    ... Overall I prefer Cygwin, although I've never tried to access or serve NFS shares under Cygwin. ... How would cygwin add NFS to Windows? ... I DO prefer Cygwin for general emulation, both for the range of software available and for its ability to coexist with other Windows software. ...
    (SuSE)
  • Re: NFS or an alternative?
    ... since we will be using mostly Macintosh OS X clients, I am considering using NFS. ... I will need the ability to perform user/group authentication since users may not always log in from the same PC. ... Essentially, each user has a home directory which only they, and possibly their secretary, needs to have access to. ...
    (freebsd-questions)