From owner-freebsd-current Mon Nov 25 14:22:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FD1837B401 for ; Mon, 25 Nov 2002 14:22:17 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C92B43ED1 for ; Mon, 25 Nov 2002 14:22:16 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gAPMM376082093; Mon, 25 Nov 2002 23:22:09 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: "kai ouyang" Cc: Current@FreeBSD.ORG Subject: Re: about GEOM 'geoms' chain question In-Reply-To: Your message of "Mon, 25 Nov 2002 11:58:53 +0800." Date: Mon, 25 Nov 2002 23:22:03 +0100 Message-ID: <82092.1038262923@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , "kai ouyang" writes: >If we add a partition 'da0s1h' to the box, when we excute the g_attach() >function, >it will call redo_rank(). My viewpoint is that the 'DEV'(da0s1h) should >been added between 'Sda0' and 'Mda1'. Based my understanding on >'redo_rank', this function will change all the 'rank' of the elements on >the chain, right? >'ad1', 'ad2' and their branches is irrelevant to 'ad0', why their rank must >change? The "rank" number is used to detect loops in the topology. You may want to browse the slides from my GEOM tutorial at EuroBSDCon: http://2002.eurobsdcon.org/papers/ -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message