Re: question for VFS/dcache experts.

Alexander Viro (viro@math.psu.edu)
Mon, 25 Oct 1999 05:02:58 -0400 (EDT)


On Mon, 25 Oct 1999, Tigran Aivazian wrote:

> Hello,
>
> Does the lookup() method for a filesystem need to add negative dentry for
> the case when filename is too long or should it d_add() a negative dentry
> (inode=NULL).
>
> Minix adds negative dentry by making minix_find_entry() fail and
> effectively doing d_add(dentry, NULL) and returning NULL.
>
> Ext2 returns ERR_PTR(-ENAMETOOLONG) from ext2_lookup().
>
> Which one is right? If I knew dcache internals well enough I would be able
> to make the right decision.

ext2. Minix should do the same unless you are asking it to truncate the
names (in which case there is no such thing as too long name, indeed).

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