From owner-cvs-all Wed Jan 20 16:34:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA10162 for cvs-all-outgoing; Wed, 20 Jan 1999 16:34:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA10156; Wed, 20 Jan 1999 16:34:50 -0800 (PST) (envelope-from grog@FreeBSD.org) From: Greg Lehey Received: (from grog@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA13115; Wed, 20 Jan 1999 16:34:50 -0800 (PST) Date: Wed, 20 Jan 1999 16:34:50 -0800 (PST) Message-Id: <199901210034.QAA13115@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/dev/vinum vinumio.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk grog 1999/01/20 16:34:50 PST Modified files: sys/dev/vinum vinumio.c Log: Include Peter Wemm's renaming and restructuring Remove #ifdefs for FreeBSD 2.c Change from lkm to kld correct type of `flags' in calls to set_drive_state. set_drive_parms: handle anonymous drives correctly (remove them) drive VOP functions: use the PID of the original opener to fool the lock manager. open_drive: be quiet about failures (they're normal when scanning the partitions). close_drive: lock drive before closing. remove_drive: lock drive before deallocating. read_drive_label: set drive up when all is OK check_drive: Complete rewrite. Offload most of the code to the new vinum_scandisk format_config: use snprintf and %qd options to make much less emetic. Remove old supporting functions. vinum_scandisk: Moved here from vinum.c Almost complete rewrite, incorporating much of what was check_drive. We still don't have a general way to find the drives on a system, so get the user to supply the names via the `read' command. For each device, try each possible compatibility slice name (there's a danger of finding both /dev/da1h and /dev/da0s1h otherwise). Sort the partitions found in reverse order of last update time and read them in, setting the `update' parameter to parse_config and descendents. save_config: rename to daemon_save_config, since the function is now called by the daemon. Create a new function save_config which queues the request with the daemon. daemon_save_config: some mods to allow for the unfamiliar environment. Revision Changes Path 1.7 +452 -329 src/sys/dev/vinum/vinumio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message