From nobody@FreeBSD.org  Thu Jan  3 04:54:50 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 971CB37B425
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Jan 2002 04:54:47 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g03Cslp41692;
	Thu, 3 Jan 2002 04:54:47 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201031254.g03Cslp41692@freefall.freebsd.org>
Date: Thu, 3 Jan 2002 04:54:47 -0800 (PST)
From: Gilbert Gong <ggong@cal.alumni.berkeley.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fix vnode_if.pl to internally call itself vnode_if.pl
X-Send-Pr-Version: www-1.0

>Number:         33509
>Category:       kern
>Synopsis:       fix vnode_if.pl to internally call itself vnode_if.pl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 03 05:00:04 PST 2002
>Closed-Date:    Fri Jan 4 09:41:24 PST 2002
>Last-Modified:  Fri Jan 04 09:42:38 PST 2002
>Originator:     Gilbert Gong
>Release:        4.4
>Organization:
>Environment:
FreeBSD devfrebsd.internal.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386      
>Description:
vnode_if.pl creates the files vnode_if.c and vnode_if.h

The tops of the files begin with this comment:
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93
 */

This comment is both incorrect and confusing..      
>How-To-Repeat:
run vnode_if.pl, and inspect the files it creates, eg
perl /usr/src/sys/kern/vnode_if.pl -c -h /usr/src/sys/kern/vnode_if.src 
head vnode_if.c
head vnode_if.h

>Fix:
--- vnode_if.pl Thu Jan  3 05:56:47 2002
+++ vnode_if-new.pl     Thu Jan  3 05:52:50 2002
@@ -39,7 +39,7 @@
 #
 # Script to produce VFS front-end sugar.
 #
-# usage: vnode_if.sh srcfile
+# usage: vnode_if.pl srcfile
 #      (where srcfile is currently /sys/kern/vnode_if.src)
 #
 
@@ -61,7 +61,7 @@
     } elsif ($arg =~ m/\.src$/) {
        $SRC = $arg;
     } else {
-       print "usage: vnode_if.sh [-c] [-h] srcfile\n";
+       print "usage: vnode_if.pl [-c] [-h] srcfile\n";
        exit(1);
     }
 }
@@ -83,7 +83,7 @@
  * This file is produced automatically.
  * Do not modify anything in here by hand.
  *
- * Created from @(#)vnode_if.sh        8.1 (Berkeley) 6/10/93
+ * Created from sys/kern/vnode_if.pl
  */
 
 extern struct vnodeop_desc vop_default_desc;
@@ -99,7 +99,7 @@
  * This file is produced automatically.
  * Do not modify anything in here by hand.
  *
- * Created from @(#)vnode_if.sh        8.1 (Berkeley) 6/10/93
+ * Created from sys/kern/vnode_if.pl
  */
 
 #include <sys/param.h>
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: silby 
State-Changed-When: Fri Jan 4 09:41:24 PST 2002 
State-Changed-Why:  
A modified version of this fix has been committed to -current. 
It will be MFC'd to -stable once 4.5 is released. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33509 
>Unformatted:
