2002-10-01 17:40:23 +04:00
|
|
|
.\" $NetBSD: mount_overlay.8,v 1.6 2002/10/01 13:40:42 wiz Exp $
|
2000-01-20 22:22:08 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1992, 1993, 1994
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software donated to Berkeley by
|
|
|
|
.\" John Heidemann of the UCLA Ficus project.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)mount_null.8 8.6 (Berkeley) 5/1/95
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.Dd January 18, 2000
|
|
|
|
.Dt MOUNT_OVERLAY 8
|
2001-06-05 15:22:41 +04:00
|
|
|
.Os
|
2000-01-20 22:22:08 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm mount_overlay
|
|
|
|
.Nd mount an overlay filesystem;
|
|
|
|
demonstrate the use of an overlay file system layer
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm ""
|
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ar /overlay
|
|
|
|
.Ar mount-point
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command creates an
|
|
|
|
overlay layer, interposing the overlay filesystem between the over-mounted
|
|
|
|
file store and future pathname lookups.
|
|
|
|
.Pp
|
|
|
|
A different device number for the virtual copy is returned by
|
|
|
|
.Xr stat 2 ,
|
|
|
|
but in other respects it is indistinguishable from the original.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
filesystem differs from the null filesystem in that the
|
|
|
|
.Nm
|
|
|
|
filesystem does not replicate the sub-tree, it places itself between
|
|
|
|
the sub-tree and all future access.
|
|
|
|
.Pp
|
|
|
|
The overlay layer has two purposes.
|
2000-01-21 02:59:46 +03:00
|
|
|
First, it serves as a demonstration of layering by providing a layer
|
|
|
|
which does nothing other than insert itself over the over-mounted
|
|
|
|
file system.
|
2000-01-20 22:22:08 +03:00
|
|
|
Second, the overlay layer can serve as a prototype layer.
|
|
|
|
Since it provides all necessary layer framework,
|
2000-01-21 02:59:46 +03:00
|
|
|
new file system layers which need to block access to the overlayed
|
2001-06-07 17:58:23 +04:00
|
|
|
file system can be created very easily by starting
|
2000-01-20 22:22:08 +03:00
|
|
|
with an overlay layer.
|
|
|
|
.Pp
|
|
|
|
The internal operation of the overlay layer is identical to that of the
|
2002-10-01 17:40:23 +04:00
|
|
|
null layer.
|
|
|
|
See its documentation for details.
|
2000-01-20 22:22:08 +03:00
|
|
|
.Sh SEE ALSO
|
2000-07-30 14:41:29 +04:00
|
|
|
.Xr mount 8 ,
|
2000-01-20 22:22:08 +03:00
|
|
|
.Xr mount_null 8
|
|
|
|
.sp
|
|
|
|
UCLA Technical Report CSD-910056,
|
|
|
|
.Em "Stackable Layers: an Architecture for File System Development" .
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Nx 1.5 .
|