From james@now.ie  Fri Aug 13 10:45:31 2004
Return-Path: <james@now.ie>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 429C316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 Aug 2004 10:45:31 +0000 (GMT)
Received: from worf.kerna.com (worf.kerna.com [194.106.143.118])
	by mx1.FreeBSD.org (Postfix) with SMTP id 4DD8943D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 Aug 2004 10:45:28 +0000 (GMT)
	(envelope-from james@now.ie)
Received: (qmail 98899 invoked by uid 1012); 13 Aug 2004 10:45:31 -0000
Message-Id: <20040813104531.98898.qmail@bender.kerna.ie>
Date: 13 Aug 2004 10:45:31 -0000
From: James Raftery <james@now.ie>
Reply-To: James Raftery <james@now.ie>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] MNT_SNAPSHOT not documented in mount(2) man page
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70402
>Category:       docs
>Synopsis:       [patch] MNT_SNAPSHOT not documented in mount(2) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 13 10:50:11 GMT 2004
>Closed-Date:    Fri Aug 13 14:33:34 GMT 2004
>Last-Modified:  Fri Aug 13 14:33:34 GMT 2004
>Originator:     James Raftery
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bender.kerna.ie 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue Jun 1 18:01:29 IST 2004 root@bender.kerna.ie:/usr/obj/usr/src/sys/BENDER i386

>Description:
	The MNT_SNAPSHOT mount option isn't documented in the man page
	for mount(2).

>How-To-Repeat:
	N/A
>Fix:

	Patch below to src/lib/libc/sys/mount.2

--- freebsd-mount.2-patch begins here ---
--- mount.2.orig	Fri Aug 13 11:25:21 2004
+++ mount.2	Fri Aug 13 11:28:59 2004
@@ -129,6 +129,8 @@
 Disable read clustering.
 .It Dv MNT_NOCLUSTERW
 Disable write clustering.
+.It Dv MNT_SNAPSHOT
+Snapshot the filesystem.
 .El
 .Pp
 The flag
--- freebsd-mount.2-patch ends here ---


>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: James Raftery <james@now.ie>
Cc: bug-followup@FreeBSD.org
Subject: Re: docs/70402: [patch] MNT_SNAPSHOT not documented in mount(2) man page
Date: Fri, 13 Aug 2004 16:47:38 +0300

 On Fri, Aug 13, 2004 at 10:45:31AM -0000, James Raftery wrote:
 > 
 > >Number:         70402
 > >Category:       docs
 > >Synopsis:       [patch] MNT_SNAPSHOT not documented in mount(2) man page
 > >Description:
 > 	The MNT_SNAPSHOT mount option isn't documented in the man page
 > 	for mount(2).
 
 What do you think about the following patch instead?
 
 G'luck,
 Peter
 
 Index: src/lib/libc/sys/mount.2
 ===================================================================
 RCS file: /home/ncvs/src/lib/libc/sys/mount.2,v
 retrieving revision 1.39
 diff -u -r1.39 mount.2
 --- src/lib/libc/sys/mount.2	30 Jun 2004 20:09:10 -0000	1.39
 +++ src/lib/libc/sys/mount.2	13 Aug 2004 13:46:00 -0000
 @@ -133,6 +133,11 @@
  .It Dv MNT_NODEV
  Do not interpret special files on the file system.
  This flag is set automatically when the caller is not the super-user.
 +.It Dv MNT_SNAPSHOT
 +Create a snapshot of the file system.
 +This is currently only supported on UFS2 file systems, see
 +.Xr mksnap_ffs 8
 +for more information.
  .It Dv MNT_SUIDDIR
  Directories with the SUID bit set chown new files to their own owner.
  This flag requires the SUIDDIR option to have been compiled into the kernel
 @@ -358,6 +363,7 @@
  mounted.
  .Sh SEE ALSO
  .Xr lsvfs 1 ,
 +.Xr mksnap_ffs 8 ,
  .Xr mount 8 ,
  .Xr umount 8
  .Sh BUGS
 
 -- 
 Peter Pentchev	roam@ringlet.net    roam@cnsys.bg    roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 If there were no counterfactuals, this sentence would not have been paradoxical.

From: James Raftery <james@now.ie>
To: Peter Pentchev <roam@ringlet.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: docs/70402: [patch] MNT_SNAPSHOT not documented in mount(2) man page
Date: Fri, 13 Aug 2004 14:53:39 +0100

 On Fri, Aug 13, 2004 at 04:47:38PM +0300, Peter Pentchev wrote:
 > On Fri, Aug 13, 2004 at 10:45:31AM -0000, James Raftery wrote:
 > > 
 > > >Number:         70402
 > > >Category:       docs
 > > >Synopsis:       [patch] MNT_SNAPSHOT not documented in mount(2) man page
 > > >Description:
 > > 	The MNT_SNAPSHOT mount option isn't documented in the man page
 > > 	for mount(2).
 > 
 > What do you think about the following patch instead?
 
 I think it's better than mine and should be used instead :)
 
 
 ATB,
 james
 -- 
 Time flies like an arrow. Fruit flies like bananas.
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Fri Aug 13 14:33:24 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70402 
>Unformatted:
