From owner-freebsd-doc@FreeBSD.ORG Sun Mar 11 20:30:07 2007 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8E8D16A403 for ; Sun, 11 Mar 2007 20:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id BF53013C46E for ; Sun, 11 Mar 2007 20:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2BKU4Gq094312 for ; Sun, 11 Mar 2007 20:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2BKU46o094311; Sun, 11 Mar 2007 20:30:04 GMT (envelope-from gnats) Resent-Date: Sun, 11 Mar 2007 20:30:04 GMT Resent-Message-Id: <200703112030.l2BKU46o094311@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jamie Jones Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D44F16A4CD for ; Sun, 11 Mar 2007 20:29:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3B77E13C45A for ; Sun, 11 Mar 2007 20:29:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2BKTg1M025208 for ; Sun, 11 Mar 2007 20:29:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l2BKTgsb025207; Sun, 11 Mar 2007 20:29:42 GMT (envelope-from nobody) Message-Id: <200703112029.l2BKTgsb025207@www.freebsd.org> Date: Sun, 11 Mar 2007 20:29:42 GMT From: Jamie Jones To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: docs/110200: VOP_FSYNC() and VFS_SYNC() man pages need "cred" removal X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 20:30:07 -0000 >Number: 110200 >Category: docs >Synopsis: VOP_FSYNC() and VFS_SYNC() man pages need "cred" removal >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 11 20:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jamie Jones >Release: 6.2-RELEASE >Organization: >Environment: FreeBSD thompson.bishopston.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Feb 26 09:23:42 GMT 2007 root@thompson.bishopston.net:/usr/obj/usr/src/sys/THOMPSON i386 >Description: The man pages for VOP_FSYNC and VFS_SYNC still reference the "cred" parameter which has long since been removed. i.e. int VOP_FSYNC(struct vnode *vp, struct ucred *cred, int waitfor, struct thread *td); and int VFS_SYNC(struct mount *mp, int waitfor, struct ucred *cred, struct thread *td); >How-To-Repeat: man VOP_FSYNC man VFS_SYNC >Fix: Updated the man pages as per the attached patch cheers, Jamie Patch attached with submission follows: --- share/man/man9/VFS_SYNC.9.orig Sun Mar 11 20:22:14 2007 +++ share/man/man9/VFS_SYNC.9 Sun Mar 11 20:24:00 2007 @@ -39,7 +39,7 @@ .In sys/mount.h .In sys/vnode.h .Ft int -.Fn VFS_SYNC "struct mount *mp" "int waitfor" "struct ucred *cred" "struct thread *td" +.Fn VFS_SYNC "struct mount *mp" "int waitfor" "struct thread *td" .Sh DESCRIPTION The .Fn VFS_SYNC @@ -61,8 +61,6 @@ .It Dv MNT_LAZY push data not written by file system syncer .El -.It Fa cred -The caller's credentials. .It Fa td The calling thread. .El --- share/man/man9/VOP_FSYNC.9.orig Sun Mar 11 20:22:39 2007 +++ share/man/man9/VOP_FSYNC.9 Sun Mar 11 20:24:53 2007 @@ -38,7 +38,7 @@ .In sys/param.h .In sys/vnode.h .Ft int -.Fn VOP_FSYNC "struct vnode *vp" "struct ucred *cred" "int waitfor" "struct thread *td" +.Fn VOP_FSYNC "struct vnode *vp" "int waitfor" "struct thread *td" .Sh DESCRIPTION This call flushes any dirty file system buffers for the file. It is used to implement the @@ -51,8 +51,6 @@ .Bl -tag -width waitfor .It Fa vp The vnode of the file. -.It Fa cred -The caller's credentials. .It Fa waitfor Whether the function should wait for I/O to complete. Possible values are: @@ -84,7 +82,7 @@ .Sh PSEUDOCODE .Bd -literal int -vop_fsync(struct vnode *vp, struct ucred *cred, int waitfor, struct thread *td) +vop_fsync(struct vnode *vp, int waitfor, struct thread *td) { struct buf *bp; struct buf *nbp; >Release-Note: >Audit-Trail: >Unformatted: