From owner-cvs-all Tue Feb 20 14: 7:41 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 798F237B401; Tue, 20 Feb 2001 14:07:36 -0800 (PST) (envelope-from alfred@FreeBSD.org) Received: (from alfred@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1KM7ap01441; Tue, 20 Feb 2001 14:07:36 -0800 (PST) (envelope-from alfred) Message-Id: <200102202207.f1KM7ap01441@freefall.freebsd.org> From: Alfred Perlstein Date: Tue, 20 Feb 2001 14:07:36 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/vinum Makefile commands.c list.c v.c vext.h vinum.8 src/sys/dev/vinum vinum.c vinumvar.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alfred 2001/02/20 14:07:36 PST Modified files: sbin/vinum Makefile commands.c list.c v.c vext.h vinum.8 sys/dev/vinum vinum.c vinumvar.h Log: Fix vinum for both devfs and non-devfs systems. userland tool: Use the vfs.devfs.generation sysctl to test for devfs presense (thanks phk!) when devfs is active it will not try to create the device nodes in /dev and therefore will not complain about the failure to do so. Revert the change in the #define for VINUM_DIR in the kernel header so that vinum can find its device nodes. Replace perror() with vinum_perror() to print file/line when DEVBUG is defined (not defined by default). kernel: Don't use the #define names for the "superdev" creation since they will be prepended by "/dev/" (based on VINUM_DIR), instead use string constants. Create both debug and non-debug "superdev" nodes in the devfs. Problem noticed and fix tested by: Martin Blapp Revision Changes Path 1.17 +5 -1 src/sbin/vinum/Makefile 1.37 +19 -19 src/sbin/vinum/commands.c 1.31 +13 -13 src/sbin/vinum/list.c 1.31 +36 -20 src/sbin/vinum/v.c 1.19 +12 -1 src/sbin/vinum/vext.h 1.49 +1 -1 src/sbin/vinum/vinum.8 1.41 +11 -4 src/sys/dev/vinum/vinum.c 1.38 +2 -2 src/sys/dev/vinum/vinumvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message