lkml.org 
[lkml]   [2004]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: The argument for fs assistance in handling archives


    On Thu, 2 Sep 2004, Spam wrote:

    > Well. wasn't the idea that unless programs specifically tried to
    > open the file-as-dir as a directory it would look like a file?
    >
    > ls -F would show it as file. Or have I understood wrong?

    Yes, otherwise apps that do

    if (S_ISDIR()) {
    ..
    } else if (S_ISREG()) {
    ..
    }

    would behave differently from apps that check the file in
    different order, and they would probably break because in
    a regular fs that order is not important. The goal is to
    keep the semantic changes as hidden as possible for apps
    that don't know about the new features.


    --
    Giuliano.
    -
    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-03-22 14:05    [W:3.096 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site