Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: union mounts, mfs, and newsyslog



On Tue, Jul 7, 2009 at 9:11 PM, David
Holland<dholland-current%netbsd.org@localhost> wrote:
> On Tue, Jul 07, 2009 at 06:54:52AM -0400, matthew sporleder wrote:
>  > > I think the idea was to use a union mount instead of using unionfs,
>  > > although the cited line doesn't do that; you'd want
>  > >
>  > >     mount -t mfs -o union swap /var/log
>  > >
>  > > This isn't the same thing, but it may serve your purposes if you don't
>  > > need the union to extend over subdirs.
>  >
>  > Oh, okay.  I read the mount(8) man page a few times and still didn't
>  > really get what it was saying until now.
>
> Any suggestions for improving it? :-/
>

I always have suggestions and opinions.  :)

Just add the example you gave me with a description like:
"
mount -t mfs -o union swap /var/log

Creates an mfs mount on top of /var/log from the swap partition.  This
example does not descend into subdirectories.  See mount_union(8) for
more information on union mounts.
"

(patch below)

--- mount.8.orig        2009-07-07 21:54:21.000000000 -0400
+++ mount.8     2009-07-07 22:01:34.000000000 -0400
@@ -466,6 +466,20 @@
 file system format in the first
 .Tn CD-ROM
 drive.
+.Pp
+.Dl mount -t mfs -o union swap /var/log
+.Ed
+.Pp
+Creates an
+.Pa mfs
+mount on top of
+.Pa /var/log
+from the
+.Pa swap
+partition.  This example does not descend into
+subdirectories.  See mount_union(8) for more
+information on union mounts.
+
 .Sh DIAGNOSTICS
 The error
 .Dq Operation not supported by device


Home | Main Index | Thread Index | Old Index