diff options
author | phk <phk@FreeBSD.org> | 2002-11-01 16:28:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-11-01 16:28:19 +0000 |
commit | e7002ff1e59fa4710ff3673baac09673ea1a2eb0 (patch) | |
tree | 5cc7cce6161615de2e7262461cca4d3d6127ed96 /lib/libdisk | |
parent | c60e6be0f44c52b8392d130a0da56a062ce5449c (diff) | |
download | FreeBSD-src-e7002ff1e59fa4710ff3673baac09673ea1a2eb0.zip FreeBSD-src-e7002ff1e59fa4710ff3673baac09673ea1a2eb0.tar.gz |
Fill in partition 2 with with "whole disk" parameters.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/write_sparc64_disk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libdisk/write_sparc64_disk.c b/lib/libdisk/write_sparc64_disk.c index 657b947..bf6c248 100644 --- a/lib/libdisk/write_sparc64_disk.c +++ b/lib/libdisk/write_sparc64_disk.c @@ -72,6 +72,14 @@ Write_Disk(const struct disk *d1) sl->sl_part[i].sdkp_nsectors = c1->size; } + /* + * We need to fill in the "RAW" partition as well. Emperical data + * seems to indicate that this covers the "obviously" visible part + * of the disk, ie: sl->sl_ncylinders. + */ + sl->sl_part[2].sdkp_cyloffset = 0; + sl->sl_part[2].sdkp_nsectors = sl->sl_ncylinders * secpercyl; + sp1 = (u_short *)sl; sp2 = (u_short *)(sl + 1); sl->sl_cksum = cksum = 0; |