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 - 1999, Idonex AB.      // 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 "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.61 1999/12/28 03:12:21 nilsson Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.62 2000/01/06 22:34:11 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:113:    "server.");       defvar("check_auth", 1, "Require authentication for modification",    TYPE_FLAG,    "Only allow authenticated users to use methods other than "    "GET and POST. If unset, this filesystem will be a _very_ "    "public one (anyone can edit files located on it)");       defvar("stat_cache", 0, "Cache the results of stat(2)",    TYPE_FLAG|VAR_MORE, -  "This can speed up the retrieval of files up to 60/70% if you" -  " use NFS, but it does use some memory."); +  "This can speed up the retrieval of files up to 60/70% if you " +  "use NFS, but it does use some memory.\n" +  "<p>Also note that the cached results are only rechecked when the " +  "file is fetched with the no-cache pragma (produced e.g. by " +  "Alt-Ctrl-Reload in Netscape) and when the module is reloaded. " +  "Thus, it's not recommended to use this on filesystems that " +  "change a lot, e.g. where users are allowed to upload.");       defvar("access_as_user", 0, "Access file as the logged in user",    TYPE_FLAG|VAR_MORE,    "EXPERIMENTAL. Access file as the logged in user.<br>\n"    "This is useful for eg named-ftp.");       defvar("no_symlinks", 0, "Forbid access to symlinks", TYPE_FLAG|VAR_MORE,    "EXPERIMENTAL.\n"    "Forbid access to paths containing symbolic links.<br>\n"    "NOTE: This can cause *alot* of lstat system-calls to be performed "
Roxen.git/server/modules/filesystems/filesystem.pike:144: Inside #if defined(THREADS)
  #ifdef THREADS    if(QUERY(access_as_user))    report_warning("It is not possible to use 'Access as user' when "    "running with threads. Remove -DENABLE_THREADS from "    "the start script if you really need this function\n");   #endif       path = QUERY(searchpath);    stat_cache = QUERY(stat_cache);    FILESYSTEM_WERR("Online at "+QUERY(mountpoint)+" (path="+path+")"); +  cache_expire("stat_cache");   }      string query_location()   {    return QUERY(mountpoint);   }         mixed stat_file( mixed f, mixed id )   {