UnionFS

UnionFS

UnionFS is a filesystem service for Linux and FreeBSD which implements a union mount for other file systems. It allows files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system. Contents of directories which have the same path within the merged branches will be seen together in a single merged directory, within the new, virtual filesystem.

When mounting branches, the priority of one branch over the other is specified. So when both branches contain a file with the same name, one gets priority over the other.

The different branches may be both "read-only" and "read-write" file systems, so that writes to the virtual, merged copy are directed to a specific real file system. This allows a file system to appear as writeable, but without actually allowing writes to change the file system, also known as copy-on-write. This may be desirable when the media is physically read-only, such as in the case of Live CDs.

Uses

In KNOPPIX, a union between the file system on the CD-ROM or DVD and a file system contained in an image file called "knoppix.img" on a writable drive (such as a USB memory stick) can be made, where the writable drive has priority over the read-only filesystem. This allows the user to change any of the files on the system, with the new file stored in the image and transparently used instead of the one on the CD. [ [http://www.knoppix.net/wiki/Live_CD_Tips#Persistent_Disk_Image Persistant disk image section on knoppix wiki] ]

UnionFS can also be used to create a single common template for a number of file systems, or for security reasons. It is sometimes used as an ad-hoc snapshotting system.

Other implementations

[http://unionfs.filesystems.org/ Unionfs for Linux] has two versions. Version 1.x is a standalone one that can be built as a module. Version 2.x is a newer, redesigned, and reimplemented one. As of January 2007, Unionfs 2.0 has been included into Andrew Morton's Linux "-mm" tree, thus slated for eventual inclusion in the Linux kernel mainline source tree. Version 2.x is the smallest implementation of unioning for Linux, it is heavily tested and inspected by many kernel developers, and it is more efficient.

aufs is an alternative version of unionfs for Linux.

Plan 9 from Bell Labs operating system uses union mounts extensively to build custom namespaces per user/processes. The same concept, implemented as "union mount", has also been available in BSD, since at least 1995 [ [http://www.usenix.org/publications/library/proceedings/neworl/ USENIX 1995 Technical Conference Proceedings] ] .

The GNU Hurd has [http://www.nongnu.org/hurdextras/#unionfs UnionFS] . As of January 2008, it works, but results in a read-only mountpoint.

References

* C. P. Wright et al. (2004). " [http://www.fsl.cs.sunysb.edu/docs/unionfs-tr/unionfs.pdf Versatility and Unix Semantics in a Fan-Out Unification File System] (pdf)." (Discusses UnionFS implementations and semantics.)

External links

* [http://unionfs.filesystems.org/ Official Linux Unionfs home page] (slated for inclusion in the Linux Kernel)
* [https://bugzilla.filesystems.org/ Bugzilla bug database] for Linux Unionfs
* [http://aufs.sourceforge.net/ AuFS] is an alternative unionfs for linux.
* http://podgorny.cz/unionfs-fuse (FUSE (Linux) based implementation of UnionFS)
* [http://funionfs.apiou.org/ FunionFS ] (Another advanced FUSE based implementation of UnionFS with log, control...)
* [http://www.linuxjournal.com/article/7714 Kernel Korner - Unionfs: Bringing Filesystems Together] - article from [http://www.linuxjournal.com LinuxJournal]
* [http://rentzsch.com/macosx/unionFilesystems Union Filesystem] usage on Mac OS X
* [http://people.freebsd.org/~daichi/unionfs/ The new implementation of union fs for FreeBSD]
* [http://www.am-utils.org/docs/zen/zen.html On implementation of a union fs]
* [http://alumnus.caltech.edu/~muresan/projects/lufs_unionfs.html LUFS-based unionfs]
* [http://vserver.13thfloor.at/TBVFS/index.php?page=Linux+Implementations Linux Implementations] - excellent write-up on history of union file systems for Linux


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • UnionFS — es un servicio para sistemas de archivos de Linux que permite montar un sistema de archivos formado por la unión de otros sistemas de archivos de Linux. Permite que archivos y directorios de sistemas de archivos distintos, conocidos como ramas,… …   Wikipedia Español

  • UnionFS — вспомогательная файловая система для Linux и FreeBSD, производящая каскадно объединённое монтирование других файловых систем. Это позволяет файлам и каталогам изолированных файловых систем, известных как ветви, прозрачно перекрываться, формируя… …   Википедия

  • UnionFS — ist ein Dateisystem, welches ursprünglich für das Plan 9 Betriebssystem entwickelt wurde. Es wurde dazu verwendet, Prozessen eigene Namensräume innerhalb der Dateisysteme zuzuweisen. Mittels UnionFS werden die Dateien verschiedener Dateisysteme… …   Deutsch Wikipedia

  • Unionfs — ist ein Dateisystem, welches ursprünglich für das Plan 9 Betriebssystem entwickelt wurde, wo es dazu verwendet wurde, Prozessen eigene Namensräume innerhalb der Dateisysteme zuzuweisen. Mittels UnionFS werden die Dateien verschiedener… …   Deutsch Wikipedia

  • UnionFS — Union File System UnionFS (Union File System) est un service du système de fichiers de Linux qui permet de fusionner plusieurs points de montage appelés branches  : c est un union mount. L utilisation habituelle de ce système est de… …   Wikipédia en Français

  • Unionfs — Union File System UnionFS (Union File System) est un service du système de fichiers de Linux qui permet de fusionner plusieurs points de montage appelés branches  : c est un union mount. L utilisation habituelle de ce système est de… …   Wikipédia en Français

  • Union File System — UnionFS (Union File System) est un service du système de fichiers de Linux qui permet de fusionner plusieurs points de montage appelés branches  : c est un union mount. L utilisation habituelle de ce système est de fusionner une partition… …   Wikipédia en Français

  • Aufs — (AnotherUnionFS) is an alternative version of unionfs, a filesystem service which implements a union mount for Linux file systems. It has been developed by Junjiro Okajima since early 2006 [ [http://aufs.sourceforge.net/History History of the… …   Wikipedia

  • Aufs — (AnotherUnionFS) альтернативная версия UnionFS, вспомогательной файловой системы, образующей каскадно объединённое монтирование для файловых систем Linux. Разработка ведётся Junjiro Okajima с 2006.[1] Aufs полностью переписанный код UnionFS,… …   Википедия

  • Aufs — (Another Unionfs) ist ein Overlay Dateisystem, welches zum (scheinbaren) Schreiben von Daten auf nicht beschreibbaren Datenträgern (wie z. B. CD ROMs und DVDs) benötigt wird. Dazu werden mindestens zwei Dateisysteme übereinander gelegt. Dabei… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”