summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-01 04:05:27 +0000
committerphk <phk@FreeBSD.org>1995-05-01 04:05:27 +0000
commit632f39cd533df1a0c9395254371443c5a394ba45 (patch)
treec46a25276d72afe90b217d8e55e20c80503b4c84 /lib/libdisk/create_chunk.c
parent7cb2df48bc34ef37bbb1cf9d3e8ac4b8899a75c9 (diff)
downloadFreeBSD-src-632f39cd533df1a0c9395254371443c5a394ba45.zip
FreeBSD-src-632f39cd533df1a0c9395254371443c5a394ba45.tar.gz
start CHS is 0xff,0xff,0xff if past 1024.
end CHS is 1023,bios_hd,bios_sect if past 1024. This way we can find bios the geometry again. Added a primitive "scan" to tst01.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 0bb6c08..a2027e2 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: create_chunk.c,v 1.4 1995/04/30 06:09:25 phk Exp $
+ * $Id: create_chunk.c,v 1.5 1995/04/30 11:04:12 phk Exp $
*
*/
@@ -129,6 +129,8 @@ Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subty
{
int i;
+ if (type == freebsd)
+ subtype = 0xa5;
i = Add_Chunk(d,offset,size,"X",type,subtype,flags);
Fixup_Names(d);
return i;
OpenPOWER on IntegriCloud