summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disklabel.c
Commit message (Collapse)AuthorAgeFilesLines
...
* This update adds the support for != 512 byte sector SCSI devices toSøren Schmidt1996-12-011-3/+3
| | | | | | | | | | | | | | | | | | | the sd & od drivers. There is also slight changes to fdisk & newfs in order to comply with different sectorsizes. Currently sectors of size 512, 1024 & 2048 are supported, the only restriction beeing in fdisk, which hunts for the sectorsize of the device. This is based on patches to od.c and the other system files by John Gumb & Barry Scott, minor changes and the sd.c patches by me. There also exist some patches for the msdos filesys code, but I havn't been able to test those (yet). John Gumb (john@talisker.demon.co.uk) Barry Scott (barry@scottb.demon.co.uk) Notes: svn path=/head/; revision=20061
* Don't include <sys/conf.h> for the kernel in disk-related headers.Bruce Evans1996-09-201-1/+2
| | | | | | | | | | | | | It is needed for implementation details but very little of it is needed for the interface. Include it in the few places that didn't already include it. Include <sys/ioccom.h> in <sys/disklabel.h> (as already in <sys/diskslice.h>) so that all the disk-related headers are almost self-sufficient. Notes: svn path=/head/; revision=18429
* Clean up various compiler warnings. Most (if not all) were benignGary Palmer1996-05-081-2/+2
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=15680
* disksort() is gone, all drivers now use tqdisksort().Poul-Henning Kamp1996-05-031-72/+1
| | | | Notes: svn path=/head/; revision=15576
* Yet more b_flags fixes. The previous ones broke the clearing of B_DONEBruce Evans1996-04-191-1/+5
| | | | | | | | | | and B_READ before writing. This was was fatal. They also broke the clearing of B_INVAL before doing i/o. This didn't actually matter. Submitted by: mostly by joerg Notes: svn path=/head/; revision=15315
* More b_flags fixes.John Dyson1996-03-021-4/+4
| | | | Notes: svn path=/head/; revision=14315
* Fix a bug that b_flags was getting unnecessarily modified byJohn Dyson1996-03-011-3/+3
| | | | | | | | the slice code. The effect up to now has been insignficant, but improved buffer allocation code will break with this problem. Notes: svn path=/head/; revision=14312
* Update the wd.c driver to use the new TAILQ scheme for deviceJohn Dyson1995-11-231-1/+94
| | | | | | | | | buffer queue. Also, create a new subroutine 'tqdisksort' that is an improved version of the original disksort that also uses TAILQs. Notes: svn path=/head/; revision=12460
* Remove transitory labelling code. Labels are now handled by essentiallyBruce Evans1995-09-161-287/+16
| | | | | | | | the original 4.4lite code. Machine Specific Partitions are now handled separately. Notes: svn path=/head/; revision=10823
* Fix correct_writedisklabel() and writedisklabel(). Their setting ofBruce Evans1995-08-281-11/+14
| | | | | | | | | | | | | | bp->b_flags has been broken for many years: a) they didn't set B_BUSY for doing i/o. This has been fatal since 1995/07/25 when biodone() started checking that B_BUSY is set. b) they didn't set B_INVAL for releasing the buffer. This at best just put a useless buffer in the LRU queue for a little while. Fix a couple of spelling errors and complete a couple of function pointer declarations. Notes: svn path=/head/; revision=10389
* On closer inspection, it turns out that all of the callers of disksortDavid Greenman1995-08-071-5/+1
| | | | | | | are already at splbio()...so back out the last change to disksort. Notes: svn path=/head/; revision=9984
* Since buffers can be pulled off of the disk queue at interrupt time andDavid Greenman1995-08-071-2/+7
| | | | | | | | | disksort is called at non-interrupt time and can be actively traversing the list when that happens, there is a very small window of vulnerability. Close it by protecting disksort with splbio(). Notes: svn path=/head/; revision=9982
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-5/+5
| | | | Notes: svn path=/head/; revision=8876
* Woops, add back that #define...it's used later in the file.David Greenman1995-03-181-1/+8
| | | | Notes: svn path=/head/; revision=7133
* Fixed comments and removed b_cylinder #define.David Greenman1995-03-181-13/+5
| | | | Notes: svn path=/head/; revision=7126
* Integrated change from 1.1.5: Fixed broken disksort to sort by pblknoDavid Greenman1995-03-181-13/+6
| | | | | | | rather than by cylinder. Notes: svn path=/head/; revision=7125
* Finish the previous change. The device name got lost in diskerr().Bruce Evans1995-03-121-2/+2
| | | | Notes: svn path=/head/; revision=7018
* Use dsname() to get consistent names.Bruce Evans1995-02-221-13/+6
| | | | Notes: svn path=/head/; revision=6640
* Adjust slice names in diskerr() for the rearranged slice numbers. TheBruce Evans1995-02-161-11/+11
| | | | | | | | | | | | | | | mapping from numbers to names is messy for backwards compatibility. E.g., for driver "sd", unit "0": slice 0: omit the slice number for compatibility; names are sd0[a-h]. slice 1: omit the partition letter 'c' because the whole disk device shouldn't have anything to do with partitions; sd0 is the only name. slices 2-31: subtract 1 from slice number to compensate for the compatibility slice 0; names are sd0s[1-30][a-h]. Notes: svn path=/head/; revision=6505
* Print `slicename' and not a bogus pointer in diskerr()Bruce Evans1994-12-221-2/+2
| | | | Notes: svn path=/head/; revision=5185
* Duplicate readdisklabel() and writedisklabel() and remove DOS stuff fromBruce Evans1994-12-161-7/+145
| | | | | | | | | | from the copies to create correct_readdisklabel() and correct_writedisklabel(). Print the slice number in diskerr() if it is nonzero. Notes: svn path=/head/; revision=5126
* Julian Elischer's disklabel fixes.Jordan K. Hubbard1994-10-271-86/+146
| | | | Notes: svn path=/head/; revision=3940
* This basically allows you to stick a disklabel on any partition.Poul-Henning Kamp1994-10-171-1/+4
| | | | | | | | | | | For it to be useful, you must stick your disklabel on the partition which starts where the MBR says FreeBSD lives. If you don't do that, you might get a bad day. Oh, that probably also means that putting swap there is a bad idea... Notes: svn path=/head/; revision=3653
* POSSIBLE BOGUS CODE found, (related to dos-partitions) in ufs_disksubr.c,Poul-Henning Kamp1994-10-081-5/+11
| | | | | | | | look for CC_WALL. Cosmetics, a couple of unused vars. Notes: svn path=/head/; revision=3427
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.Rodney W. Grimes1994-05-251-4/+101
| | | | | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=1549
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+364
Notes: svn path=/head/; revision=1541