summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
...
* Get this closer to working. The Write_Disk() function's for loop neededjhb2002-11-071-20/+13
| | | | | | | to use the same start condition as the i386 version. However, since Alpha's only have one fake "slice" from sysinstall's perspective we don't need to use a loop, but can just write out the BSD label in the first fake "slice".
* Remove unused MBR gunk leftover from i386.jhb2002-11-031-11/+1
|
* Fix to compile for pc98.nyan2002-11-031-0/+8
|
* Initialize d->bios_cyl. We know the media size in sectors, the numbermarcel2002-11-031-4/+10
| | | | | | | of heads end the number of sectors per track. If there's an obvious insanity (heads and sectors are both zero or the media size is not an integral multiple of heads times sector) we set the number of cylinders to zero.
* Add support for GPT:marcel2002-11-021-5/+45
| | | | | | | | | | 1. When the parition type is not an integer, try to parse the type as an UUID. If that succeeds, map the UUID to chunk_e. 2. For GPT partitions, pass the type constructed in point 1 above to Add_Chunk. While here, fix the MBREXT case by only checking if the first 3 characters are MBR. This avoids duplication.
* Add support for ia64. This is almost identical to i386, except thatmarcel2002-11-021-0/+20
| | | | | with GPT chunks of type "part" do not necessarily live under chunks of type "freebsd". We don't necessarily have a disklabel.
* Don't claim all MBR's have subtype 165 on i386.phk2002-11-022-3/+2
| | | | Spotted by: Frode Nordahl <frode@nordahl.net>
* Fill in partition 2 with with "whole disk" parameters.phk2002-11-011-0/+8
|
* Style(9) improvements.phk2002-10-311-6/+6
|
* Set the sector size for the disk.phk2002-10-311-0/+2
|
* Restore to pc98 support.nyan2002-10-313-50/+108
|
* Use ${MACHINE} variable instead of using '.if .endif' each machines.nyan2002-10-311-18/+1
|
* Add '#include <err.h>' for warn().nyan2002-10-311-0/+1
|
* Actually save the bootblock in the disk structure. Write the bootblockjake2002-10-312-2/+9
| | | | to the right place on the disk instead of srewn all over it.
* Untested alpha disk writer.phk2002-10-301-1/+1
|
* Write out 15 sectors of boot code.phk2002-10-301-0/+4
|
* Getting closer to getting things right:phk2002-10-292-4/+3
| | | | | | | Always ignore the RAW_PART for BSD. Having no quirks is not a mistake for an architecture. Tested by: DES
* Don't call warn(3).phk2002-10-291-5/+1
|
* Since make release is toast anyway, add wood to the pyre:phk2002-10-295-744/+314
| | | | | | | | | | | | | | This significantly rewamps libdisks discovery of existing disk layout. Please send me reports if this does not work as expected on i386 or sparc64 platforms. I need to sort out alpha, pc98 and ia64 (in that order) before testing on those platforms make a lot of sense. Belived to work for: i386 sparc64 Unknown state: pc98 alpha ia64
* Fix various minor issues.phk2002-10-291-3/+5
| | | | Don't explode on 'write' because we access a pointer we just freed.
* the 'd' partition hasn't been magic for years, so allocate it in naturalphk2002-10-291-1/+1
| | | | order instead of last.
* Add the write_spar64_disk.c to make life easier for testers.phk2002-10-291-0/+94
| | | | | This file depends on some major surgery in the rest of libdisk which is not yet committed.
* Add back ia64 support that was removed in the last few revisions.peter2002-10-274-1/+31
| | | | I've cloned write_ia64_disk.c from write_i386_disk.c.
* #ifdef out assignToPartition on non x86 arches to unbreak the worldgallatin2002-10-241-0/+2
| | | | on alpha, sparc64 and ia64
* More lobotomy:phk2002-10-238-111/+6
| | | | | | | 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 another 10 mindless #ifdefs.phk2002-10-231-59/+45
|
* Rely on sysctl kern.disks to be there, and get rid of one of the far toophk2002-10-231-69/+36
| | | | | many lists of disk device driver names in the system. At this point we should really get the names from the XML, but hey...
* Remove unnecessary ioctls tickling kernel side to realize that we fiddledphk2002-10-237-55/+3
| | | | 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-2311-322/+968
| | | | | | | 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.
* Separate the struct disklabel filling stuff from the rest of Write_FreeBSD().phk2002-10-231-42/+41
|
* - The GEOM system does not work on pc98.nyan2002-10-231-0/+4
| | | | - Fix to build w/o the HAVE_GEOM option.
* Add the new extra argument also in the alpha case.phk2002-10-231-1/+1
|
* No longer needed.phk2002-10-221-18/+0
|
* Remove the last traces of bogus MAKEDEV functionality.phk2002-10-222-24/+0
|
* Live with it: I had hoped to find a neat way to deal with all the magicphk2002-10-221-2/+9
| | | | numbers, but so far havn't come up with anything: Add an #ifdef PC98.
* Avoid a lot of #ifdef PC98 code by giving a couple of the Chunk functionsphk2002-10-225-56/+3
| | | | an extra argument for all archs.
* Swing the weed-whacker around libdisk:phk2002-10-2210-447/+73
| | | | | | | | | Constify some things. Staticize some things. Remove some unused things. Prototype some things. Don't install a gazillion man-pages links. Drop support for ON-TRACK disk-manager.
* Lobotomize MakeDev(), we don't need it with devfs.phk2002-10-211-0/+2
|
* Sigh, d_ntracks, not d_nheads.phk2002-10-211-1/+1
|
* fwheads and fwsectors got swapped underway.phk2002-10-211-2/+2
| | | | Approved by: sam
* Another baby step toward getting sysinstall working:sam2002-10-201-77/+128
| | | | | | | | | | | | o fillin media s/h/c fields from new XML phk just added; need this because sysinstall uses them in the fdisk look-alike o add new tags to xml parser o cleanup parser a touch; remove unused tags and move tag parsing stuff to a table to simplify future additions o redo callback to pass 64-bit values since mediasize overflows u_int32_t o loosen parsing sanity checks a touch to deal with new xml we must handle o move sector size probing to non-geom handling since we now get it from xml o remove WHOLE_DISK_SLICE buggery now that we get mediasize from xml
* o since you can't use DIOCGDINFO and DIOCGSLICEINFO on drive nodes with geom,sam2002-10-191-62/+456
| | | | | | | | | | | | | get the xml configuration for the devices and "parse" the information to get what's needed o replace #ifdef DEBUG constructs with DPRINT/DPRINTX to make the code more readable Note the xml "parser" is very very hackish and should be replaced with a real one. This one was done to be very small and special-purpose; don't think about copying it elsewhere. Approved by: phk
* not sure if this correct, but it compiles againsam2002-10-181-3/+3
|
* o ioctl DIOCGDINFO error wasn't checkedsam2002-10-171-7/+29
| | | | | | | | | | | | o memory wasn't reclaimed in certain cases o add more msgs under #ifdef DEBUG o rewrite tangle of for loops for clarity NB: Open_Disk should redo how it malloc's memory so the caller can free everything. Documentation says the caller can free the disk list to reclaim everything but this leaks the indirect strings. Fixing this is simple for the sysctl case but adds complexity to the fallback, non-sysctl, case.
* correct arg order to strlcpy/strlcat under #ifdef alphasam2002-10-171-2/+2
|
* Fix to check disk geometry.nyan2002-10-141-1/+18
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* Use buffer-safe string functions for paranoia.kris2002-10-121-11/+12
|
* Zero memory after malloc. This stops sysinstall from dumping corekris2002-10-121-0/+1
| | | | | | during disk probing with malloc debugging enabled. MFC after: 1 week
* Fix to support pc98.nyan2002-10-083-0/+12
|
* White-space change only. Move closer to style(9).phk2002-10-041-323/+322
|
OpenPOWER on IntegriCloud