GVfs
   HOME

TheInfoList



OR:

GVfs (abbreviation for GNOME virtual file system) is
GNOME A gnome () is a mythological creature and diminutive spirit in Renaissance magic and alchemy, introduced by Paracelsus in the 16th century and widely adopted by authors, including those of modern fantasy literature. They are typically depict ...
's userspace virtual filesystem designed to work with the I/O abstraction of GIO, a library available in
GLib GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since ...
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. A cause of confusion is the fact that the file system abstraction used by the
Linux kernel The Linux kernel is a Free and open-source software, free and open source Unix-like kernel (operating system), kernel that is used in many computer systems worldwide. The kernel was created by Linus Torvalds in 1991 and was soon adopted as the k ...
is also called the
virtual file system A virtual file system (VFS) or virtual filesystem switch is an abstract layer on top of a more concrete file system. The purpose of a VFS is to allow client applications to access different types of concrete file systems in a uniform way. A VFS ...
(VFS) layer. This is however at a lower level. 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 comes with a set of back-ends, including trash support, SFTP,
FTP The File Transfer Protocol (FTP) is a standard communication protocol used for the transfer of computer files from a server to a client on a computer network. FTP is built on a client–server model architecture using separate control and dat ...
,
WebDAV WebDAV (Web Distributed Authoring and Versioning) is a set of extensions to the Hypertext Transfer Protocol (HTTP), which allows user agents to collaboratively author contents ''directly'' in an HTTP web server by providing facilities for conc ...
, SMB, and local data via
Udev udev (userspace ) is a device manager for the Linux kernel. As the successor of devfsd and hotplug, udev primarily manages device nodes in the directory. At the same time, udev also handles all user space events raised when hardware devices ...
integration,
OBEX The obex () is the point in the human brain at which the fourth ventricle narrows to become the central canal of the spinal cord. Cerebrospinal fluid can flow from the fourth ventricle into the obex. In anatomical studies, the obex has been fo ...
, MTP and others. GVfs does not seem to support the
Files transferred over shell protocol Files transferred over Shell protocol (FISH) is a network protocol that uses Secure Shell (SSH) or Remote Shell (RSH) to transfer files between computers and manage remote files. The advantage of FISH is that all it requires on the server-side ...
(FISH). GVfs also contains modules for GIO that implement volume monitors and the GNOME URI scheme handler configuration. There is a set of arguments to the command line program "gio" that lets you run commands (like cat, ls, stat, mount, etc.) on files in the GVfs mounts. Attached resources are exposed via a URI syntax, for example smb://server01/gamedata or , but are also
mounted Mount is often used as part of the name of specific mountains, e.g. Mount Everest. Mount or Mounts may also refer to: Places * Mount, Cornwall, a village in Warleggan parish, England * Mount, Perranzabuloe, a hamlet in Perranzabuloe parish, Co ...
in the traditional manner under ~/.gvfs/ or /run/user/$UID/gvfs or $XDG_RUNTIME_DIR/gvfs directory to make them available to applications using standard
POSIX The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
commands and I/O.


Technical details

Along with generally useful APIs such as networking and D-Bus support, GIO also provides a VFS API to applications. GVfs provides implementations that go beyond that and allow to access files and storage using many protocols. GVfs provides implementations for various network file systems as loadable modules. Additionally GVfs also provides support for trash, network or recent folders, for CD burning and for monitoring interesting devices and volumes on the computer. The goal of GVfs has been to overcome the shortcomings of GnomeVFS and provide an API that is so good that developers prefer it over raw POSIX calls. Among other things that means using GObject. It also means not cloning the POSIX API, but providing higher-level, document-centric interfaces. GTK can directly use it, e.g. in the filechooser. Applications use GVfs indirectly, by means of GIO loading the GVfs module that implements the GIO extension points. The GVfs main daemon gvfsd spawns further mount daemons for each individual connection. The GVfs support for volume monitoring is included in a separate loadable module. The actual GVfs implementation is distributed over a number of processes. GVfs can use FUSE to mount its VFS directly onto the filesystem. It consists of two parts: # a shared library which is loaded by applications supporting GIO # GVfs itself, which contains a collection of
daemon A demon is a malevolent supernatural being, evil spirit or fiend in religion, occultism, literature, fiction, mythology and folklore. Demon, daemon or dæmon may also refer to: Entertainment Fictional entities * Daemon (G.I. Joe), a character ...
s which communicate with each other and the GIO module over
D-Bus D-Bus (short for "Desktop Bus") is a message-oriented middleware mechanism that allows communication between multiple Process (computing), processes running concurrently on the same machine. D-Bus was developed as part of the freedesktop.org pro ...
. A collection of command-line utilities (such as gvfs-mount, gvfs-less) works with VFS resources. * https://developer.gnome.org/gio/stable/ch01.html#gvfs-overview Please refer to https://wiki.gnome.org/Projects/gvfs/backends for the official documentation.


Hot plugging

Devices connected over eSATA or USB are (supposed to be) physically hot-pluggable. When a device is physically connected to or physically removed from the computer system, the
Linux kernel The Linux kernel is a Free and open-source software, free and open source Unix-like kernel (operating system), kernel that is used in many computer systems worldwide. The kernel was created by Linus Torvalds in 1991 and was soon adopted as the k ...
notices and sends out an event to user-space. systemd-udevd receives such events and responds to them according to its quite comprehensive configuration: * manages the special file system devfs mounted to /dev, hence systemd-udevd dynamically creates and removes device nodes from /dev, it also loads drivers as necessary at boot time * in case of a block device systemd-udevd notifies udisksd, and gvfsd and gvfs-udisks2-volume-monitor. 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).


Packaging

In
Debian Debian () is a free and open-source software, free and open source Linux distribution, developed by the Debian Project, which was established by Ian Murdock in August 1993. Debian is one of the oldest operating systems based on the Linux kerne ...
the GVfs is packaged into four packages
gvfsgvfs-daemonsgvfs-bin
an
gvfs-backends


See also

* GNOME Files, the file manager for
GNOME A gnome () is a mythological creature and diminutive spirit in Renaissance magic and alchemy, introduced by Paracelsus in the 16th century and widely adopted by authors, including those of modern fantasy literature. They are typically depict ...
desktops, allows users to interact with GVfs filesystems *
Thunar Thunar is a file manager for Linux and other Unix-like systems, initially written using the GTK+ 2 toolkit and later ported to the GTK+ 3 toolkit. It started to ship with Xfce in version 4.4 RC1 and later. Thunar is developed by Benedikt Meur ...
, the file manager for the Xfce desktop environment, also provides filesytem abstraction using the GVfs library *
KIO KIO (KDE Input/Output) is a system library incorporated into KDE Frameworks and KDE Software Compilation 4. It provides access to files, web sites and other resources through a single consistent API. Applications, such as Konqueror and Dolph ...
, a similar facility for
KDE KDE is an international free software community that develops free and open-source software. As a central development hub, it provides tools and resources that enable collaborative work on its projects. Its products include the KDE Plasma gra ...
systems * Archivemount, a virtual filesystem implementation specifically for accessing
archive An archive is an accumulation of historical records or materials, in any medium, or the physical facility in which they are located. Archives contain primary source documents that have accumulated over the course of an individual or organ ...
files


References


External links

* {{DEFAULTSORT:Gvfs Applications using D-Bus GNOME Software that uses Meson