From nobody@FreeBSD.org  Thu Oct 11 18:33:20 2001
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 177E637B408
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Oct 2001 18:33:15 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f9C1XFt73739;
	Thu, 11 Oct 2001 18:33:15 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200110120133.f9C1XFt73739@freefall.freebsd.org>
Date: Thu, 11 Oct 2001 18:33:15 -0700 (PDT)
From: Pavel Antonov <holly@irk.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vnconfig -ae configures but not mount devices specified in /etc/vntab.
X-Send-Pr-Version: www-1.0

>Number:         31228
>Category:       bin
>Synopsis:       vnconfig -ae configures but not mount devices specified in /etc/vntab.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dwmalone
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 11 18:40:01 PDT 2001
>Closed-Date:    Thu Mar 7 04:20:09 PST 2002
>Last-Modified:  Thu Mar 07 04:21:48 PST 2002
>Originator:     Pavel Antonov
>Release:        4.4
>Organization:
DSI
>Environment:
FreeBSD lilo.icc.ru 4.4-RC FreeBSD 4.4-RC #0: Sun Oct  7 09:56:38 IRKST 2001
 holly@lilo.icc.ru:/usr/src/sys/compile/LILO  i386                          
>Description:
lilo# more /etc/vntab                                                           
/dev/vn0c /disk/vservers/195.206.40.165/vn0.195.206.40.165 mount=/disk/vservers/195.206.40.165/mp
lilo# vnconfig -ae
vnconfig: mount: Device busy
lilo#
/dev/vn0c now configured,
if i mount manual all ok ...
>How-To-Repeat:

>Fix:
lilo# diff -u vnconfig.c.orig vnconfig.c
--- vnconfig.c.orig     Thu Oct 11 19:42:06 2001
+++ vnconfig.c  Fri Oct 12 10:29:34 2001
@@ -436,6 +436,7 @@
                        printf("%s: flags now=%08lx\n",dev,l);
        }

+       fclose(f);
        /*
         * Enable special functions on the device
         */
@@ -461,7 +462,6 @@
                }
        }
 /* done: */
-       fclose(f);
        fflush(stdout);
        return(rv < 0);
 }
lilo#

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dwmalone 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Thu Mar 7 03:36:58 PST 2002 
Responsible-Changed-Why:  
I'll have a look at this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31228 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Thu Mar 7 04:20:09 PST 2002 
State-Changed-Why:  
Commited to -STABLE (revision 1.13.2.6 of vnconfig.c). 

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