summaryrefslogtreecommitdiffstats
path: root/sbin/mount_null
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-07-06 07:17:27 +0000
committercharnier <charnier@FreeBSD.org>1998-07-06 07:17:27 +0000
commit112ec6c26987e9958ff540a00d5fd04feafc449e (patch)
treeaf82fac3c1c94b7bb52d9897ee3cb90eda60196a /sbin/mount_null
parent10dd9df3855ffef5284d5e4c2c1c7e2cfc1676f9 (diff)
downloadFreeBSD-src-112ec6c26987e9958ff540a00d5fd04feafc449e.zip
FreeBSD-src-112ec6c26987e9958ff540a00d5fd04feafc449e.tar.gz
-Wall.
Diffstat (limited to 'sbin/mount_null')
-rw-r--r--sbin/mount_null/mount_null.812
-rw-r--r--sbin/mount_null/mount_null.c8
2 files changed, 11 insertions, 9 deletions
diff --git a/sbin/mount_null/mount_null.8 b/sbin/mount_null/mount_null.8
index 38473fa..9ed773e 100644
--- a/sbin/mount_null/mount_null.8
+++ b/sbin/mount_null/mount_null.8
@@ -35,7 +35,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)mount_null.8 8.6 (Berkeley) 5/1/95
-.\" $Id: mount_null.8,v 1.7 1997/02/22 14:32:50 peter Exp $
+.\" $Id: mount_null.8,v 1.8 1997/03/11 12:33:34 peter Exp $
.\"
.Dd May 1, 1995
.Dt MOUNT_NULL 8
@@ -51,7 +51,7 @@ demonstrate the use of a null file system layer
.Ar mount-point
.Sh DESCRIPTION
The
-.Nm mount_null
+.Nm
command creates a
null layer, duplicating a sub-tree of the file system
name space under another part of the global file system namespace.
@@ -68,7 +68,7 @@ A different device number for the virtual copy is returned by
but in other respects it is indistinguishable from the original.
.Pp
The
-.Nm mount_null
+.Nm
filesystem differs from a traditional
loopback file system in two respects: it is implemented using
a stackable layers techniques, and it's
@@ -189,7 +189,9 @@ process when constructing other vnode stacks.
.Sh CREATING OTHER FILE SYSTEM LAYERS
One of the easiest ways to construct new file system layers is to make
a copy of the null layer, rename all files and variables, and
-then begin modifying the copy. Sed can be used to easily rename
+then begin modifying the copy.
+.Xr Sed 1
+can be used to easily rename
all variables.
.Pp
The umap layer is an example of a layer descended from the
@@ -228,6 +230,6 @@ UCLA Technical Report CSD-910056,
.Em "Stackable Layers: an Architecture for File System Development" .
.Sh HISTORY
The
-.Nm mount_null
+.Nm
utility first appeared in
.Bx 4.4 .
diff --git a/sbin/mount_null/mount_null.c b/sbin/mount_null/mount_null.c
index 4e7f4c3..c58e06d 100644
--- a/sbin/mount_null/mount_null.c
+++ b/sbin/mount_null/mount_null.c
@@ -35,17 +35,17 @@
*/
#ifndef lint
-char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1992, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-/*
+#if 0
static char sccsid[] = "@(#)mount_null.c 8.6 (Berkeley) 4/26/95";
-*/
+#endif
static const char rcsid[] =
- "$Id: mount_null.c,v 1.9 1997/03/29 03:32:42 imp Exp $";
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
OpenPOWER on IntegriCloud