[lkml]   [2004]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: silent semantic changes with reiser4

    On Thu, 26 Aug 2004, Martin J. Bligh wrote:
    > What would "test -d" and "test -f" return on these magic beasties? I can't
    > think of any combinations that wouldn't confuse the crap out of userspace.

    "It's a feature".

    The S_ISDIR/S_ISREG tests show real information: it shows not only user
    intent ("you should consider this a file, even if it has attributes"), but
    also whether it is a directory or a container.

    And there's a real technical difference there: the streams contained
    within a file are bound to that file. The files contained within a
    directory are _independent_ of that directory. Big difference. HUGE

    So it's not confusing. If it tests as a file, you think of it as a file.
    It may have attributes aka named streams associated with it, and you may
    be able to open those attributes by treating the file as a directory, but
    that doesn't really change the fact that it's a file.

    The _big_ difference is that when you can make the compound object _look_
    like a directory, that means that you can now manage the attributes with
    standard tools. They are still attributes, though.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.021 / U:24.852 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site