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

version» Context lines:

Roxen.git/server/modules/filesystems/tarfs.pike:1:   inherit "module";    - constant cvs_version= "$Id: tarfs.pike,v 1.3 2000/09/23 02:05:51 per Exp $"; + constant cvs_version= "$Id: tarfs.pike,v 1.4 2000/09/25 06:29:44 per Exp $";      // The Filesystem.Tar module is not threadsafe.   constant thread_safe=0;      #include <module.h>      constant module_type = MODULE_LOCATION;   constant module_name = "Tarfile system";   constant module_doc =   ("This is a file system module that makes it possible to mount a "
Roxen.git/server/modules/filesystems/tarfs.pike:23:    "system." );       defvar("tarfile", "config_interface/docs.tar",    "Tar file and root path", TYPE_FILE|VAR_INITIAL,    "The tarfile, and an optional root path (syntax: /tar/file.tar:/"    "root/dir/)" );   }      string mp, error_msg;    - // Filesystem.Tar (does not work with 7.0) - object tar; + Filesystem.Tar tar;      void start()   {    string path = "", tf = query( "tarfile" );    mp = query("mountpoint");    sscanf( tf, "%s:%s", tf, path );    tar = 0;    if( catch(tar = Filesystem.Tar( tf )) )    {    report_error( "Failed to open tar-file "+tf+"!" );