From owner-cvs-all@FreeBSD.ORG Sun May 4 22:32:20 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63CFD37B404; Sun, 4 May 2003 22:32:16 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1669943FBD; Sun, 4 May 2003 22:32:16 -0700 (PDT) (envelope-from grog@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h455WF0U029825; Sun, 4 May 2003 22:32:15 -0700 (PDT) (envelope-from grog@repoman.freebsd.org) Received: (from grog@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h455WFM1029824; Sun, 4 May 2003 22:32:15 -0700 (PDT) Message-Id: <200305050532.h455WFM1029824@repoman.freebsd.org> From: Greg Lehey Date: Sun, 4 May 2003 22:32:15 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/vinum vinumconfig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2003 05:32:21 -0000 grog 2003/05/04 22:32:15 PDT FreeBSD src repository Modified files: sys/dev/vinum vinumconfig.c Log: Finally implement read policies. The previous "implementation" didn't work because it referred to plexes which were almost invariably when referred to. Instead, deprecate the "prefer" keyword for volumes (though it's still there for the moment) and add a keyword "preferred" to the plex definition. The relationship is like this: Old: vol foo ... prefer foo.p3 New: plex foo.p3 volume foo preferred give_plex_to_volume: set preferred plex if specified on plex definition entry. This involves adding a parameter to the function to specify the preferred plex. config_plex: Implement preferred keyword. Revision Changes Path 1.56 +52 -22 src/sys/dev/vinum/vinumconfig.c