summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
Commit message (Collapse)AuthorAgeFilesLines
* Modernize my email address.phk2002-03-251-1/+1
|
* 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
* 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>
* Add __FBSDID()s to libdiskdillon2001-09-301-3/+3
|
* Mark some functions as __printflike() and/or taking const char * argumentskris2001-08-201-0/+2
| | | | | | instead of char *. MFC after: 2 weeks
* + add u_long sector_size to struct disk (documented in libdisk.3)jkh2001-05-131-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | + make Open_Disk sense the sector size by trying 512, 1024 and 2048 in this order. This makes the kernel note that dscheck(cd1): bio_bcount 512 is not on a sector boundary (ssize 2048) dscheck(cd1): bio_bcount 1024 is not on a sector boundary (ssize 2048) if 2048 is the sector size. If this worries anyone: the message is from /usr/src/sys/kern/subr_diskslice.c and shutups are to be placed there. + Have read_block and write_block use an additional parameter, the sector size. + replace all barfout calls with return NULL, 0, __LINE__, etc. Note that this does NOT emit diagnostics. More often than not, you don't want library functions to scribble on stderr -- it may not even be available. The right thing is to propagate the error condition to upper management. The app should take care of errors. + use d1->sector_size instead of 512 in various places. I've left many places untouched, especially those writing MBRs. I simply added another arg hardcoded as 512. This is because I would not know what I'm doing... I felt this approach would be reasonably backward compatible and not introduce any new bugs in critical software. Famous last words. Messing with MBRs might soon put me in the same screwup meister category as, uh, never mind. :-) + bump the max no of disks from 20 to 32 (due to PR 24503). PR: 8434 / 8436 / 24503 Submitted by: Jens Schweikhardt <schweikh@schweikhardt.net>
* Add spaces around operators.obrien2001-04-011-35/+35
| | | | | It's OK, the Project and afford them now -- they aren't as expensive as they used to be.
* Try to untangle some of the #ifdef spaghetti.obrien2001-04-011-3/+3
| | | | | | Also, looking to the future, don't assume all the world is an i386 and all its disk layout brain damage will be repeated by other platforms. So all the diking out if we are an Alpha, becomes adding in if we are an i386.
* Quiet warnings on the Alpha.obrien2001-04-011-2/+7
|
* Libraries should _never_ call exit() themselves (or its alternate spellingobrien2001-03-181-5/+4
| | | | | | | | | | | `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
* MFS: add ATA raid support for sysinstalljkh2000-11-061-0/+2
|
* Teach libdisk about 'aac'msmith2000-09-131-0/+2
|
* _PATH_DEV'ify libdiskjhb2000-06-281-1/+2
|
* Re-support "wd" if PC98 is defined. Because PC-98 still uses the wd driver.nyan2000-06-051-1/+5
|
* De-support 'wd'; with it making a dual appearance with 'ad', thingsmsmith2000-05-301-3/+1
| | | | | depending on libdisk to detect a list of actually-there disk devices were providing duplicate entries (eg. sysinstall).
* fix stray 'i' from editor.alfred2000-05-251-1/+1
|
* Teach libdisk about 'twe' disks.msmith2000-05-251-0/+2
|
* Changes for PC-98.kato2000-03-291-0/+22
|
* Fix pointer addition bug (3 -> 4).jlemon2000-03-091-1/+1
| | | | Submitted by: david.w.james@bt.com
* Correct device naming for IDA disk nodes (idad)jlemon2000-03-081-1/+1
|
* Hide more debugging behind isDebug(); what's currentlyjkh2000-02-181-2/+4
| | | | spewing out will only alarm people.
* Just on the off-chance that somebody might use libdisk in a totallyphk1999-12-221-5/+11
| | | | | | | | lobotomized environment, say booted from a floppy with no /etc full of password and group files, give sensible fallbacks for roots uid and operators gid. This might fix sysinstall.
* Catch up to the fact that block devices are toast.jkh1999-12-151-12/+38
| | | | | | | | Teach about the afd driver. Teach new char dev for ad driver. Make ownerships correct. Submitted by: jhb
* Remove 'sd' support. SCSI disks are known as 'da' these days.msmith1999-11-271-2/+0
|
* Remove BAD144 supportphk1999-11-271-7/+0
|
* Teach libdisk about the AMI and Mylex RAID drivers. You should be ablemsmith1999-11-021-0/+4
| | | | to install directly to arrays managed by these controllers now.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge from -stable; support for the 'ida' driver, move fla to major 102msmith1999-07-051-2/+4
|
* Fix my own Pie Floater.msmith1999-05-121-2/+2
| | | | (Correctly handle 'wd' devices)
* Clean up after another half-Danish.msmith1999-05-041-1/+3
| | | | Add 'ad' as another known disk driver of the same kind as 'wd'.
* Bring us one step closer to sysinstall'ing on a DOC2k device.phk1999-01-141-1/+3
|
* Changes for alpha support.jkh1999-01-081-1/+10
| | | | Submitted by: dfr
* Fixes for handling 'wfd' (and any other disk with a non-2-character name)msmith1998-10-271-6/+5
| | | | Submitted by: Some from Satoh Junichi (junichi@astec.co.jp)
* Remove references to the "od" device.gibbs1998-09-151-3/+1
|
* MF22: teach about LS-120 devices.jkh1998-03-201-1/+3
|
* Be more verbose if we can't determine device major/minor.jkh1998-02-101-1/+2
|
* Non-intrusive changes to support Justin's CAM stuff.jkh1998-01-161-1/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Close PR#2198:jkh1996-12-131-1/+3
| | | | | | | | | | | | | 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>
* Move some warn()'s into DEBUG space since I don't need them comingjkh1996-04-291-5/+2
| | | | out in my curses interfaces and spamming my screen.
* Make libdisk C++ aware:joerg1996-03-241-4/+4
| | | | | | | - 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.
* Update the -current sources from the 2.1 branch.peter1995-12-071-222/+284
| | | | Approved (in spirit) by: jkh
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-2/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-8/+8
|
* Align slices to cylinder boundries.jkh1995-05-241-1/+8
| | | | Submitted By: phk
* Do not allocate the first track.phk1995-05-201-1/+5
|
* Fixed the calculation of the reserved space for bad144. Thanks Rod!phk1995-05-151-2/+2
|
* Create_Chunk_DWIM will not allocate anything in the last cylinder of aphk1995-05-151-3/+18
| | | | | | CHUNK_BAD144 slice. Also mknod the 'c' partition for freebsd slices, so bad144(8) will have something to work on.
* Added MakeDevDisk(struct disk*, char *path);phk1995-05-121-2/+83
| | | | fixed bug in extended slice naming.
OpenPOWER on IntegriCloud