Age | Commit message (Collapse) | Author |
|
|
|
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
|
|
in disklabel(8)
pointed out by jmc@
|
|
ok krw@ and looks correct to jmc@
|
|
must be input by user to get into the -F|-f output. Any known
mount point - user entered, read from fstab or static ('none' for
swap partitions) - will get into the tempfile.
|
|
updates to follow. This will simplify install script fstab
creation.
ok deraadt@
|
|
|
|
|
|
information to the specified file. After every label write, read the
label to get current UID info.
Some internal code cleanup with no intended functional change.
ok deraadt@
|
|
available partitions (e.g. many spoofed logical partitions) try
the next scheme rather than giving up.
"sane" deraadt@ ok matthew@
|
|
either explicitly
or implicitly, update the start and end sector of the OpenBSD area in the
disklabel with DL_SEBEND/DL_SETBSTART. Otherwise the new bounds would not be
saved to disk.
ok miod@ deraadt@
|
|
of the partition info around to confuse disklabel, newfs, fsck, etc.
From Pedro Martelletto.
ok miod@
|
|
|