From owner-cvs-all Fri Jan 10 11:25:39 2003 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 C376037B405; Fri, 10 Jan 2003 11:25:38 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76F4B43EB2; Fri, 10 Jan 2003 11:25:38 -0800 (PST) (envelope-from jhb@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 h0AJPcfh046376; Fri, 10 Jan 2003 11:25:38 -0800 (PST) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0AJPcpm046375; Fri, 10 Jan 2003 11:25:38 -0800 (PST) Message-Id: <200301101925.h0AJPcpm046375@repoman.freebsd.org> From: John Baldwin Date: Fri, 10 Jan 2003 11:25:38 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libdisk chunk.c create_chunk.c libdisk.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2003/01/10 11:25:38 PST Modified files: lib/libdisk chunk.c create_chunk.c libdisk.h Log: - Make New_Disk() non-static so it can be used in Create_Chunk_DWIM(). - In Create_Chunk_DWIM(), if there is a freebsd chunk that has no children chunks, then trying to add a child part chunk will fail even though there is free space. Handle this special case by adding an unused chunk the full size of the freebsd chunk as a child of the freebsd chunk before adding the new part chunk. This situation can happen when changing the type of an existing slice to be a FreeBSD slice type or when installing onto a blank disk on Alpha (which has no slices.) Reviewed by: phk MFC after: 2 days Revision Changes Path 1.47 +1 -1 src/lib/libdisk/chunk.c 1.78 +19 -1 src/lib/libdisk/create_chunk.c 1.54 +1 -1 src/lib/libdisk/libdisk.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message