summaryrefslogtreecommitdiff
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
* Non-intrusive changes to support Justin's CAM stuff.Jordan K. Hubbard1998-01-162-3/+5
| | | | Notes: svn path=/head/; revision=32558
* Fix erroneous format string.John Polstra1997-11-181-2/+2
| | | | Notes: svn path=/head/; revision=31222
* Fixed this header to compile with gcc -pedantic -Werror (removed commaBruce Evans1997-03-191-2/+2
| | | | | | | at end of enum). Notes: svn path=/head/; revision=24014
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2212-12/+12
| | | | Notes: svn path=/head/; revision=22993
* Adds slice_type_name() which extends chunk_n[] for subtype's too.David E. O'Brien1997-01-234-1/+63
| | | | | | | Curorary review by: phk Notes: svn path=/head/; revision=21958
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1412-12/+12
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Close PR#2198:Jordan K. Hubbard1996-12-132-3/+5
| | | | | | | | | | | | | | | | I've added an installation from optical disk drive facility. This enables FreeBSD to be installed from an optical disk, which may be formatted in "super floppy" style or sliced into MSDOS-FS and UFS partitions. Note: ncr.c should be reviewed by Stefan Esser <se@freebsd.org> and cd.c by Joerg Wunsch <joerg@freebsd.org> before bringing this into 2.2. Submitted-By: Shunsuke Akiyama <akiyama@kme.mei.co.jp> Notes: svn path=/head/; revision=20390
* Improve the Dangerously Dedidcated mode a bit. Not much, but a bit better.Poul-Henning Kamp1996-11-275-65/+57
| | | | Notes: svn path=/head/; revision=19989
* cmp -s || install -c ==> install -CPeter Wemm1996-08-301-5/+2
| | | | Notes: svn path=/head/; revision=17930
* Cast lseek arguments appropriately.Jordan K. Hubbard1996-07-092-8/+8
| | | | | | | Submitted-By: "Frank ten Wolde" <franky@pinewood.nl> Notes: svn path=/head/; revision=17032
* Removed -g from CFLAGS.Bruce Evans1996-06-231-2/+2
| | | | Notes: svn path=/head/; revision=16613
* ``mv'' -> ``mv -f''Wolfram Schneider1996-05-071-1/+3
| | | | | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root Notes: svn path=/head/; revision=15679
* Fix mis-declared static arrays that made sysinstall SEGV inJordan K. Hubbard1996-04-291-2/+2
| | | | | | | | | Set_Boot_Blocks(). Boy, this one had me tearing my hair out! I hate how the loader distinguishes between `extern char *foo' and `extern char foo[]' sometimes! :-) Notes: svn path=/head/; revision=15444
* Move some warn()'s into DEBUG space since I don't need them comingJordan K. Hubbard1996-04-293-11/+34
| | | | | | | out in my curses interfaces and spamming my screen. Notes: svn path=/head/; revision=15441
* Make libdisk C++ aware:Joerg Wunsch1996-03-246-137/+147
| | | | | | | | | | - add __BEGIN_DECLS and __END_DECLS, - add a bunch of ``const'' qualifiers all over the place, - rename the `private' struct member into `private_data' to avoid the clash with the C++ keyword. Notes: svn path=/head/; revision=14792
* Fix bogus MLINKS line. When is the old libdisk going to go away, BTW?Jordan K. Hubbard1996-03-181-2/+1
| | | | Notes: svn path=/head/; revision=14669
* libdisk is now `adult':Joerg Wunsch1996-03-172-1/+353
| | | | | | | | | . install libdisk.h into /usr/include . add a (preliminary) manpage, mostly featured after phk's comments in libdisk.h Notes: svn path=/head/; revision=14665
* Repository copy src/release/libdisk to src/lib/libdisk as per recentPeter Wemm1996-03-171-0/+1
| | | | | | | | | | | | | discussion on -core about disk partitioning tools etc. Add NOPIC=yes to Makefile to prevent any possibility of version mismatch because of the potential grave consequences. (as suggested by phk) Note that this is also on RELENG_2_1_0, since the sysinstall stuff is hopefully going to remain in sync. Notes: svn path=/head/; revision=14657
* Update the -current sources from the 2.1 branch.Peter Wemm1995-12-075-234/+311
| | | | | | | Approved (in spirit) by: jkh Notes: svn path=/head/; revision=12661
* Brought in changes from rev 1.14.2.1 into main branch.David Greenman1995-08-261-1/+10
| | | | Notes: svn path=/head/; revision=10286
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-118-26/+140
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-308-79/+79
| | | | Notes: svn path=/head/; revision=8881
* Remove Ontrack special from All_FreeBSD().Poul-Henning Kamp1995-05-253-8/+9
| | | | | | | Add chunk->disk pointer. Notes: svn path=/head/; revision=8745
* Align slices to cylinder boundries.Jordan K. Hubbard1995-05-243-7/+18
| | | | | | | Submitted By: phk Notes: svn path=/head/; revision=8721
* Fix a typo, now there should always be an active slice.Poul-Henning Kamp1995-05-211-2/+2
| | | | Notes: svn path=/head/; revision=8670
* Do not allocate the first track.Poul-Henning Kamp1995-05-201-1/+5
| | | | Notes: svn path=/head/; revision=8657
* Remove two printfs before Jordan has a fit over them.Poul-Henning Kamp1995-05-181-4/+1
| | | | Notes: svn path=/head/; revision=8617
* Fixed the calculation of the reserved space for bad144. Thanks Rod!Poul-Henning Kamp1995-05-151-2/+2
| | | | Notes: svn path=/head/; revision=8538
* Create_Chunk_DWIM will not allocate anything in the last cylinder of aPoul-Henning Kamp1995-05-151-3/+18
| | | | | | | | | CHUNK_BAD144 slice. Also mknod the 'c' partition for freebsd slices, so bad144(8) will have something to work on. Notes: svn path=/head/; revision=8527
* Added MakeDevDisk(struct disk*, char *path);Poul-Henning Kamp1995-05-123-4/+93
| | | | | | | fixed bug in extended slice naming. Notes: svn path=/head/; revision=8477
* Get the CHUNK_COMPAT_BSD flag right.Poul-Henning Kamp1995-05-113-45/+40
| | | | Notes: svn path=/head/; revision=8436
* Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.Poul-Henning Kamp1995-05-104-4/+53
| | | | Notes: svn path=/head/; revision=8404
* Recognize slice type #6 as dosPoul-Henning Kamp1995-05-084-12/+28
| | | | | | | handle OnTrack Disk manager correctly. Notes: svn path=/head/; revision=8346
* Add check for rootfs > cyl 1024.Poul-Henning Kamp1995-05-081-2/+6
| | | | Notes: svn path=/head/; revision=8343
* I bet Jordan is tearing his hair out, trying to figure the previous patchPoul-Henning Kamp1995-05-081-2/+2
| | | | | | | out... here is the real thing. Notes: svn path=/head/; revision=8341
* Fix bug.Poul-Henning Kamp1995-05-081-1/+2
| | | | Notes: svn path=/head/; revision=8339
* Whoops! An extra paren somehow got in there. Fixed.Jordan K. Hubbard1995-05-071-2/+2
| | | | Notes: svn path=/head/; revision=8312
* Always zero new chunks - keeps things like the private structures from havingJordan K. Hubbard1995-05-071-2/+2
| | | | | | | bogus data in them. Notes: svn path=/head/; revision=8311
* General sanitation and cleanup. Killed the "reserved" type, it wasn't.Poul-Henning Kamp1995-05-066-79/+76
| | | | Notes: svn path=/head/; revision=8303
* If in Create_Chunk we (type==freebsd && (flags&CHUNK_ALIGN)), then we willPoul-Henning Kamp1995-05-052-8/+41
| | | | | | | align this chunk properly. Have at it Jordan... Notes: svn path=/head/; revision=8290
* Make the partitions names even more sensiblePoul-Henning Kamp1995-05-047-31/+56
| | | | | | | CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags. Notes: svn path=/head/; revision=8264
* Add the private void *pointer to the chunks, and the functions to manage it.Poul-Henning Kamp1995-05-034-8/+41
| | | | | | | Make the reassignment of partition names less bogus. Notes: svn path=/head/; revision=8250
* Export the chunk names properly.Jordan K. Hubbard1995-05-033-7/+16
| | | | Notes: svn path=/head/; revision=8241
* Make the target for tst01 more sensible.Poul-Henning Kamp1995-05-035-43/+60
| | | | | | | | | | | | | | | | Remove bogus targets. Allocate partition letters as follows: lowest offset "flags & CHUNK_IS_ROOT" gets 'a', lowest offset "subtype==FS_SWAP" gets 'b' the rest is allocated in offset order from this sequence "defghab". This will generally make sense. Added rules to complain if more than one CHUNK_IS_ROOT or more than one FS_SWAP per FreeBSD chunk. Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk. Run Fixup_Names in Open_Disk. Notes: svn path=/head/; revision=8233
* foo -> unknownJordan K. Hubbard1995-05-021-2/+2
| | | | Notes: svn path=/head/; revision=8228
* I need Open_Disk() to not spew on my screen. #ifdef out some diagnosticJordan K. Hubbard1995-05-021-1/+3
| | | | | | | printfs. Notes: svn path=/head/; revision=8227
* foo -> unknown.Jordan K. Hubbard1995-05-012-8/+8
| | | | | | | I have to be able to show this stuff to the user. :-) Notes: svn path=/head/; revision=8207
* Stick a more BSD-like Makefile here so that I can link to the library.Jordan K. Hubbard1995-05-011-14/+15
| | | | Notes: svn path=/head/; revision=8197
* start CHS is 0xff,0xff,0xff if past 1024.Poul-Henning Kamp1995-05-013-19/+68
| | | | | | | | | end CHS is 1023,bios_hd,bios_sect if past 1024. This way we can find bios the geometry again. Added a primitive "scan" to tst01. Notes: svn path=/head/; revision=8196
* Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).Poul-Henning Kamp1995-04-304-43/+45
| | | | | | | | Get the CHS's right. Get the disklabels (more) right. Notes: svn path=/head/; revision=8192