diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-04 07:00:57 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-05-04 07:00:57 +0000 |
| commit | e9851d87a8da190feaa3b2feaa578e0a2efdc551 (patch) | |
| tree | 94c7de5da084ef7c3c2948cb0784a6a4f0d8c161 /lib/libdisk/create_chunk.c | |
| parent | cbb15d7c970c215210296e2df93dc40053037df1 (diff) | |
Notes
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 06d65ec74e1f..95ad84f395e0 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; |
