Date: Fri, 10 Jan 2003 11:25:38 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libdisk chunk.c create_chunk.c libdisk.h Message-ID: <200301101925.h0AJPcpm046375@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301101925.h0AJPcpm046375>