Bug 31228

Summary: vnconfig -ae configures but not mount devices specified in /etc/vntab.
Product: Base System Reporter: Pavel Antonov <holly>
Component: binAssignee: dwmalone
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Pavel Antonov 2001-10-12 02:40:01 UTC
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 ...

Fix: lilo# diff -u vnconfig.c.orig vnconfig.c


+       fclose(f);
        /*
         * Enable special functions on the device
         */
@@ -461,7 +462,6 @@
                }
        }
 /* done: */
-       fclose(f);
        fflush(stdout);
        return(rv < 0);
 }
lilo#--R6qhGQTptLXMTyGNOyZ7iF616gYu4v3qTjKBLTv9phXP7dHV
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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);
        }
Comment 1 dwmalone freebsd_committer freebsd_triage 2002-03-07 11:36:58 UTC
Responsible Changed
From-To: freebsd-bugs->dwmalone

I'll have a look at this.
Comment 2 dwmalone freebsd_committer freebsd_triage 2002-03-07 12:20:09 UTC
State Changed
From-To: open->closed

Commited to -STABLE (revision 1.13.2.6 of vnconfig.c).