Jump to content

Union mount

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 77.94.137.195 (talk) at 15:01, 19 March 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A union mount is a way of mounting that allows several filesystems or directories to be simultaneously mounted and visible through a single mount point, appearing to be one filesystem.[1] Rather than mounting each filesystem at a different place in the directory hierarchy, a union mount overlays the filesystems, creating a unified hierarchy. Thus, any given directory (or "folder") in the resulting filesystem may contain files and subdirectories from any or all of the underlying filesystems.[2][3][4][5]

Union mounts are usually implemented through union filesystems, such as UnionFS and AUFS. Generally, one of the constituent directories or filesystems will be treated as read-write, while other directories or filesystems are treated as read-only. If changes are written by applications to the union filesystem, they are recorded in the writeable overlay. As such, union mounts are frequently used by Live CDs.

Union mounts were invented circa 1990, appearing in 4.4BSD-Lite; the authors of the BSD implementation cite previous work on the 3-d filesystem and the Translucent File System (TFS) done at Bell Labs and Sun, respectively.[1] They are also a central concept in Plan 9, which replaces several Unix staples with union mounts (e.g., several directories unioned together at a single /bin directory replace the PATH variable).[6]

Similarly, GlusterFS offers a possibility to mount different filesystems distributed across a network, rather than being located on the same machine.[7]

Modern Live USB installations with persistent files implement the union mount with OverlayFS.

References

  1. ^ a b Pendry, Jan-Simon; Marshall Kirk McKusick (December 1995). "Union Mounts in 4.4BSD-Lite". Proceedings of the USENIX Technical Conference on UNIX and Advanced Computing Systems: 25–33. Retrieved 25 November 2007.
  2. ^ Wright, Charles P.; Jay Dave; Puja Gupta; Harikesavan Krishnan; Erez Zadok; Mohammad Nayyer Zubair. "Versatility and Unix Semantics in a Fan-Out Unification File System". Stony Brook University Technical Report FSL-04-01b. Retrieved 25 November 2007.
  3. ^ Aurora, Valerie; Henson (March 2009). "Unioning file systems: Architecture, features, and design choices". lwn.net. Retrieved 21 December 2009.
  4. ^ Aurora, Valerie; Henson (March 2009). "Union file systems: Implementations, part I". lwn.net. Retrieved 21 December 2009.
  5. ^ Aurora, Valerie; Henson (April 2009). "Unioning file systems: Implementations, part 2". lwn.net. Retrieved 21 December 2009.
  6. ^ Pike, R.; Presotto, D.; Thompson, K.; Trickey, H.; Winterbottom, P. "The Use of Name Spaces in Plan 9". Bell Labs. cat-v.org. Retrieved 5 December 2011. {{cite web}}: External link in |publisher= (help)
  7. ^ "About GlusterFS". November 2009. Retrieved 4 March 2013. {{cite journal}}: Cite journal requires |journal= (help)