From owner-cvs-all Mon Mar 1 22:59: 9 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BBC9D15494; Mon, 1 Mar 1999 22:53:03 -0800 (PST) (envelope-from grog@FreeBSD.org) Received: (from grog@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id WAA44396; Mon, 1 Mar 1999 22:52:48 -0800 (PST) (envelope-from grog@FreeBSD.org) Message-Id: <199903020652.WAA44396@freefall.freebsd.org> From: Greg Lehey Date: Mon, 1 Mar 1999 22:52:48 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinumconfig.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk grog 1999/03/01 22:52:48 PST Modified files: sys/dev/vinum vinumconfig.c Log: Change printf() calls to log() calls. Rename the VF_KERNELOP to VF_DISKCONFIG and checkkernel () to checkdiskconfig (), which better describes their function. Disable configuration updates if we have an error reading in the configuration. This stops a "shoot-in-foot" problem where a mistake can cause the configuration to be obliterated. Tidy up some messages, which included superfluous \ns. Recognize RAID-5 configuration information even in the non-RAID-5 version. This fixes shoot-in-foot problems where starting the wrong version of vinum would kill RAID-5 plexes. Recognize drives that have been referenced, but for which no physical location is known. This is part of a modification which will ultimately allow incrementally reading configurations. Such drives will have a device name "unknown". New function return_drive_space () returns space to a drive. Previously this was part of free_sd (). give_sd_to_drive: don't do it if the subdisk needs more space than the drive has available. config_sd: if reading config from disk, accept plex offset, drive offset and length specs of -1 to indicate error conditions. parse_config: return ENOENT if the "read" command doesn't find any drives. remove_sd_entry: don't do it, even by force, if it's open. If the size of a striped or RAID-5 plex is not an integral multiple of the stripe size, trim the size until it is. reinstate update_volume_config, which had atrophied, to recalculate the size of a volume if a plex has shrunk due to stripe size considerations. Revision Changes Path 1.11 +217 -99 src/sys/dev/vinum/vinumconfig.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message