diff options
author | jhb <jhb@FreeBSD.org> | 2003-01-10 19:25:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-01-10 19:25:38 +0000 |
commit | 533d214b966f695a9fa4dee381b20aa03e6b4a91 (patch) | |
tree | 68409884412a822f295542088b024e0d863a89ab /lib/libdisk/chunk.c | |
parent | 48b15bd431779863408d2bd33e7f0c8192bfe6de (diff) | |
download | FreeBSD-src-533d214b966f695a9fa4dee381b20aa03e6b4a91.zip FreeBSD-src-533d214b966f695a9fa4dee381b20aa03e6b4a91.tar.gz |
- 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
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r-- | lib/libdisk/chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index ee15a49..25c3646 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -18,7 +18,7 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include "libdisk.h" -static struct chunk * +struct chunk * New_Chunk(void) { struct chunk *c; |