diff options
author | marcel <marcel@FreeBSD.org> | 2002-11-10 20:47:02 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-11-10 20:47:02 +0000 |
commit | 474626e5e14389fe2ce018c2ee0288923d1f425e (patch) | |
tree | 7b11c03cdd246801d3fb6d308d26f7445c30ec9c /usr.sbin/sade/disks.c | |
parent | 49a44a6174552e82b508c71655b844f7f1f42d46 (diff) | |
download | FreeBSD-src-474626e5e14389fe2ce018c2ee0288923d1f425e.zip FreeBSD-src-474626e5e14389fe2ce018c2ee0288923d1f425e.tar.gz |
General cleanup:
o Remove all code guarded by !defined(__ia64__). This file is
specifically written for ia64,
o Handle the case when read_block() or write_block() fails. We
don't want sysinstall(8) to signal a thumbs-up on error,
o Set the starting (cyl,hd,sect) triple to 0xFFFFFF when either
bios_hd or bios_sect is zero or the LBA us not representable
with the triple. In that case automaticly initialize the
ending triple with 0xFFFFFF as well,
o Reindent Write_Int32() as it was different than the rest of
the file,
o Remove some unused variables that appeared to be used but
were effectively useless.
o Plug a memory leak: The second timne we read the MBR, we write
out a modified block, but didn't free the memory after writing.
o Replace d1->sector_size with 512 when we read/write the MBR.
We ignore the sector size in cases we shouldn't but adhered to
it in cases it would be wrong if the sector_size wasn't 512.
This file should eventually be rewritten to write out a GPT. For
now, a MBR will do...
Diffstat (limited to 'usr.sbin/sade/disks.c')
0 files changed, 0 insertions, 0 deletions