summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/disklabel.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Constify dktypenames and fstypenames in libc.guenther2020-11-141-3/+3
| | | | | | Adjust variable declaration in disklabel to match. ok millert@ deraadt@
* Nuke union of d_packname with un_d_boot0 & un_d_boot1, keepingkrw2015-10-251-5/+0
| | | | | | | d_packname as a simple field. Also nuke the access #defines, and support for b0 and b1 capabilities in disktab. ok deraadt@ miod@
* Zap a few stray blanks.krw2015-08-131-2/+2
|
* Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt2015-01-201-1/+1
| | | | | delete <sys/param.h> if now possible ok guenther
* Move to the <limits.h> universe.deraadt2015-01-161-1/+2
| | | | review by millert, binary checking process with doug, concept with guenther
* In getdiskbyname() set partition size with DL_SETPSIZE(). Make surekrw2013-11-161-2/+4
| | | | | | d_secperunith and p_offseth are set to 0 since they can't be read from disktab and lower 32 bits (d_secperunit and p_offset) are read directly from the input.
* Recycle unused disklabel fields in order to create a disklabel uniquejsing2010-04-231-2/+0
| | | | | | | identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
* Recycle four ancient fields in the disklabel structure, replacing them withderaadt2009-06-041-4/+0
| | | | | | | | | | | | bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
* mark the non-handling of 48 bits units with XXXotto2007-06-011-0/+3
|
* when producing a v1 label, set the version!!!!otto2007-05-291-0/+1
|
* Updated disklabel format to support larger disks and partitions. Weotto2007-05-291-5/+7
| | | | | | | | | | | free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
* Zap D_REMOVABLE flag from disklabel. If you didn't already know thatkrw2006-09-261-2/+0
| | | | | | | | floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@
* Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They werekrw2006-09-241-2/+0
| | | | | | | not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@
* kill atoi(), correct signedness of internal API gettype(); ok a few peoplederaadt2006-04-021-5/+6
|
* zap remaining rcsid.espie2005-08-081-4/+0
| | | | | | Kill old files that are no longer compiled. okay theo
* deregister (and deauto!). ok millert@ marco@otto2005-03-251-5/+5
|
* ansification; checked by pvalderaadt2003-06-111-6/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-241-7/+7
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-2/+2
|
* off-by-one calculation error; getcwd() would return NULL if the buffer wasderaadt2000-07-191-2/+2
| | | | the needed length + terminating byte + 1; that 1 is not needed; assar
* tabifykstailey1997-07-231-2/+2
|
* Remove dead codetholo1996-09-151-16/+1
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+195