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 - 1998, 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.58 1999/12/07 22:36:09 mast Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.59 1999/12/18 14:38:57 nilsson 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
Roxen.git/server/modules/filesystems/filesystem.pike:135: 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);   #ifdef FILESYSTEM_DEBUG -  perror("FILESYSTEM: Online at "+QUERY(mountpoint)+" (path="+path+")\n"); +  werror("FILESYSTEM: Online at "+QUERY(mountpoint)+" (path="+path+")\n");   #endif   }      string query_location()   {    return QUERY(mountpoint);   }         mixed stat_file( mixed f, mixed id )
Roxen.git/server/modules/filesystems/filesystem.pike:236:    return dir;       return Array.filter(dir, dir_filter_function);   }         mapping putting = ([]);      void done_with_put( array(object|string) id_arr )   { - // perror("Done with put.\n"); + // werror("Done with put.\n");    object to;    object from;    object id;    string oldf;       [to, from, id, oldf] = id_arr;      #ifdef FILESYSTEM_DEBUG    werror(sprintf("done_with_put(%O)\n"    "from: %O\n",
Roxen.git/server/modules/filesystems/filesystem.pike:266:    id->send_result(http_low_answer(400,    "<h2>Bad Request - "    "Expected more data.</h2>"));    } else {    id->send_result(http_low_answer(200, "<h2>Transfer Complete.</h2>"));    }   }      void got_put_data( array (object|string) id_arr, string data )   { - // perror(strlen(data)+" .. "); + // werror(strlen(data)+" .. ");       object to;    object from;    object id;    string oldf;       [to, from, id, oldf] = id_arr;       // Truncate at end.    data = data[..putting[from]];
Roxen.git/server/modules/filesystems/filesystem.pike:362:      mixed find_file( string f, object id )   {    TRACE_ENTER("find_file(\""+f+"\")", 0);    object o;    int size;    string tmp;    string oldf = f;      #ifdef FILESYSTEM_DEBUG -  roxen_perror("FILESYSTEM: Request for \""+f+"\"\n"); +  werror("FILESYSTEM: Request for \""+f+"\"\n");   #endif /* FILESYSTEM_DEBUG */       string mountpoint = QUERY(mountpoint);       string uri = combine_path(mountpoint + "/" + f, ".");       f = path + f;   #ifdef __NT__    if(f[-1]=='/') f = f[..strlen(f)-2];   #endif