From owner-cvs-src-old@FreeBSD.ORG Fri Apr 23 16:49:41 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86B3410657E0 for ; Fri, 23 Apr 2010 16:49:41 +0000 (UTC) (envelope-from mjacob@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 747518FC0C for ; Fri, 23 Apr 2010 16:49:41 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o3NGnfNH042960 for ; Fri, 23 Apr 2010 16:49:41 GMT (envelope-from mjacob@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3NGnf7p042959 for cvs-src-old@freebsd.org; Fri, 23 Apr 2010 16:49:41 GMT (envelope-from mjacob@repoman.freebsd.org) Message-Id: <201004231649.o3NGnf7p042959@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mjacob@repoman.freebsd.org using -f From: Matt Jacob Date: Fri, 23 Apr 2010 16:49:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/geom/multipath g_multipath.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 16:49:41 -0000 mjacob 2010-04-23 16:49:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/geom/multipath g_multipath.c Log: SVN rev 207126 on 2010-04-23 16:49:18Z by mjacob This is an MFC of 205847, 204071 and 196580 ------ Change how multipath labels are created and managed. This makes it easier to support various storage boxes which really aren't active-active. We only write the label on the *first* provider. For all other providers we just "add" the disk. This also allows for an "add" verb. A usage implication is that you should specificy the currently active storage path as the first provider. Note that this does not add RDAC-like functionality, but better allows for autovolumefailover configurations (additional checkins elsewhere will support this). ------------------------------------------------------------------------ - Style fixes. - Prefer strlcpy() over strncpy(). ------------------------------------------------------------------------ There's no need for checking result of M_WAITOK allocation. Revision Changes Path 1.2.2.4 +32 -58 src/sys/geom/multipath/g_multipath.c