From af83fa703c134aa38db0de2662d3a56819a501f9 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 3 May 1995 06:30:59 +0000 Subject: Make the target for tst01 more sensible. Remove bogus targets. Allocate partition letters as follows: lowest offset "flags & CHUNK_IS_ROOT" gets 'a', lowest offset "subtype==FS_SWAP" gets 'b' the rest is allocated in offset order from this sequence "defghab". This will generally make sense. Added rules to complain if more than one CHUNK_IS_ROOT or more than one FS_SWAP per FreeBSD chunk. Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk. Run Fixup_Names in Open_Disk. --- lib/libdisk/disk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/libdisk/disk.c') diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index e0701ce..03c30c5 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: disk.c,v 1.11 1995/05/02 19:52:27 jkh Exp $ + * $Id: disk.c,v 1.12 1995/05/02 20:16:16 jkh Exp $ * */ @@ -65,7 +65,7 @@ Int_Open_Disk(char *name, u_long size) return 0; } -#if 0 +#ifdef DEBUG for(i=0;i