summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-06 03:28:32 +0000
committerphk <phk@FreeBSD.org>1995-05-06 03:28:32 +0000
commit3f92c42b372f465caab2ddae6bef754bed6d7c57 (patch)
tree54e64990f02f3b4e4a63797686f948697491499e /lib/libdisk/create_chunk.c
parent5d77b2037bd2957e492a7f71d3c5c24aa1acd977 (diff)
downloadFreeBSD-src-3f92c42b372f465caab2ddae6bef754bed6d7c57.zip
FreeBSD-src-3f92c42b372f465caab2ddae6bef754bed6d7c57.tar.gz
General sanitation and cleanup. Killed the "reserved" type, it wasn't.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 95ad84f..dbc179a 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: create_chunk.c,v 1.8 1995/05/03 22:36:50 phk Exp $
+ * $Id: create_chunk.c,v 1.9 1995/05/04 07:00:53 phk Exp $
*
*/
@@ -40,7 +40,6 @@ Fixup_FreeBSD_Names(struct disk *d, struct chunk *c)
/* Allocate the first swap-partition we find */
for (c1 = c->part; c1 ; c1 = c1->next) {
if (c1->type == unused) continue;
- if (c1->type == reserved) continue;
if (c1->subtype != FS_SWAP) continue;
sprintf(c1->name,"%s%c",c->name,SWAP_PART+'a');
break;
@@ -49,7 +48,6 @@ Fixup_FreeBSD_Names(struct disk *d, struct chunk *c)
/* Allocate the first root-partition we find */
for (c1 = c->part; c1 ; c1 = c1->next) {
if (c1->type == unused) continue;
- if (c1->type == reserved) continue;
if (!(c1->flags & CHUNK_IS_ROOT)) continue;
sprintf(c1->name,"%s%c",c->name,0+'a');
break;
@@ -70,7 +68,6 @@ Fixup_FreeBSD_Names(struct disk *d, struct chunk *c)
for (c1 = c->part; c1 ; c1 = c1->next) {
const char order[] = "efghabd";
if (c1->type == unused) continue;
- if (c1->type == reserved) continue;
if (strcmp("X",c1->name)) continue;
for(j=0;j<strlen(order);j++) {
@@ -101,7 +98,6 @@ Fixup_Extended_Names(struct disk *d, struct chunk *c)
if (c1->type == freebsd)
Fixup_FreeBSD_Names(d,c1);
if (c1->type == unused) continue;
- if (c1->type == reserved) continue;
if (strcmp(c1->name, "X")) continue;
for(j=5;j<=29;j++) {
p = malloc(12);
@@ -137,8 +133,6 @@ Fixup_Names(struct disk *d)
Fixup_Extended_Names(d,c2);
if (c2->type == unused)
continue;
- if (c2->type == reserved)
- continue;
p = malloc(12);
if(!p) err(1,"malloc failed");
for(j=1;j<=NDOSPART;j++) {
OpenPOWER on IntegriCloud