bin/57641: [patch] missing option in mdmfs (mount_mfs)
Peter Pentchev
roam at ringlet.net
Mon Oct 6 02:40:19 PDT 2003
The following reply was made to PR bin/57641; it has been noted by GNATS.
From: Peter Pentchev <roam at ringlet.net>
To: Ruben de Groot <rdg at bzerk.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: bin/57641: [patch] missing option in mdmfs (mount_mfs)
Date: Mon, 6 Oct 2003 12:38:25 +0300
On Mon, Oct 06, 2003 at 10:46:58AM +0200, Ruben de Groot wrote:
>
> >Number: 57641
> >Category: bin
> >Synopsis: [patch] missing option in mdmfs (mount_mfs)
> >Originator: Ruben de Groot
> >Release: FreeBSD 5.1-CURRENT i386
[snip]
> >Description:
>
> Currently, mdmfs will allways do a newfs before mounting a mfs.
> When using filesystem image files (MD_VNODE), an option to skip
> the newfs part, preserving the existing filesystem would be
> desirable.
[snip]
> >Fix:
>
> Add a -P option to mdmfs (and mount_mfs) that will skip the
> do_newfs() part. Adding P to the fstab line above like this:
[snip]
> diff -u sbin/mdmfs.orig/mdmfs.8 sbin/mdmfs/mdmfs.8
> --- sbin/mdmfs.orig/mdmfs.8 Wed Aug 6 04:41:52 2003
> +++ sbin/mdmfs/mdmfs.8 Mon Oct 6 08:48:27 2003
[snip]
> @@ -195,6 +195,11 @@
> See
> .Xr mount 8
> for more information.
> +.It Fl P
> +Preserve existing filesystem. Do not run newfs. This only makes sense if
> +.Fl F
> +is specified
> +.Pq Dv MD_VNODE .
> .It Fl p Ar permissions
> Set the file (directory) permissions of the mount point
> .Ar mount-point
Just a minor mdoc comment on this part: generally we put new sentences
on separate lines :) Also, what do you think about this wording change:
@@ -195,6 +195,12 @@
See
.Xr mount 8
for more information.
+.It Fl P
+Preserve existing filesystem - do not run newfs.
+This only makes sense if
+.Fl F
+is specified to create a vnode-backed disk
+.Pq Dv MD_VNODE .
.It Fl p Ar permissions
Set the file (directory) permissions of the mount point
.Ar mount-point
G'luck,
Peter
--
Peter Pentchev roam at ringlet.net roam at sbnd.net roam at FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
What would this sentence be like if it weren't self-referential?
More information about the freebsd-bugs
mailing list