From 093fd20263c83b8fbfb88a7cdb49236a80c9448a Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 29 Apr 1995 04:00:57 +0000 Subject: Next Iteration, getting better. Made an All_FreeBSD() function. Added a cmd-line interface (lowest rank) to the tst01 program. The tst01 program is harmless (worst it can do is coredump), but it is instructive to run, you can see what the slice-code things of your disk... --- lib/libdisk/libdisk.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/libdisk/libdisk.h') diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h index 2946f90..e4412cf 100644 --- a/lib/libdisk/libdisk.h +++ b/lib/libdisk/libdisk.h @@ -6,14 +6,14 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id$ + * $Id: libdisk.h,v 1.2 1995/04/29 01:55:23 phk Exp $ * */ typedef enum {whole, foo, fat, freebsd, extended, part, unused, reserved} chunk_e; #define CHAR_N static char *chunk_n[] = { \ - "whole","foo","fat","freebsd","extended","part","unused","reserved"}; + "whole","foo","fat","freebsd","extended","part","unused","reserved",0}; struct disk { char *name; @@ -103,6 +103,11 @@ Create_Chunk(struct disk *disk, u_long offset, u_long size, chunk_e type, int su /* Create a chunk with the specified paramters */ +void +All_FreeBSD(struct disk *d); + /* Make one FreeBSD chunk covering the entire disk + */ + char * CheckRules(struct disk *); /* Return char* to warnings about broken design rules in this disklayout -- cgit v1.1