summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2022-08-28Change back various occurrences of \*[Le], \*[Ge] (less/greater equal)hgutch
and \*(ua (upwards arrow) to literal "<=", ">=" and "^" whenever appropriate (e.g., in code examples).
2021-11-03disklabel(8): convert malloc(x * y) to reallocarrnia
2021-05-29first check, then copychristos
2020-09-29s/occurence/occurrence/msaitoh
2020-09-29s/parition/partition/msaitoh
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-08-03Fix a trivial wrong comment. x68k's arch is not m68010.isaki
2019-07-03Fix NATIVELABEL_ONLY build.mlelstv
2019-07-02Sort and unify a bit. Add more macros.wiz
2019-07-02Add options to define labelsector and -offset and number of slices.mlelstv
Make options to chose alternate label position for systems using MBR more intuitive. -m now selects mode with MBR, -n selects mode without, independent of the machine defaults.
2018-06-27Avoid misaligned access in disklabel(8) in find_label()kamil
Introduce a new helper variable tlp and use it for memory access. Detected with MKSANITIZER/UBSan A patch by <christos>
2018-04-01Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)ryo
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@) - add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-01-24Remove port-acorn26skrll
OK core@
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-03-09use warnx() rather than warn() in a case where errno is not relevant.chs
2016-10-15revert part of revision 1.28. "e.g." is correct. bad igor!snj
2016-09-11Remove ignored Pp macro, highlighted by mandoc -Tlint.sevan
2016-09-11Grammar fix suggested by textproc/igor.sevan
Syntax fix highlighted by mandoc -Tlint. Bump date.
2016-09-11Document the version disklabel first appeared.sevan
Fix spelling mistakes. Replace contraction. Bump date.
2016-01-31fix broken patchchristos
2016-01-31PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8)christos
2015-07-18Fix build.htodd
2015-07-17Fix botch in "make disklabel a MI tool" changes in rev 1.2.tsutsui
After that chanage, "MAXPARTITIONS" constant is not for the target port. If host's MAXPARTITIONS is larger than a value of the target label and target endianness is different from the build host, bswaplabel() could overwrite data beyond the disklabel and primary boot stored after LABELSECTOR in images might be corrupted. This fixes boot failure of sun2 liveimage built by "build.sh -U -m sun2 release live-image" on TME. Should be pulled up to netbsd-7.
2015-04-29Add missing doc flags (B,M,m)christos
2015-04-27fix mistake in previouschristos
2015-04-25make table smaller in size.christos
2015-01-02Fix the 3 programs that use DTYPE_ (disklabel disk types) constants from thechristos
kernel. Two of them are inside ifdefs.
2014-09-19Add OpenRISC 1000 & UCB RISC-V platform support.matt
2014-08-10Fix typo in "dreamcast" port name.apb
2014-08-10Changes to existing files to enable building AARCH64 userland.matt
evbarm64-el This is clang only. While gcc4.8 supports aarch64, no netbsd support has been written for aarch64 with gcc4.8.
2014-07-15Print uint32_t field as such.joerg
2014-02-24Rename NetBSD/hp700 to NetBSD/hppa.skrll
Unfortunately our VCS isn't very helpful here.
2013-08-22Add m68000/coldfire.matt
Add evbcf.
2013-08-11A number of new earm MACHINE_ARCH have shown up recently; make sureriz
we can deduce their endianness.
2013-05-15%td is for ptrdiff_t not for off_tchristos
2013-05-13CVE 1020933: Prevent integer overflow by using wider typechristos
2013-05-13CVE 1020935: Prevent overflowchristos
2013-05-05Add an arch_endian entry for x86_64.skrll
2013-05-03Make sure to initialize byteorder if native.matt
2013-05-03Fix tpyos.matt
2013-05-03Make disklabel a MI tool. It will use MACHINE/MACHINE_ARCH to determinematt
the disklabel params as well as allowing command-line options of -M <machine> and -B {le,be} to specify MACHINE and byteorder to be used.
2013-01-17move dk_ioctl to a header file for the benefit of x-building.christos
2013-01-15- simplify getinput.christos
- add adjust command.
2012-04-08PR bin/45744cyber
from Julian Fagir Removing options that have had implementations removed. -b: removed in -r1.4 -s: removed in -r1.2
2011-08-30Add getlabelusesmbr(), as proposed inbouyer
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.
2011-08-29Use __deadjoerg
2011-08-18Define USE_MBR for ofppc.phx
2011-08-02Sort sections. Remove comma in enumeration of two items.wiz
2011-07-25mention that we don't handle more than 2TB disks/partitions.christos