From owner-cvs-all Mon Mar 29 21: 0:18 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 0CA7E14C36; Mon, 29 Mar 1999 21:00:17 -0800 (PST) (envelope-from grog@FreeBSD.org) Received: (from grog@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id VAA98583; Mon, 29 Mar 1999 21:00:00 -0800 (PST) (envelope-from grog@FreeBSD.org) Message-Id: <199903300500.VAA98583@freefall.freebsd.org> From: Greg Lehey Date: Mon, 29 Mar 1999 21:00:00 -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/29 21:00:00 PST Modified files: sys/dev/vinum vinumconfig.c Log: Revise use of the vinum_conf variables drives_used, subdisks_used, plexes_used and volumes_used. Now these fields are only informative, and the _allocated count is used for searches, etc. This also required checking the object state before doing things with the presumed object. Problems-reported-by: Kiril Mitev Remove unused (and braindead) functions volume_index, plex_index, sd_index and drive_index. Add a flag VF_CREATED for volumes. VF_NEWBORN was being used in two capacities, and they clashed, my Lord, they clashed. find_object: restructure the search loop as a result of the change in variable use. Decrement object use count in the remove_ functions, not in the free_ functions, which are often called with partially initialized (and uncounted) objects. Revision Changes Path 1.16 +65 -120 src/sys/dev/vinum/vinumconfig.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message