Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-07-13 | Replace a '512' with DEV_BSIZE. Calculate physmem size in blocks and | Kenneth R Westerback | |
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. | |||
2012-04-06 | there is no need to cast an unsigned type with (unsigned). | Theo de Raadt | |
ok jsing | |||
2012-03-18 | getuint() -> getuint64() to make it crystal clear. No functional | Kenneth R Westerback | |
change. | |||
2012-03-18 | Wrap some long lines I keep fixing, shrinking various diffs. No | Kenneth R Westerback | |
change to executable. | |||
2012-01-30 | fix format string | Charles Longeau | |
ok krw@ otto@ | |||
2012-01-19 | Even 'X'perts should not be able to use the built in editor to | Kenneth R Westerback | |
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. | |||
2012-01-17 | No need for saying out loud what we're thinking during auto-allocation. | Kenneth R Westerback | |
i.e. when rounding off various values. ok deraadt@ sthen@ | |||
2012-01-17 | Avoid ffs fragsize < sector-size when 'a'dding a partition via the | Kenneth R Westerback | |
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. | |||
2012-01-16 | Nuke unused parameter (f) to makebootarea(). Unused since r1.123 | Kenneth R Westerback | |
(2008), when '-r' support was removed. Spotted by jsg@ with the assistance of clang. | |||
2012-01-02 | Remove more mentions of two stage boot loaders from man page. | Kenneth R Westerback | |
2012-01-02 | Change last "#if (NUMBOOT == 1)" to "#if NUMBOOT > 0". | Kenneth R Westerback | |
2012-01-02 | Tweak usage and man page into agreement. | Kenneth R Westerback | |
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. | |||
2012-01-02 | '-s' hasn't done anything for a couple of years. Garbage collect | Kenneth R Westerback | |
it and the associated 'bootxx' variable. Update man page accordingly. | |||
2011-12-25 | miod@ reported problems reproducing a 'pre-4K fix' disklabel. So in the | Kenneth R Westerback | |
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 | |||
2011-12-01 | Fix negating of unsigned d_secsize. FIRST, cast to signed type, | Kenneth R Westerback | |
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! | |||
2011-10-06 | mark ccd(4) deprecated in a few more places | Theo de Raadt | |
2011-09-04 | grammar fix; from Martin Pelikan | Jason McIntyre | |
2011-07-05 | Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the last | Kenneth R Westerback | |
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@ | |||
2011-07-05 | More non-512-byte sector groundwork. Don't let disklabel hint that | Kenneth R Westerback | |
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@ | |||
2011-06-23 | switch to installing source manuals (base part) | Ingo Schwarze | |
discussed with lots of people, tested by naddy@, "move fast" deraadt@ | |||
2011-06-05 | Nuke uses of and references to DIOCWLABEL, and the related 'W' and | Kenneth R Westerback | |
'N' command line options. ok matthew@ | |||
2011-06-02 | Hack to ensure that the in-core labels contain the current bounds | Kenneth R Westerback | |
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@ | |||
2011-05-24 | Allow for more room for /usr/obj on static linking only archs; ok krw@ deraadt@ | Otto Moerbeek | |
2011-05-23 | sync auto-allocation table | Otto Moerbeek | |
2011-05-23 | Make /usr/obj a bit bigger, on small disks it ends up just a little | Otto Moerbeek | |
bit too small. ok krw@ | |||
2011-05-22 | Apply proper rounding for the R command (changing of auto-allocated | Otto Moerbeek | |
partitions); ok krw@ | |||
2011-05-22 | sync auto-allocation table with code | Otto Moerbeek | |
2011-05-22 | zap unused var | Otto Moerbeek | |
2011-05-22 | In addition to relative resizing, allow absolute resizing of partitions | Otto Moerbeek | |
in auto-allocated labels. ok krw@ sthen@ | |||
2011-04-30 | change one of our current examples to use duids; ken suggested we use | Jason McIntyre | |
-E rather than -e as it's more likely; ok krw | |||
2011-04-19 | make same changes regarding -f/-F argument (tempfile -> file) as was done | Alexander Hall | |
in disklabel(8) pointed out by jmc@ | |||
2011-04-19 | Rename the argument for -f and -F from 'tempfile' to 'file' | Alexander Hall | |
ok krw@ and looks correct to jmc@ | |||
2011-04-16 | Tweak description of -F to eliminate implication that mount points | Kenneth R Westerback | |
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. | |||
2011-04-16 | Add swap partition entries to -F and -f output. man page | Kenneth R Westerback | |
updates to follow. This will simplify install script fstab creation. ok deraadt@ | |||
2011-04-16 | jmc@ is merciless. But fair. | Kenneth R Westerback | |
2011-04-16 | Tweak man page and usage string with jmc@ suggestions. | Kenneth R Westerback | |
2011-04-16 | Add '-F'. Same as '-f' but uses DUIDs when writing the mount point | Kenneth R Westerback | |
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@ | |||
2011-03-05 | If an auto-allocation scheme fails because there are not enough | Kenneth R Westerback | |
available partitions (e.g. many spoofed logical partitions) try the next scheme rather than giving up. "sane" deraadt@ ok matthew@ | |||
2011-03-02 | Every time the user updates the bounds of the OpenBSD area of the disk, ↵ | Kenneth R Westerback | |
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@ | |||
2011-02-19 | If the user screws up adding a partition, don't keep partial bits | Kenneth R Westerback | |
of the partition info around to confuse disklabel, newfs, fsck, etc. From Pedro Martelletto. ok miod@ | |||
2010-12-13 | stray tabs and spaces | Marco Peereboom | |
2010-11-24 | When dealing with disklabel UIDs (DUIDs) be specific and consistent with | Joel Sing | |
naming. ok krw@ | |||
2010-09-23 | tweak the disklabel uid stuff; ok jsing | Jason McIntyre | |
2010-09-23 | Correctly identify mount points when they are specified in /etc/fstab using | Joel Sing | |
a disklabel UID. Based on a diff from josh@elsasser.org. Resolves PR6471. ok krw@ | |||
2010-09-23 | Print disklabel UIDs using printf/fprintf instead of using the hand rolled | Joel Sing | |
uid_print() function. ok krw@ | |||
2010-08-12 | fix a few warnings. ok jsing | Ted Unangst | |
2010-08-10 | Add support for t/T == terabyte units to -E. Prodded by deraadt@. | Kenneth R Westerback | |
Semantically equivalent version ok beck@ millert@ and tested ckeuthe@. "just commit" deraadt@ | |||
2010-08-09 | Improve the editor prompt for the 'R' (resize) command | Theo de Raadt | |
from otto | |||
2010-08-08 | make disklabel -p slightly nicer by accepting capital letters and printing | Ted Unangst | |
a more useful error message for invalid ones. ok deraadt | |||
2010-08-03 | Group string comparisons and supply more helpful comments. Add | Kenneth R Westerback | |
"total sectors" to "boundstart" and "boundend" in the list of fields that are left alone during a RESTORE operation. ok deraadt@ |