diff options
author | phk <phk@FreeBSD.org> | 1995-05-04 07:00:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-04 07:00:57 +0000 |
commit | a0086bd08766f0b26016b7cc81ef7099d54f0324 (patch) | |
tree | 94c7de5da084ef7c3c2948cb0784a6a4f0d8c161 /lib/libdisk/create_chunk.c | |
parent | afc1e203457a4a033aab45e835fca9a8cfc6aeff (diff) | |
download | FreeBSD-src-a0086bd08766f0b26016b7cc81ef7099d54f0324.zip FreeBSD-src-a0086bd08766f0b26016b7cc81ef7099d54f0324.tar.gz |
Make the partitions names even more sensible
CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 06d65ec..95ad84f 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.7 1995/05/03 06:30:50 phk Exp $ + * $Id: create_chunk.c,v 1.8 1995/05/03 22:36:50 phk Exp $ * */ @@ -59,14 +59,16 @@ Fixup_FreeBSD_Names(struct disk *d, struct chunk *c) for (c1 = c->part; c1 ; c1 = c1->next) { for(c3 = c->part; c3 ; c3 = c3->next) if (c1 != c3 && !strcmp(c3->name, c1->oname)) { - strcpy(c1->name,c1->oname); - break; + goto newname; } + strcpy(c1->name,c1->oname); + newname: } + /* Allocate the rest sequentially */ for (c1 = c->part; c1 ; c1 = c1->next) { - const char order[] = "defghab"; + const char order[] = "efghabd"; if (c1->type == unused) continue; if (c1->type == reserved) continue; if (strcmp("X",c1->name)) continue; |