Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.      // This is a virtual "file-system".   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.      inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.82 2000/05/16 17:18:29 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.83 2000/06/23 16:16:43 mast Exp $";   constant thread_safe=1;      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG
Roxen.git/server/modules/filesystems/filesystem.pike:181:   }         #define FILTER_INTERNAL_FILE(f, id) \    (!id->misc->internal_get && sizeof (filter (QUERY (internal_files), glob, (f/"/")[-1])))      mixed stat_file( string f, RequestID id )   {    array fs;    -  FILESYSTEM_WERR("stat_file for \""+f+"\""); +  FILESYSTEM_WERR("stat_file for \""+f+"\"" + +  (id->misc->internal_get ? " (internal)" : ""));       if (FILTER_INTERNAL_FILE (f, id)) return 0;       if(stat_cache && !id->pragma["no-cache"] &&    (fs=cache_lookup("stat_cache",path+f)))    return fs[0];       object privs;    if (((int)id->misc->uid) && ((int)id->misc->gid) &&    (QUERY(access_as_user))) {
Roxen.git/server/modules/filesystems/filesystem.pike:228:   }      array(string) list_lock_files() {    return QUERY(nobrowse);   }      array find_dir( string f, RequestID id )   {    array dir;    -  FILESYSTEM_WERR("find_dir for \""+f+"\""); +  FILESYSTEM_WERR("find_dir for \""+f+"\"" + +  (id->misc->internal_get ? " (internal)" : ""));       object privs;       if (((int)id->misc->uid) && ((int)id->misc->gid) &&    (QUERY(access_as_user))) {    // NB: Root-access is prevented.    privs=Privs("Getting dir", (int)id->misc->uid, (int)id->misc->gid );    }       if(!(dir = get_dir( decode_path(path + f) ))) {
Roxen.git/server/modules/filesystems/filesystem.pike:415:   }      mixed find_file( string f, RequestID id )   {    TRACE_ENTER("find_file(\""+f+"\")", 0);    object o;    int size;    string tmp;    string oldf = f;    -  FILESYSTEM_WERR("Request for \""+f+"\""); +  FILESYSTEM_WERR("Request for \""+f+"\"" + +  (id->misc->internal_get ? " (internal)" : ""));       string mountpoint = QUERY(mountpoint);       string uri = combine_path(mountpoint + "/" + f, ".");       f = path + f;   #ifdef __NT__    if(f[-1]=='/') f = f[..strlen(f)-2];   #endif    size = FILE_SIZE( f );