Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

UnionFS

From Wikipedia, the free encyclopedia
Filesystem service for Linux

Unionfs
Developer(s)Open source community
Full nameUnification File System
Features
File system
permissions
POSIX
Transparent
compression
No
Transparent
encryption
No (but can be provided at the block device level)
Other
Supported
operating systems
Linux,FreeBSD andNetBSD
Websiteunionfs.filesystems.org

Unionfs is a filesystem service forLinux,FreeBSD andNetBSD which implements aunion mount for otherfile 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 eitherread-only orread/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 writable, but without actually allowing writes to change the file system, also known ascopy-on-write. This may be desirable when the media is physically read-only, such as in the case ofLive CDs.

Unionfs was originally developed by Erez Zadok and his team atStony Brook University.[1][2][3]

Uses

[edit]

InKnoppix, a union between the file system on theCD-ROM orDVD and a file system contained in an image file calledknoppix.img (knoppix-data.img for Knoppix 7) on a writable drive (such as aUSB 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.[4]

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 anad hocsnapshotting system.

Docker uses file systems inspired by Unionfs, such asAufs, to layer Docker images. As actions are done to a base image, layers are created and documented, such that each layer fully describes how to recreate an action. This strategy enables Docker's lightweight images, as only layer updates need to be propagated (compared to full VMs, for example).[5]

UbuntuLTSP, the Linux Terminal Server Project implementation for Ubuntu, uses Unionfs when PXE booting thin or thick clients.[6]

Other implementations

[edit]

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.

aufs is an alternative version of unionfs.[7]

overlayfs written by Miklos Szeredi has been used in OpenWRT and considered by Ubuntu and has been merged into the mainline Linux kernel on 26 October 2014[8] after many years of development and discussion[9] for version 3.18 of the kernel.

unionfs-fuse is an independent project, implemented as auser space filesystem program, instead of a kernel module or patch. Like Unionfs, it supports copy-on-write and read-only or read–write branches.[10]

ThePlan 9 from Bell Labs operating system usesunion mounts extensively to build customnamespaces per user or processes.

Union mounts have also been available inBSD since at least 1995.[11]

TheGNU Hurd has an implementation of Unionfs.[12] As of January 2008, it works, but results in a read-only mount-point.

mhddfs works like Unionfs but permits balancing files over drives with the most free space available. It is implemented as a user space filesystem.

mergerfs is a FUSE based union filesystem which offers multiple policies for accessing and writing files as well as other advanced features (xattrs, managing mixed RO and RW drives, link CoW, etc.).[13]

Sun Microsystems introduced the first implementation of a stacked, layered file system with copy-on-write, whiteouts (hiding files in lower layers from higher layers), etc. as theTranslucent File Service inSunOS 3, circa 1986.[14]

JailbreakMe 3.0, a tool forjailbreaking iOS devices released in July 2011, uses unionfs techniques to speed up the installation process of the operating system modification.[15]

See also

[edit]

References

[edit]
  1. ^Wright, Charles P.; Zadok, Erez (December 2004)."Kernel Korner: Unionfs: Bringing Filesystems Together".Linux Journal.2004 (128): 8.ISSN 1075-3583.
  2. ^"Git server of File systems and Storage Lab".Stony Brook University. Archived fromthe original on 17 June 2016. Retrieved17 July 2017.Project: unionfs-3.9.y.git; Owner: Erez Zadok
  3. ^"File systems and Storage Lab: CS Department".Stony Brook University.Lab Coordinator and Principal Investigator: Prof. Erez Zadok
  4. ^Schulz, Werner P. (15 December 2016)."Hard drive Installation: UNIONFS".Knoppix. Retrieved17 July 2017.
  5. ^"Docker overview: Union file systems".Docker, Inc. 13 July 2017. Retrieved17 July 2017.
  6. ^Georgopoulos, Alkis (24 December 2010)."UbuntuLTSP/LTSPWithoutNFS". Archived fromthe original on 27 April 2014. Retrieved17 July 2017.
  7. ^"aufs Homepage". 2 July 2017. Retrieved17 July 2017.
  8. ^Torvalds, Linus (26 October 2014)."overlayfs merge + leak fix for d_splice_alias() failure exits". Retrieved17 July 2017.
  9. ^Corbet, Jonathan (15 June 2011)."Debating overlayfs". Retrieved17 July 2017.
  10. ^Podgorny, Radek (21 November 2016)."unionfs-fuse – A userspace unionfs implementation".GitHub. Retrieved17 July 2017.
  11. ^Pendry, Jan-Simon; McKusick, Marshall Kirk (January 1995)."Union Mounts in 4.4BSD-Lite".USENIX 1995 Technical Conference Proceedings. Retrieved17 July 2017.
  12. ^Schwinge, Thomas (26 February 2014)."unionfs".GNU Hurd. Retrieved17 July 2017.
  13. ^"trapexit/mergerfs".GitHub. Retrieved21 October 2018.
  14. ^Sun/Release 3.0. Vol. 1. Interleaf Technical Publishing. 1988. pp. 15‑1–18, 16‑1–19.
  15. ^Imran, Awais (19 June 2011)."Comex Working on Faster Jailbreaking Process for JailbreakMe 3.0; iPad 2 Jailbreak Coming Soon!". Redmond Pie. Retrieved17 July 2017.

External links

[edit]
  • ZIPsFS onGitHub - FUSE-based union file system which transparently expands ZIP files
Disk and
non-rotating
Optical disc
Flash memory andSSD
host-sidewear leveling
Distributed parallel
NAS
Specialized
Pseudo
Encrypted
Types
Features
Access control
Interfaces
Lists
Layouts
Retrieved from "https://en.wikipedia.org/w/index.php?title=UnionFS&oldid=1317813679"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp