summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
* + add u_long sector_size to struct disk (documented in libdisk.3)jkh2001-05-138-80/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | + 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-018-244/+248
| | | | | It's OK, the Project and afford them now -- they aren't as expensive as they used to be.
* Correct a comment.obrien2001-04-011-1/+1
|
* Try to untangle some of the #ifdef spaghetti.obrien2001-04-012-12/+12
| | | | | | 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.
* Add back <err.h> for warn().obrien2001-04-011-0/+1
| | | | | (of course it's pretty stupid to call it, as printf doesn't work w/in sysinstall, and sysinstall is the only consumer of libdisk)
* Quiet warnings on the Alpha.obrien2001-04-012-3/+11
|
* Add back <err.h> for warn().obrien2001-04-011-0/+1
| | | | | (of course it's pretty stupid to call it, as printf doesn't work w/in sysinstall, and sysinstall is the only consumer of libdisk)
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Libraries should _never_ call exit() themselves (or its alternate spellingobrien2001-03-189-33/+33
| | | | | | | | | | | `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
* Fixed bitrot in prototype(s) in synopsis.bde2001-02-051-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-291-1/+1
|
* Do install-time configuration of the i386 boot0 boot manager. Atrnordier2000-12-121-1/+23
| | | | | | | | | present, this is limited to turning on the packet option if any of disk slices begin above cylinder 1023. The effect of this change should therefore be to automatically enable LBA support, as needed, when installing FreeBSD. Something-of-the-kind-requested-by: peter
* logru2000-11-221-3/+5
|
* Use Fx macro wherever possible.ru2000-11-141-1/+3
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+1
|
* MFS: add ATA raid support for sysinstalljkh2000-11-062-2/+4
|
* Use kern.disks sysctl on PC-98.nyan2000-10-211-4/+0
|
* Turn dkcksum() into an __inline function.phk2000-09-162-3/+1
| | | | Change its type to u_int_16_t.
* Teach libdisk about 'aac'msmith2000-09-132-2/+4
|
* - Added support for installing boot0 and boot0.5 for PC-98.nyan2000-08-123-2/+75
| | | | - Cosmetic changes.
* - Fixed warnings and typo.nyan2000-08-082-1/+6
| | | | | | - Recognize slice type 0x24 as FAT (only PC-98). Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
* Don't use kern.disks sysctl on PC-98 because the wd driver doesn't callnyan2000-08-071-0/+4
| | | | disk_create() function.
* - Allow support for MBR boot loaders that are longer than one sector. Asjhb2000-07-126-62/+16
| | | | | | 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.
* Don't call printf without a format string.kris2000-07-111-1/+1
|
* _PATH_DEV'ify libdiskjhb2000-06-284-7/+11
|
* Let Disk_Names() take advantage of the kern.disks sysctl if it'snbm2000-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
* Re-support "wd" if PC98 is defined. Because PC-98 still uses the wd driver.nyan2000-06-052-1/+9
|
* /dev/rXXX -> /dev/XXXmsmith2000-05-313-5/+5
| | | | | This should fix sysinstall and other tools that don't expect the 'r' devices to exist anymore (and thus don't create them).
* De-support 'wd'; with it making a dual appearance with 'ad', thingsmsmith2000-05-302-4/+2
| | | | | 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-252-1/+3
|
* catch up to the modern ATAPI disk naming conventions and add floppyjkh2000-05-241-1/+1
| | | | | | disks. Submitted by: bde
* Reassemble a sentence that has been botched in rev 1.4.joerg2000-04-251-1/+1
| | | | Reported by: Alexander Leidinger <Alexander@leidinger.net>
* Introduce .Lb macro to libdisk manpagephantom2000-04-221-1/+3
|
* Raw devices are now the normal device name, not prefixed with 'r'.obrien2000-04-191-1/+1
|
* Changes for PC-98.kato2000-03-299-0/+322
|
* lowercase error messagecharnier2000-03-261-1/+1
|
* Fix fd leak in libdisk's Disk_Names()imp2000-03-101-0/+4
|
* 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-082-2/+2
|
* Hide more debugging behind isDebug(); what's currentlyjkh2000-02-181-2/+4
| | | | spewing out will only alarm people.
* Replace beforeinstall target with new variables used by .mk system.rgrimes2000-01-141-5/+1
| | | | Reviewed by: marcel, and make world
* 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-152-13/+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-272-3/+1
|
* Remove BAD144 supportphk1999-11-275-42/+0
|
* Teach libdisk about the AMI and Mylex RAID drivers. You should be ablemsmith1999-11-022-1/+5
| | | | to install directly to arrays managed by these controllers now.
* fix couple mdoc errorphantom1999-10-281-9/+7
| | | | mention library name in header (.Nd field) - it allows to use "man -k libdisk"
* $Id$ -> $FreeBSD$peter1999-08-2812-12/+12
|
OpenPOWER on IntegriCloud