lkml.org 
[lkml]   [1999]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectquestion for VFS/dcache experts.
    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.

    Does anyone have a suggestion?

    Thanks,
    Tigran.


    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:54    [W:2.193 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site