Age | Commit message (Collapse) | Author |
|
from -Tascii to -Tlocale, even though not quite yet because
there are more important things to do first.
But let's already make -Tascii explicit in the build system
right now, it is safer anyway.
|
|
|
|
this hardware alive is becoming increasingly difficult, and I should heed the
message sent by the three disks which have died on me over the last few days.
Noone sane will mourn these ports anyway. So long, and thanks for the fish.
|
|
permits before release, and is pointless without other following diffs
to justify it that will not make release.
Should fix segfault's during install reported by Rod Whitworth on tech@
|
|
memory to NULL.
|
|
when calling mpfree() with the array.
|
|
mountpoints array.
|
|
fields that are ignored when reading an ascii disklabel. Actually
remove the parsing of 'total sectors', which was just above the line
trying to skip said parsing.
Spotted when halex@ forced me to read this code again.
|
|
Careful second audit by millert
|
|
|
|
Issue mentioned by fgs@ on ICB.
ok fgs@ bluhm@ krw@
|
|
|
|
requested by deraadt@
|
|
instead of binary operators for comparison.
OK krw@
|
|
|
|
DEV_BSIZE blocks. Counts of possibly other-sized blocks (e.g. disk
sector addresses) are u_int64_t. The values stored in disklabels are
counts of possibly other-sized blocks and hence should be handled with
u_int64_t variables.
Start enforcing this rule. No intended functional change.
Rule strongly suggested by deraadt@
|
|
From: Jan Stary
|
|
No doubt quiets one or more of the fringe compilers out there. Use
variable 'part' rather than recalculating same value in the subsequent
printf().
From dhill. ok otto@
|
|
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
|
|
not sectors, since the values being tested/manipulated in the auto_alloc
tables are blocks at that point. Use MEG(256) instead of hand
expanding it when testing physmem.
|
|
ok jsing
|
|
change.
|
|
change to executable.
|
|
ok krw@ otto@
|
|
create ffs partitions with invalid fsize and bsize values newfs
will croak on. However, they should be able to set them to whatever
consistent values they want, not just make them smaller.
Also tweak some verbiage.
|
|
i.e. when rounding off various values.
ok deraadt@ sthen@
|
|
editor. Use logic from calculating fragsize for an auto-allocated
partition. Noted when trying to add a small ffs partition to a 4K
sector device.
|
|
(2008), when '-r' support was removed. Spotted by jsg@ with the
assistance of clang.
|
|
|
|
|
|
There's nothing special about -c and -d requiring them to be
separated from other flags or specified as mutually exclusive. So
just show a single block of flags. Some flag combos are silly
but harmless.
Move all -B options inside NUMBOOT #if, eliminating confusing
duplication of -w and -R usage lines. And some string
declaration dancing.
Since we only have NUMBOOT = 1, no need to try and finesse
output for different values of NUMBOOT.
Line shit up.
|
|
it and the associated 'bootxx' variable. Update man page accordingly.
|
|
interest of rope sales allow the 'X'pert to suppress the rounding of
partition locations to bsize boundaries. Also mention that such rounding
is being done, so as to not surprise the user.
ok otto@ a while ago
|
|
THEN negate. Fixes issues with 'b' and 'k' size suffixes. Make error
message more clear while here.
Found, and fix provided, by David Imhoff via bugs@. Thanks!
|
|
|
|
|
|
place it was missing. Delete now redundant calls to DIOCGDINFO when
getting physical disk info in disklabel(8) and fdisk(8).
Reminded by a fdisk discussion with Andres Perera on tech@.
ok deraadt@
|
|
a ffs frag size can be less than the d_secsize of the disk. Make
sure amd64 writedisklabel() puts the disklabel where readdoslabel()
will read it. Tweak i386/amd64 installboot/biosboot so sectors are
indeed used where sectors are claimed.
Lets me fdisk, newfs, mount and installboot onto 2048 and 4096
byte sector devices. Other filesystem utilites will still hold
surprises.
Note that actually booting from such devices will await BIOSen that
acknowledge such devices as bootable.
ok guenther@
|
|
discussed with lots of people, tested by naddy@,
"move fast" deraadt@
|
|
'N' command line options.
ok matthew@
|
|
info from the physical disk after 'disklabel -e' writes the label
to disk. Saves having to reboot or do other contortions to initialize
these fields. Toss in same treatment for total sectors so all fields
forcibly set by kernel have current values.
0'ing of the bounds noted by matthew@.
'lovely' deraadt@
|
|
|
|
|
|
bit too small. ok krw@
|
|
partitions); ok krw@
|
|
|
|
|
|
in auto-allocated labels. ok krw@ sthen@
|
|
-E rather than -e as it's more likely;
ok krw
|