summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/write_ia64_disk.c
Commit message (Collapse)AuthorAgeFilesLines
* - Remove unused old disk pointers from Write_FreeBSD() and Fill_Disklabel()jhb2003-02-041-1/+1
| | | | | functions. - Clean up a few signed/unsigned warnings.
* Fixed style(9)nyan2002-11-151-10/+12
|
* General cleanup:marcel2002-11-101-96/+68
| | | | | | | | | | | | | | | | | | | | | | | 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...
* Add back ia64 support that was removed in the last few revisions.peter2002-10-271-0/+8
| | | | I've cloned write_ia64_disk.c from write_i386_disk.c.
* More lobotomy:phk2002-10-231-5/+1
| | | | | | | remove CHUNK_BSD_COMPAT, it was a bad idea, and now its gone. remove DOSPTYP_ONTRACK, missed in OnTrack removal commit. unifdef -DHAVE_GEOM make tst01 compile again.
* Remove unnecessary ioctls tickling kernel side to realize that we fiddledphk2002-10-231-11/+0
| | | | with the disk. GEOM will automatically retaste when we closet he filedesc.
* Untangle #ifdefs in the write-end of things by giving each arch itsphk2002-10-231-0/+212
own file and own copy of WriteDisk() to do things in. This should have happened years ago, instead of adding #ifdefs all over the place.
OpenPOWER on IntegriCloud