diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1996-01-01 11:01:15 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1996-01-01 11:01:15 +0000 |
commit | a3ab491d642b34f2d3efbc0562abc8e79b38ce09 (patch) | |
tree | 959df5086a97d16c04b83842650d6ee1f3de4522 /lib/libdisk/change.c | |
parent | 4e2d078f4fc7fe46c0e3b0f1256c92e971891c67 (diff) |
Notes
Diffstat (limited to 'lib/libdisk/change.c')
-rw-r--r-- | lib/libdisk/change.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c deleted file mode 100644 index 1ecd22056983..000000000000 --- a/lib/libdisk/change.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * ---------------------------------------------------------------------------- - * "THE BEER-WARE LICENSE" (Revision 42): - * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you - * can do whatever you want with this stuff. If we meet some day, and you think - * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp - * ---------------------------------------------------------------------------- - * - * $Id: change.c,v 1.9 1995/06/11 19:29:31 rgrimes Exp $ - * - */ - -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include <err.h> -#include <sys/types.h> -#include "libdisk.h" - -#if 0 -struct disk * -Set_Phys_Geom(struct disk *disk, u_long cyl, u_long hd, u_long sect) -{ - struct disk *d = Int_Open_Disk(disk->name,cyl*hd*sect); - d->real_cyl = cyl; - d->real_hd = hd; - d->real_sect = sect; - d->bios_cyl = disk->bios_cyl; - d->bios_hd = disk->bios_hd; - d->bios_sect = disk->bios_sect; - d->flags = disk->flags; - Free_Disk(disk); - return d; -} -#endif - -void -Set_Bios_Geom(struct disk *disk, u_long cyl, u_long hd, u_long sect) -{ - disk->bios_cyl = cyl; - disk->bios_hd = hd; - disk->bios_sect = sect; - Bios_Limit_Chunk(disk->chunks,1024*hd*sect); -} - -void -All_FreeBSD(struct disk *d, int force_all) -{ - 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,0xa5, - force_all? CHUNK_FORCE_ALL: 0); -} |