OpenGrok
Cross Reference: getlabelsector.c
xref
: /
src
/
lib
/
libutil
/
getlabelsector.c
Home
|
History
|
Annotate
|
Download
|
only in
libutil
History log of
/src/lib/libutil/getlabelsector.c
Revision
Date
Author
Comments
1.5
04-Sep-2011
jmcneill
getlabelusesmbr: initialize 'oldlenp' parameter to sysctlbyname
1.4
30-Aug-2011
bouyer
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
1.3
17-Sep-2005
elad
Lint warnings.
1.2
24-Jan-2003
fvdl
Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
1.1
12-Dec-2002
scw
Add getlabelsector() and getlabeloffset() as wrappers around the
KERN_LABELSECTOR and KERN_LABELOFFSET sysctls.
Indexes created Tue Sep 30 11:09:46 GMT 2025