|Stable release||1.26.2 / November 9, 2015|
|Type||abstraction layer for the files system|
GVfs (abbreviation for GNOME Virtual file system) is GNOME's userspace virtual filesystem designed to work with the I/O abstraction of GIO, a library available in GLib since version 2.15.1. It installs several modules that are automatically used by applications using the APIs of libgio. There is also FUSE support that allows applications not using GIO to access the GVfs filesystems.
The GVfs model differs from e.g. GnomeVFS, which it replaces, in that file systems must be mounted before they are used. There is a master daemon (
gvfsd) that handles coordinating mounts, and then each mount is (typically) in its own daemon process (although mounts can share daemon process).
GVfs also contains modules for GIO that implement volume monitors and the GNOME URI scheme handler configuration.
There is a set of command line programs starting with "gvfs-" that lets you run commands (like cat, ls, stat, etc.) on files in the GVfs mounts.
Attached resources are exposed via a URI syntax, for example smb://server01/gamedata or ftp://username:firstname.lastname@example.org/public_html, but are also mounted in the traditional manner under
$XDG_RUNTIME_DIR/gvfs directory to make them available to applications using standard POSIX commands and I/O.
- a shared library which is loaded by applications supporting GIO
- GVfs itself, which contains a collection of daemons which communicate with each other and the GIO module over D-Bus.
A collection of command-line utilities (such as gvfs-mount, gvfs-less) works with VFS resources.
GVfs uses libgphoto2 to expose on-camera photos to GNOME applications via a virtual filesystem.
GVfs uses udisks2. The gvfs-udisks2-volume-monitor process is responsible for the disks, media, mounts and fstab entries shown in the desktop user interface. In particular, the Desktop Shell (gnome-shell), the Files application (nautilus) as well as any other application using the GLib APIs, is using information from this process.
Devices connected over eSATA or USB are supposed to be hot-pluggable. When a device is added or removed from the computer system, the Linux kernel notices and sends out an event.
Systemd-udevd responds to this kind of events according to its quite comprehensive configuration. It dynamically creates and removes device nodes from the
/dev filesystem, handles hotplug events and loads drivers at boot time. In case of a storage device systemd-udevd notifies
The udisks2 daemon
udisksd serves as an interface to system block devices, implemented via D-Bus. It handles operations such as querying, mounting, unmounting, formatting, or detaching storage devices such as hard disks or USB thumb drives. This package also provides the
udisksctl utility, which can be used to trigger these operations from the command line (if permitted by PolicyKit).
- "GNOME git repository of GVfs".
- GNOME 2.22 Release Notes, 6.1: GVfs and GIO
- "Man page: gvfsd-fuse"
- gvfs status report, Alexander Larsson, mail.gnome.org, February 15, 2007
- GnomeVFS shortcomings
- "Using GNOMEvfs to manipulate files", Linux.com
- gvfs-mount, man page
- "filelist of gvfs-daemons package".
- "filelist of udisks2 package".
- David Zeuthen (2014-05-28). "Modern Mounting with Udisks2".