Menu

Tree [c85ff2] master v1_1_5 /
 History

HTTPS access


File Date Author Commit
 bzlib 2019-07-21 Ralf Hoffmann Ralf Hoffmann [d63619] update internal bzlib to 1.0.8
 doc 2019-05-26 Ralf Hoffmann Ralf Hoffmann [8989ae] remove LD_PRELOAD support
 extfs 2020-05-02 Ralf Hoffmann Ralf Hoffmann [d267b3] extfs/ulha: set locale to C to avoid encoding p...
 fuse 2012-05-29 Miklos Szeredi Miklos Szeredi [1e7840] - Fix XZ format handling
 glassfs 2004-05-21 mszeredi mszeredi [059c4e] blabla
 include 2022-08-25 Ralf Hoffmann Ralf Hoffmann [24b935] add #avfsstat file for get how often the memlim...
 lib 2010-09-23 Ralf Hoffmann Ralf Hoffmann [e10ac5] bumped library revision to 2
 macros 2010-07-07 Ralf Hoffmann Ralf Hoffmann [2aeb55] added pkg.m4 from pkg-config to macros
 modules 2023-01-29 Ralf Hoffmann Ralf Hoffmann [369784] implement handling of some basic records from e...
 patch 2019-07-21 Ralf Hoffmann Ralf Hoffmann [d63619] update internal bzlib to 1.0.8
 pkgconfig 2019-08-09 Ralf Hoffmann Ralf Hoffmann [c9c8e7] add pkgconfig file
 scripts 2023-02-18 Ralf Hoffmann Ralf Hoffmann [ba311c] adjust mount/umount scripts to export AVFSBASE ...
 spec 2019-05-26 Ralf Hoffmann Ralf Hoffmann [8989ae] remove LD_PRELOAD support
 src 2022-08-25 Ralf Hoffmann Ralf Hoffmann [24b935] add #avfsstat file for get how often the memlim...
 test 2022-08-24 Ralf Hoffmann Ralf Hoffmann [6e15b6] output error description in testread program
 zlib 2015-03-08 Ralf Hoffmann Ralf Hoffmann [5da34f] fixed zlib state saving/restoring when c->sub.c...
 .cvsignore 2007-05-16 mszeredi mszeredi [628512] cvs cleanup
 .gitignore 2019-08-09 Ralf Hoffmann Ralf Hoffmann [389c79] add avfs.pc to gitignore file
 AUTHORS 2010-02-05 mszeredi mszeredi [69fa4b] * It is unnecessary to save state on EOF for zi...
 COPYING 2005-07-20 hoffmannr hoffmannr [2070af] updated COPYING because of new address
 COPYING.LIB 2001-03-01 mszeredi mszeredi [30ed08] Initial revision
 ChangeLog 2023-02-18 Ralf Hoffmann Ralf Hoffmann [c85ff2] bump version to 1.1.5
 Makefile.am 2019-08-09 Ralf Hoffmann Ralf Hoffmann [c9c8e7] add pkgconfig file
 NEWS 2023-02-18 Ralf Hoffmann Ralf Hoffmann [c85ff2] bump version to 1.1.5
 README 2023-02-18 Ralf Hoffmann Ralf Hoffmann [c85ff2] bump version to 1.1.5
 TODO 2019-05-26 Ralf Hoffmann Ralf Hoffmann [8989ae] remove LD_PRELOAD support
 autogen.sh 2005-06-13 hoffmannr hoffmannr [03f3d4] changed build system to automake
 configure.ac 2023-02-18 Ralf Hoffmann Ralf Hoffmann [c85ff2] bump version to 1.1.5

Read Me

What Is AVFS
------------

AVFS is a system, which enables all programs to look inside archived
or compressed files, or access remote files without recompiling the
programs or changing the kernel.

At the moment it supports floppies, tar and gzip files, zip, bzip2, ar
and rar files, ftp sessions, http, webdav, rsh/rcp, ssh/scp. Quite a
few other handlers are implemented with the Midnight Commander's
external FS.

AVFS is (C) under the GNU GPL (see the file COPYING). The shared
library is (C) under the GNU LGPL (see the file COPYING.LIB).

AVFS comes with ABSOLUTELY NO WARRANTY, for details see the file COPYING. 

Where Is The Latest Version
---------------------------

Check out the page

  http://www.inf.bme.hu/~mszeredi/avfs/

or

  http://sourceforge.net/projects/avf

Forms of AVFS
-------------

AVFS can now be installed in four different ways. These are:

 - Fuse
 	With fuse support, systems with 2.6 kernels are able to use avfs.
	The requirements are 
	1) fuse support be compiled into the kernel or fuse modules 
	   loaded.
	2) the fuse package and library >= 2.4 be installed.
	
 - Library
        AVFS can be used as a shared library for programs written to
        utilize AVFS. This is a pure userspace library so it should
        work on any POSIX system.

Using AVFS is very similar in all cases. Differences will be indicated.

The installation method is different. For installation instructions
see the files 'INSTALL.fuse' and 'INSTALL.library' respectively all
located in the doc/ directory.

Using AVFS
----------

These instructions are not for the fuse installation. Please see the file
README.avfs-fuse for details on how these commands are applied.

It is quite simple, you just do everything with the virtual files, as
you would do with real files. Here are some examples:

Listing a tar archive:

  ls -l avfs-0.9.1.tgz#/
  ls -l avfs-0.9.1.tgz#/avfs-0.9.1/

Obtaining information about avfs itself:

  cat /#avfsstat/copyright      - prints copyright information and version
  cat /#avfsstat/modules        - lists available handlers
  cat /#avfsstat/version        - prints version information

'cd' into an archive:

  cd avfs-0.9.1.tgz#/
  less avfs-0.9.1/README

Some more examples: (these are all shell commands, but of course you
could use any program: file manager, browser, editor, etc.)

Unpacking an archive:

  cp -a tarfile.tgz#/dir .
  cp -a zipfile.zip#/* .

Creating an archive:

  mkdir tarfile.tgz#+  
  cp -a dir tarfile.tgz#+/

  Note: The efficiency of this method is not yet the same as the
  'normal' archive creation method, but it should not be more than 2
  times slower.


If something doesn't work, then check the section 'Common Problems'.


Format of an AVFS Path
----------------------

(For a full explanation of the format see the file FORMAT)

As you've seen, the '#' magic character makes a virtual file or
directory from an ordinary file. Actually this is just a shorthand for
the full specification of an AVFS path:

  'tarfile.tgz#' is the same as 'tarfile.tgz#ugz#utar'

Note, the short version will only work if the file-extension is
recognized (most are), but you can always tell exactly what should be
done with the file by using the second method.

There are handlers which do not have a "base" file. The following
handlers are like this: floppy, ftp, rsh, ssh, http, dav, avfsstat,
volatile, rpms, ucftp.

Examples

  /#floppy:a                                 - a: drive
  /#a                                        - a: drive (alias for /#floppy:a)
  /#rsh:otherhost/foo/bar                    - /foo/bar on 'otherhost'
  /#ssh:user@host/dir                        - /dir on 'host', login as 'user'
  /#ftp:ftp.funet.fi/pub/Linux               - anonymous ftp 
  /#ftp:user@host.domain.org/home/xyz/file   - ftp with username 'user'
  /#ftp_ctl:user@host.domain.org/password    - write the password to this file
                                        (ftppass is a nice utility for this)
  /#http:www.inf.bme.hu|~mszeredi|avfs|      - homepage of AVFS
  /#http:ftp:||ftp.funet.fi|pub|Linux        - use HTTP to get an ftp URL
                                        (useful if you use a HTTP-only proxy)
  /#dav:http:host.domain.org/home/           - WebDAV

The environment variable 'http_proxy' is used to set the default value
of the proxy server. You can also set it's value by writing to the file

   /#avfsstat/http_proxy


The following "handlers" are available now:

  name of handler    type of operation      notes
  ---------------    -----------------      -----
  #a                 first floppy drive     alias for #floppy:a
  #avfsstat          meta information       builtin
  #bz2               bzip2                  uses bzip2
  #dav               webdav                 builtin
  #dav_ctl           control dav sessions   
  #floppy            floppy                 uses mtools (mdir, mcopy, ...)
  #ftp               ftp                    builtin
  #ftp_ctl           control ftp sessions   
  #gz                gzip                   uses gzip
  #iso9660           CD/DVD filesystem      no need to use mount -t iso9660!
  #local             local filesysem        only for internal use
  #rsh               rsh/rcp                only works if rsh needs no password
  #ssh               ssh/scp                only works if ssh needs no password
  #uar               un-ar                  builtin
  #ubz2              bunzip2                builtin
  #ubzip2            bunzip2                uses bzip2
  #ucftp             ftp                    builtin (write support, no file cache)
  #ucftp_ctl         control ftp sessions   
  #ugz               gunzip                 builtin (1)
  #ugzip             gunzip                 uses gzip
  #ulzip             unlzip                 builtin
  #urar              unrar                  builtin list + uses rar to extract
  #utar              untar                  builtin
  #uxz               unxz/unlzma            builtin
  #uxze              unxz/unlzma            uses xz
  #uz                uncompress             uses gzip
  #uzip              unzip                  builtin
  #uzstd             uzstd                  builtin
  #uzstde            uzstd                  uses zstd
  #volatile          'memory fs'            mainly for testing
  

(1) With the '-s' option (blala.gz#-s) the gunzip module will use the
size stored at the end of the gzip file.  This will make some
operations on a .gz file much faster, but it isn't usable for huge
(>=4GByte) files, since the size is stored in 32 bits :(.

The following handlers are available through Midnight Commanders
'extfs'. These were not written by me, and could contain security
holes. Nonetheless some of them are quite useful.  For documentation
on these, see the files in /usr/lib/avfs/extfs.

  name of handler    type of operation
  ---------------    -----------------
  #deb               debian packages
  #ftplist           ?
  #hp48              ?
  #lslR              directory tree listings
  #mailfs            ? 
  #patchfs           browse patch files
  #rpm               rpm packages
  #rpms              List of installed rpms
  #trpm              Useful inside #rpms
  #ucpio             cpio archives
  #ulha              lha archives
  #uzoo              zoo archives


Special #avfsstat files
-----------------------

symlink_rewrite: write '1' to it to let it change absolute
  symlinks to relative ones
xz_memlimit: the amount of bytes used for xz decoder
xz_memlimit_hit: the number of occurrences the xz decoder hit
  its memory limit


Writing new modules
-------------------

You want to write a handler module for XY? Great! Please contact me,
and I can give you some advice regarding this.

Credits
-------

David Hanak (dhanak@inf.bme.hu) has contibuted the "rar" and the
"archive" modules, and lots of ideas to AVFS.

The VFS in Midnight Commander, written by Jakub Jelinek and Miguel de
Icaza <miguel@nuclecu.unam.mx>, has greatly helped me write this
library, and will probably continue to do so in the future.

Pavel Machek, who is the current maintainer of Midnight VFS, and who
has contributed lots of ideas and the alien module (which
unfortunately I did not have time to get into shape) to AVFS.  The
'avfscoda' solution grew out of Pavels 'podfuk'. Most of it has been
changed, but the original idea is from Pavel.

Justin Mason <jm-avfs@jmason.org> contributed the dav module.

Koblinger Egmont <egmont@fazekas.hu> has written the "recursive
profile" scripts, set up the mailing list, and also sent me many good
ideas.

The zip and gzip file handler is based on the zlib compression and
decompression library, written by Jean-loup Gailly and Mark Adler.

The bzip2 handler uses the libbzip2 library written by Julian R
Seward.

The tar file handler is based on the GNU tar source, originally
written by John Gilmore.

People, who sent me ideas or bug-reports:
  Jan Niehusmann <jan@gondor.com>
  Demon of the Known Universe <psycho@dodds.net>
  Duncan Pierce <cmrdrp@soc.staffs.ac.uk>
  Scott F. Johnston <scott@fleetingimage.com>
  Larry Riedel <larry@riedel.org>

The Future
----------

I hope AVFS will grow up to be a standard virtual file library, for which
people can write handler modules (or plugins, if you like) for whatever
they want. 

If you think AVFS is a good idea, and you have any comments or suggestions,
please send me an email about them.

Have fun,

Miklos Szeredi <miklos@szeredi.hu>