diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-04-29 04:00:57 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-04-29 04:00:57 +0000 |
| commit | f9c10dfd1a49c87ca42b7ad41173c959bfd5aa64 (patch) | |
| tree | 11c2e7145c25cef4f5bba439fe31fdbe93c53551 /lib/libdisk/change.c | |
| parent | 27bff5727d34ad78ead9babe511735cf46d7b93d (diff) | |
Notes
Diffstat (limited to 'lib/libdisk/change.c')
| -rw-r--r-- | lib/libdisk/change.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index b1db61c34a21..76d28cf1baf2 100644 --- a/lib/libdisk/change.c +++ b/lib/libdisk/change.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id$ + * $Id: change.c,v 1.2 1995/04/29 01:55:18 phk Exp $ * */ @@ -42,3 +42,18 @@ Set_Bios_Geom(struct disk *disk, u_long cyl, u_long hd, u_long sect) disk->bios_sect = sect; Bios_Limit_Chunk(disk->chunks,1024*hd*sect); } + +void +All_FreeBSD(struct disk *d) +{ + struct chunk *c; + + again: + for (c=d->chunks->part;c;c=c->next) + if (c->type != unused) { + Delete_Chunk(d,c); + goto again; + } + c=d->chunks; + Create_Chunk(d,c->offset,c->size,freebsd,0,0); +} |
