Skip to content

Commit 490705d

Browse files
author
fair
committed
Add some mdoc macros. Add text from PR 13878, modified.
1 parent eb67a49 commit 490705d

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

sbin/mount_union/mount_union.8

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" $NetBSD: mount_union.8,v 1.13 2003/02/25 10:35:05 wiz Exp $
1+
.\" $NetBSD: mount_union.8,v 1.14 2003/05/07 05:19:44 fair Exp $
22
.\"
33
.\" Copyright (c) 1994
44
.\" The Regents of the University of California. All rights reserved.
@@ -36,7 +36,7 @@
3636
.\"
3737
.\" @(#)mount_union.8 8.7 (Berkeley) 5/1/95
3838
.\"
39-
.Dd May 1, 1995
39+
.Dd May 6, 2003
4040
.Dt MOUNT_UNION 8
4141
.Os
4242
.Sh NAME
@@ -51,8 +51,7 @@
5151
.Sh DESCRIPTION
5252
The
5353
.Nm
54-
command
55-
attaches
54+
command attaches
5655
.Ar directory
5756
above
5857
.Ar uniondir
@@ -93,6 +92,10 @@ Hide the lower layer completely in the same way as mounting with
9392
To enforce filesystem security, the user mounting the filesystem
9493
must be superuser or else have write permission on the mounted-on
9594
directory.
95+
In addition, the
96+
.Em vfs.generic.usermount
97+
.Xr sysctl 3
98+
variable must be set to 1 to permit file system mounting by ordinary users.
9699
.Pp
97100
Filenames are looked up in the upper layer and then in the
98101
lower layer.
@@ -102,8 +105,9 @@ in the upper layer, then a
102105
directory will be created in the upper layer.
103106
It will be owned by the user who originally did the union mount,
104107
with mode
105-
.Dq rwxrwxrwx
106-
(0777) modified by the umask in effect at that time.
108+
.Qq rwxrwxrwx
109+
.Pq 0777
110+
modified by the umask in effect at that time.
107111
.Pp
108112
If a file exists in the upper layer then there is no way to access
109113
a file with the same name in the lower layer.
@@ -151,7 +155,9 @@ mount -t cd9660 -o ro /dev/cd0a /usr/src
151155
mount -t union /var/obj /usr/src
152156
.Ed
153157
.Pp
154-
mount the CD-ROM drive
158+
mount the
159+
.Tn CD-ROM
160+
drive
155161
.Pa /dev/cd0a
156162
on
157163
.Pa /usr/src
@@ -160,7 +166,8 @@ and then attaches
160166
on top.
161167
For most purposes the effect of this is to make the
162168
source tree appear writable
163-
even though it is stored on a CD-ROM.
169+
even though it is stored on a
170+
.Tn CD-ROM .
164171
.Pp
165172
The command
166173
.Bd -literal -offset indent
@@ -183,7 +190,8 @@ accessible via
183190
.Xr fstab 5 ,
184191
.Xr fsck_ffs 8 ,
185192
.Xr mount 8 ,
186-
.Xr mount_null 8
193+
.Xr mount_null 8 ,
194+
.Xr sysctl 8
187195
.Sh HISTORY
188196
The
189197
.Nm
@@ -196,7 +204,7 @@ objects can be done.
196204
An attempt to mount a union directory under one which does not
197205
have whiteout support will return
198206
.Dv EOPNOTSUPP
199-
(``Operation not supported'').
207+
.Pq Qq Operation not supported .
200208
Whiteout support can be added to an existing FFS filesystem
201209
by using the
202210
.Fl c

0 commit comments

Comments
 (0)