From owner-freebsd-bugs Thu Oct 11 18:40: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1CEBC37B40C for ; Thu, 11 Oct 2001 18:40:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9C1e2374333; Thu, 11 Oct 2001 18:40:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 177E637B408 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/31228: vnconfig -ae configures but not mount devices specified in /etc/vntab. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31228 >Category: bin >Synopsis: vnconfig -ae configures but not mount devices specified in /etc/vntab. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 11 18:40:01 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message