summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* #include the right thing for PC98phk2002-10-021-0/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-014-0/+4
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* Use correct printf format specifier to print unsigned longs.wollman2002-05-301-1/+1
|
* NOSHARED is meaningless in the bsd.lib.mk context.ru2002-05-131-1/+0
|
* Retire the bogus uses of the disklabel field d_sbsize and begin tophk2002-05-121-1/+1
| | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs.
* Modernize my email address.phk2002-03-2510-10/+10
|
* Modify Delete_Chunk() into Delete_Chunk2() which can take a flagsdillon2002-01-072-1/+20
| | | | | | | argument. Leave a compatibility shim for Delete_Chunk(). Implement DELCHUNK_RECOVER flag so sysinstall can ask libdisk to recover space when deleting a chunk.
* Sort the disknames when we get them from the kernel.phk2001-12-231-10/+23
| | | | Submitted by: <anarcat@anarcat.dyndns.org>
* Add auto-fill-on-delete. When deleting an 'A'uto created partitiondillon2001-12-092-17/+38
| | | | | | | | | | | | | | | | sysinstall will automatically expand the previous partition to take up the freed up space. So you can 'D'elete /home and /usr will get the combined space, or you can 'D'elete /tmp and /var will get the combined space. This gives the user, developer, or lay person a huge amount of flexibility in constructing partitions from an 'A'uto base. It takes only 3 or 4 keystrokes to achieve virtually any combination of having or not having a /tmp and/or /home after doing an 'A'uto create. Change 'A'uto creation of /var/tmp to 'A'uto creation /tmp, which should be less controversial. MFC after: 6 days
* One more fix for sysinstall/libdisk to create a device filematusita2001-11-111-6/+10
| | | | | | | | if and only if a target directory is devfs. Previous patch doesn't correct, it's unconditionally avoid to create a device file if kernel knows devfs. PR: 31109
* Add EFI GPT (238, 0xEE) and EFI System Parition (239, 0xEF)peter2001-10-151-0/+2
|
* Check to see if the devfs MIB exists and return 1 if it exists ratherjkh2001-10-101-0/+9
| | | | | than making device node(s). Submitted by: Hiroo ONO <hiroo@oikumene.gcd.org>
* Fixed bitrot in synopsis. The change of the return type ofbde2001-10-031-1/+1
| | | | | Set_Boot_Blocks() from void to int had not reached here. Callers still don't check the new return value.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* Add __FBSDID()s to libdiskdillon2001-09-309-27/+27
|
* Mark some functions as __printflike() and/or taking const char * argumentskris2001-08-201-0/+2
| | | | | | instead of char *. MFC after: 2 weeks
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+3
|
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-1/+1
| | | | with a trailing zero-width space: `e.g.\&'.
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
OpenPOWER on IntegriCloud