NetBSD/sbin/disklabel
tsutsui edc3e298c6 Fix an old bug in NATIVELABEL_ONLY case in PR/50729 by me. (sigh)
'disklabel -r -w' writes a disklabel at a wrong sector in
NATIVELABEL_ONLY && !LABELUSESMBR && LABELSECTOR != 0 case
if the target disk doesn't have a valid disklabel, due to
incorrect LABEL_OFFSET value.

Found and investigated on NetBSD/hp300 bootable CD tests.
Maybe this affects ports that use distrib/utils/x_disklabel
but have no MBR support, i.e. only NetBSD/hp300 10.0 and
NetBSD/ews4800mips 9.0 and later.

Should be pulled up to netbsd-10 and netbsd-9.
2024-05-15 12:47:22 +00:00
..
Makefile bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
bswap.c
bswap.h
disklabel.5 Change back various occurrences of \*[Le], \*[Ge] (less/greater equal) 2022-08-28 10:48:15 +00:00
disklabel.8
dkcksum.c
dkcksum.h
extern.h
interact.c
main.c Fix an old bug in NATIVELABEL_ONLY case in PR/50729 by me. (sigh) 2024-05-15 12:47:22 +00:00
pathnames.h
printlabel.c