From 35ea9462db142208332ba6fe901b5e866a0f0c2f Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Fri, 29 Jan 1999 11:39:24 +0000 Subject: More support for Alpha installs. Submitted by: dfr --- lib/libdisk/disk.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) (limited to 'lib/libdisk/disk.c') diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 4d6deafc65fd..8ac28e2ad779 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.38 1998/10/06 11:57:08 dfr Exp $ + * $Id: disk.c,v 1.39 1998/12/19 18:48:33 phk Exp $ * */ @@ -143,6 +143,7 @@ Int_Open_Disk(const char *name, u_long size) {} #endif +#ifdef __i386__ for(i=BASE_SLICE;i + ds.dss_slices[WHOLE_DISK_SLICE].ds_size) + continue; + sprintf(pname,"%s%c",name,j+'a'); + if (Add_Chunk(d, + dl.d_partitions[j].p_offset, + dl.d_partitions[j].p_size, + pname,part, + dl.d_partitions[j].p_fstype, + 0) && j != 3) +#ifdef DEBUG + warn( + "Failed to add chunk for partition %c [%lu,%lu]", + j + 'a',dl.d_partitions[j].p_offset, + dl.d_partitions[j].p_size); +#else + {} +#endif + } + nolabel:; + } +#endif /* __alpha__ */ close(fd); Fixup_Names(d); Bios_Limit_Chunk(d->chunks,1024*d->bios_hd*d->bios_sect); -- cgit v1.2.3