aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/rules.c
Commit message (Collapse)AuthorAgeFilesLines
* Make libdisk WARNS=4 clean.Jun Kuriyama2004-03-301-4/+4
| | | | | | | Glanced by: jhb Notes: svn path=/head/; revision=127595
* Change libdisk and sysinstall to use d_addr_t rather than u_long for diskJohn Baldwin2004-03-161-19/+20
| | | | | | | | | | | | | | | | | | | addresses. For arch's with 64-bit longs, this is a nop, but for i386 this allows sysinstall to properly handle disks and filesystems > 1 TB. Changes from the original patch include: - Use d_addr_t rather than inventing a blkcnt type based on int64_t. - Use strtoimax() rather than strtoull() to parse d_addr_t's from config files. - Use intmax_t casts and %jd rather than %llu to printf d_addr_t values. Tested on: i386 Tested by: kuriyama Submitted by: julian MFC after: 1 month Notes: svn path=/head/; revision=127081
* Turn Track_Aligned(), Prev_Track_Aligned(), Next_Track_Aligned(),Marcel Moolenaar2003-11-021-7/+22
| | | | | | | | | Cyl_Aligned(), Prev_Cyl_Aligned() and Next_Cyl_Aligned() into tautologies on ia64. GPT removes all notion of tracks, heads and sectors per track, so there are no alignment considerations. Notes: svn path=/head/; revision=121885
* Teach libdisk that AMD64 works just like i386Peter Wemm2003-04-301-0/+1
| | | | Notes: svn path=/head/; revision=114329
* Fix a compiler warning.Poul-Henning Kamp2003-04-231-0/+2
| | | | | | | Submitted by: David Leimbach <leimy2k@mac.com> Notes: svn path=/head/; revision=113901
* Libdisk does not need to include <sys/diskslice.h> any more.Poul-Henning Kamp2003-04-041-1/+0
| | | | | | | | | | | | Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h> Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well. Adjust includes in sys/boot accordingly. Notes: svn path=/head/; revision=113083
* Fixed style(9)Yoshihiro Takahashi2002-11-151-16/+27
| | | | Notes: svn path=/head/; revision=106949
* Restore to pc98 support.Yoshihiro Takahashi2002-10-311-5/+12
| | | | Notes: svn path=/head/; revision=106238
* Since make release is toast anyway, add wood to the pyre:Poul-Henning Kamp2002-10-291-9/+12
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=106135
* Swing the weed-whacker around libdisk:Poul-Henning Kamp2002-10-221-57/+21
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=105681
* Fix to support pc98.Yoshihiro Takahashi2002-10-081-0/+4
| | | | Notes: svn path=/head/; revision=104674
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:Poul-Henning Kamp2002-10-011-0/+1
| | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=104272
* Modernize my email address.Poul-Henning Kamp2002-03-251-1/+1
| | | | Notes: svn path=/head/; revision=93149
* Add __FBSDID()s to libdiskMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84200
* Add spaces around operators.David E. O'Brien2001-04-011-29/+29
| | | | | | | | It's OK, the Project and afford them now -- they aren't as expensive as they used to be. Notes: svn path=/head/; revision=75069
* Libraries should _never_ call exit() themselves (or its alternate spellingDavid E. O'Brien2001-03-181-1/+0
| | | | | | | | | | | | | | `err()'). libdisk does! and additionally libdisk gets confused on Alpha disks with foreign disklabels, throws up its hands and exits. This is the cause of the "going no where without my init" install bug on the Alpha. So now on the Alpha, rather than call err(), we print the error string and continue processing. Submitted by: jkh Notes: svn path=/head/; revision=74426
* - Allow support for MBR boot loaders that are longer than one sector. AsJohn Baldwin2000-07-121-25/+1
| | | | | | | | | with fdisk, ensure that they are a multiple of the sector size in length. - Axe all the 1024 cylinder checks as they are no longer relevant with the fixed bootstrap. Notes: svn path=/head/; revision=63030
* Changes for PC-98.KATO Takenori2000-03-291-0/+28
| | | | Notes: svn path=/head/; revision=58794
* Catch up to the fact that block devices are toast.Jordan K. Hubbard1999-12-151-1/+0
| | | | | | | | | | | Teach about the afd driver. Teach new char dev for ad driver. Make ownerships correct. Submitted by: jhb Notes: svn path=/head/; revision=54627
* Remove BAD144 supportPoul-Henning Kamp1999-11-271-30/+0
| | | | Notes: svn path=/head/; revision=53749
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-11/+78
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-5/+5
| | | | Notes: svn path=/head/; revision=8881
* Add check for rootfs > cyl 1024.Poul-Henning Kamp1995-05-081-2/+6
| | | | Notes: svn path=/head/; revision=8343
* General sanitation and cleanup. Killed the "reserved" type, it wasn't.Poul-Henning Kamp1995-05-061-6/+2
| | | | Notes: svn path=/head/; revision=8303
* If in Create_Chunk we (type==freebsd && (flags&CHUNK_ALIGN)), then we willPoul-Henning Kamp1995-05-051-3/+3
| | | | | | | align this chunk properly. Have at it Jordan... Notes: svn path=/head/; revision=8290
* Make the partitions names even more sensiblePoul-Henning Kamp1995-05-041-16/+29
| | | | | | | CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags. Notes: svn path=/head/; revision=8264
* Make the target for tst01 more sensible.Poul-Henning Kamp1995-05-031-4/+16
| | | | | | | | | | | | | | | | 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
* Now we do writes too.Poul-Henning Kamp1995-04-301-11/+65
| | | | Notes: svn path=/head/; revision=8178
* Names are assigned when chunks are created.Poul-Henning Kamp1995-04-291-1/+49
| | | | | | | Rules for only one fat & one extended in MBR. Notes: svn path=/head/; revision=8160
* Next Iteration, getting better.Poul-Henning Kamp1995-04-291-3/+30
| | | | | | | | | | | Made an All_FreeBSD() function. Added a cmd-line interface (lowest rank) to the tst01 program. The tst01 program is harmless (worst it can do is coredump), but it is instructive to run, you can see what the slice-code things of your disk... Notes: svn path=/head/; revision=8157
* Sanitize and explain a little bit... Implement the first rules...Poul-Henning Kamp1995-04-291-0/+95
Notes: svn path=/head/; revision=8156