summaryrefslogtreecommitdiff
path: root/lib/libdisk/disk.c
Commit message (Collapse)AuthorAgeFilesLines
* - Added support for installing boot0 and boot0.5 for PC-98.Yoshihiro Takahashi2000-08-121-2/+55
| | | | | | | - Cosmetic changes. Notes: svn path=/head/; revision=64555
* - Fixed warnings and typo.Yoshihiro Takahashi2000-08-081-1/+4
| | | | | | | | | - Recognize slice type 0x24 as FAT (only PC-98). Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp> Notes: svn path=/head/; revision=64379
* Don't use kern.disks sysctl on PC-98 because the wd driver doesn't callYoshihiro Takahashi2000-08-071-0/+4
| | | | | | | disk_create() function. Notes: svn path=/head/; revision=64324
* - Allow support for MBR boot loaders that are longer than one sector. AsJohn Baldwin2000-07-121-9/+10
| | | | | | | | | 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
* _PATH_DEV'ify libdiskJohn Baldwin2000-06-281-4/+5
| | | | Notes: svn path=/head/; revision=62223
* Let Disk_Names() take advantage of the kern.disks sysctl if it'sNeil Blakey-Milner2000-06-231-0/+15
| | | | | | | | | | | | available. If not, it falls back to the existing hack and slash method. A positive side effect is that non-root users may now use Disk_Names(), for non-dangerous libh/disk.tcl testing. Reviewed by: phk Notes: svn path=/head/; revision=62008
* Re-support "wd" if PC98 is defined. Because PC-98 still uses the wd driver.Yoshihiro Takahashi2000-06-051-0/+4
| | | | Notes: svn path=/head/; revision=61279
* /dev/rXXX -> /dev/XXXMike Smith2000-05-311-3/+3
| | | | | | | | This should fix sysinstall and other tools that don't expect the 'r' devices to exist anymore (and thus don't create them). Notes: svn path=/head/; revision=61101
* De-support 'wd'; with it making a dual appearance with 'ad', thingsMike Smith2000-05-301-1/+1
| | | | | | | | depending on libdisk to detect a list of actually-there disk devices were providing duplicate entries (eg. sysinstall). Notes: svn path=/head/; revision=61093
* Teach libdisk about 'twe' disks.Mike Smith2000-05-251-1/+1
| | | | Notes: svn path=/head/; revision=60908
* catch up to the modern ATAPI disk naming conventions and add floppyJordan K. Hubbard2000-05-241-1/+1
| | | | | | | | | disks. Submitted by: bde Notes: svn path=/head/; revision=60886
* Raw devices are now the normal device name, not prefixed with 'r'.David E. O'Brien2000-04-191-1/+1
| | | | Notes: svn path=/head/; revision=59399
* Changes for PC-98.KATO Takenori2000-03-291-0/+76
| | | | Notes: svn path=/head/; revision=58794
* Fix fd leak in libdisk's Disk_Names()Warner Losh2000-03-101-0/+4
| | | | Notes: svn path=/head/; revision=57898
* Correct device naming for IDA disk nodes (idad)Jonathan Lemon2000-03-081-1/+1
| | | | Notes: svn path=/head/; revision=57831
* Remove 'sd' support. SCSI disks are known as 'da' these days.Mike Smith1999-11-271-1/+1
| | | | Notes: svn path=/head/; revision=53784
* Teach libdisk about the AMI and Mylex RAID drivers. You should be ableMike Smith1999-11-021-1/+1
| | | | | | | to install directly to arrays managed by these controllers now. Notes: svn path=/head/; revision=52786
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Merge from -stable; support for the 'ida' driver, move fla to major 102Mike Smith1999-07-051-2/+2
| | | | Notes: svn path=/head/; revision=48585
* Back out the last change to disk.c - a kernel change removed the need.Doug Rabson1999-05-091-2/+1
| | | | | | | Enabled writing to the disklabel when writing a disk (only affects alpha). Notes: svn path=/head/; revision=46787
* Make libdisk see the existing partitiions on the alpha.Doug Rabson1999-05-081-1/+2
| | | | Notes: svn path=/head/; revision=46731
* Clean up after another half-Danish.Mike Smith1999-05-041-2/+2
| | | | | | | Add 'ad' as another known disk driver of the same kind as 'wd'. Notes: svn path=/head/; revision=46455
* More egcs warning fixes:Warner Losh1999-04-251-11/+1
| | | | | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr Notes: svn path=/head/; revision=46079
* More support for Alpha installs.Jordan K. Hubbard1999-01-291-1/+63
| | | | | | | Submitted by: dfr Notes: svn path=/head/; revision=43393
* Add "fla" to Disk_Names()Poul-Henning Kamp1998-12-191-2/+2
| | | | Notes: svn path=/head/; revision=41941
* Teach libdisk about alpha boot blocks.Doug Rabson1998-10-061-1/+22
| | | | Notes: svn path=/head/; revision=40000
* Eliminate unaligned access on Alpha and also neaten up this code a little.Jordan K. Hubbard1998-09-301-5/+25
| | | | | | | Submitted by: dfr Notes: svn path=/head/; revision=39844
* Remove references to the "od" device.Justin T. Gibbs1998-09-151-2/+2
| | | | Notes: svn path=/head/; revision=39252
* Add new NetBSD FFS with FDISK partition ID 0xa9David E. O'Brien1998-05-191-1/+2
| | | | | | | Obtained from: Frank van der Linden <frank@wins.uva.nl> Notes: svn path=/head/; revision=36182
* Change an arbitarly hardcoded `10' to MAX_NO_DISKS, which is currently "20".David E. O'Brien1998-05-151-2/+2
| | | | | | | | Otherwise can't see sd10 (obtained using wired down sd unit numbers), reguardless of the number of actual disks you have. Notes: svn path=/head/; revision=36081
* Add Compaq & SCO partition types.Jordan K. Hubbard1998-03-221-1/+3
| | | | | | | | PR: 6092 Submitted by: Drew Derbyshire <ahd@kew.com> Notes: svn path=/head/; revision=34776
* MF22: teach about LS-120 devices.Jordan K. Hubbard1998-03-201-2/+2
| | | | Notes: svn path=/head/; revision=34729
* Add more AIX/DOS/Win95 partition typesAndrey A. Chernov1998-03-141-4/+12
| | | | Notes: svn path=/head/; revision=34579
* Add primary fat-32Andrey A. Chernov1998-03-071-1/+3
| | | | Notes: svn path=/head/; revision=34148
* Reconized OpenBSD partitions.David E. O'Brien1998-03-051-1/+3
| | | | Notes: svn path=/head/; revision=34037
* Non-intrusive changes to support Justin's CAM stuff.Jordan K. Hubbard1998-01-161-2/+2
| | | | Notes: svn path=/head/; revision=32558
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Adds slice_type_name() which extends chunk_n[] for subtype's too.David E. O'Brien1997-01-231-0/+37
| | | | | | | Curorary review by: phk Notes: svn path=/head/; revision=21958
* 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
* Close PR#2198:Jordan K. Hubbard1996-12-131-2/+2
| | | | | | | | | | | | | | | | 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-271-2/+4
| | | | Notes: svn path=/head/; revision=19989
* Move some warn()'s into DEBUG space since I don't need them comingJordan K. Hubbard1996-04-291-5/+25
| | | | | | | out in my curses interfaces and spamming my screen. Notes: svn path=/head/; revision=15441
* Make libdisk C++ aware:Joerg Wunsch1996-03-241-6/+6
| | | | | | | | | | - 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
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-1/+6
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-9/+9
| | | | Notes: svn path=/head/; revision=8881
* Recognize slice type #6 as dosPoul-Henning Kamp1995-05-081-3/+8
| | | | | | | handle OnTrack Disk manager correctly. Notes: svn path=/head/; revision=8346
* General sanitation and cleanup. Killed the "reserved" type, it wasn't.Poul-Henning Kamp1995-05-061-2/+1
| | | | Notes: svn path=/head/; revision=8303
* Make the partitions names even more sensiblePoul-Henning Kamp1995-05-041-2/+1
| | | | | | | 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-031-2/+2
| | | | | | | Make the reassignment of partition names less bogus. Notes: svn path=/head/; revision=8250
* Export the chunk names properly.Jordan K. Hubbard1995-05-031-1/+13
| | | | Notes: svn path=/head/; revision=8241