lkml.org 
[lkml]   [2005]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/7] fuse: check directory aliasing in mkdir
    From
    Date
    > > Check the created directory inode for aliases in the mkdir() method.
    >
    >
    > Can't you use d_add_unique() here?

    The patch is checking for hashed aliases of an inode. E.g. if /foo is
    a directory and has a ID of 28, and mkdir /bar returns the same ID,
    then the mkdir should fail.

    It's an illegal for the filesystem to create two directories refering
    to the same inode.

    OTOH d_add_unique() is looking for unhashed aliases to resurrect,
    which may or may not make sense in fuse. I'll think about it a bit
    more.

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

    \
     
     \ /
      Last update: 2005-11-28 21:12    [W:0.018 / U:92.832 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site