summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2011-07-05More non-512-byte sector groundwork. Don't let disklabel hint thatKenneth 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-23switch to installing source manuals (base part)Ingo Schwarze
discussed with lots of people, tested by naddy@, "move fast" deraadt@
2011-06-05Nuke uses of and references to DIOCWLABEL, and the related 'W' andKenneth R Westerback
'N' command line options. ok matthew@
2011-06-02Hack to ensure that the in-core labels contain the current boundsKenneth 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-24Allow for more room for /usr/obj on static linking only archs; ok krw@ deraadt@Otto Moerbeek
2011-05-23sync auto-allocation tableOtto Moerbeek
2011-05-23Make /usr/obj a bit bigger, on small disks it ends up just a littleOtto Moerbeek
bit too small. ok krw@
2011-05-22Apply proper rounding for the R command (changing of auto-allocatedOtto Moerbeek
partitions); ok krw@
2011-05-22sync auto-allocation table with codeOtto Moerbeek
2011-05-22zap unused varOtto Moerbeek
2011-05-22In addition to relative resizing, allow absolute resizing of partitionsOtto Moerbeek
in auto-allocated labels. ok krw@ sthen@
2011-04-30change one of our current examples to use duids; ken suggested we useJason McIntyre
-E rather than -e as it's more likely; ok krw
2011-04-19make same changes regarding -f/-F argument (tempfile -> file) as was doneAlexander Hall
in disklabel(8) pointed out by jmc@
2011-04-19Rename the argument for -f and -F from 'tempfile' to 'file'Alexander Hall
ok krw@ and looks correct to jmc@
2011-04-16Tweak description of -F to eliminate implication that mount pointsKenneth 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-16Add swap partition entries to -F and -f output. man pageKenneth R Westerback
updates to follow. This will simplify install script fstab creation. ok deraadt@
2011-04-16jmc@ is merciless. But fair.Kenneth R Westerback
2011-04-16Tweak man page and usage string with jmc@ suggestions.Kenneth R Westerback
2011-04-16Add '-F'. Same as '-f' but uses DUIDs when writing the mount pointKenneth 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-05If an auto-allocation scheme fails because there are not enoughKenneth R Westerback
available partitions (e.g. many spoofed logical partitions) try the next scheme rather than giving up. "sane" deraadt@ ok matthew@
2011-03-02Every 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-19If the user screws up adding a partition, don't keep partial bitsKenneth R Westerback
of the partition info around to confuse disklabel, newfs, fsck, etc. From Pedro Martelletto. ok miod@
2010-12-13stray tabs and spacesMarco Peereboom
2010-11-24When dealing with disklabel UIDs (DUIDs) be specific and consistent withJoel Sing
naming. ok krw@
2010-09-23tweak the disklabel uid stuff; ok jsingJason McIntyre
2010-09-23Correctly identify mount points when they are specified in /etc/fstab usingJoel Sing
a disklabel UID. Based on a diff from josh@elsasser.org. Resolves PR6471. ok krw@
2010-09-23Print disklabel UIDs using printf/fprintf instead of using the hand rolledJoel Sing
uid_print() function. ok krw@
2010-08-12fix a few warnings. ok jsingTed Unangst
2010-08-10Add 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-09Improve the editor prompt for the 'R' (resize) commandTheo de Raadt
from otto
2010-08-08make disklabel -p slightly nicer by accepting capital letters and printingTed Unangst
a more useful error message for invalid ones. ok deraadt
2010-08-03Group string comparisons and supply more helpful comments. AddKenneth R Westerback
"total sectors" to "boundstart" and "boundend" in the list of fields that are left alone during a RESTORE operation. ok deraadt@
2010-08-03Start with the default label when RESTORE'ing a saved ascii label.Kenneth R Westerback
This ensures that all physical fields are filled in with current values. Lack of values (boundstart, boundend in particular) noted by ray@. ok deraadt@
2010-07-27Align FFS filesystem start and end sectors so the start is on aKenneth R Westerback
bsize boundary and the end fills up the last bsize chunk. Don't change the start sector if it is the first sector of the OpenBSD portion of the disk. Don't attempt to align on SUN_CYLCHECK architectures. They are attempting a different alignment. This is an attempt to ensure that FFS i/o's are aligned for optimal performance on newer disks that lie about their sector size.
2010-07-27Nuke 'sectoffset'. A stub variable no longer used except to supplyKenneth R Westerback
the value 0 to one function call. Use 0 there, eliminate the variable and the pointless verbose verbiage that always displayed the same value. ok deraadt@ matthew@
2010-06-30allow uppercase A-F in the uid inputAlexander Hall
ok krw@ jsing@
2010-06-30make the disklabel editor not crash when pressing ^D in the uid promptAlexander Hall
ok krw@
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@
2010-05-15grow /usr/local more at the cost of /home; ok krw@Otto Moerbeek
2010-05-11set max size of auto allocated /usr/local to 10G; ok espie@ krw@Otto Moerbeek
2010-04-28Add a new 'i' command to the disklabel interactive editor, allowing theJoel Sing
disklabel UID to be changed. ok krw@ marco@
2010-04-28Move the UID printing/parsing code into separate functions and avoid usingJoel Sing
sscanf(). ok marco@
2010-04-28When restoring a disklabel do not restore the uid. Let the kernel allocateJoel Sing
a new uid instead. ok krw@ marco@
2010-04-28Teach disklabel how to print and parse UIDs.Joel Sing
ok deraadt@ krw@
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-21zap trailing whitespace;Jason McIntyre
2010-04-21Remove interactive help for individual disklabel editor commands.lum
These were in effect a duplication of the man page contents. The man page has been updated to include any small ommissions that were in the interactive help. Man page tweaks/suggestions from jmc@ and deraadt@. ok jmc@ deraadt@ krw@ otto@
2010-04-14neccessary -> necessary;Jason McIntyre
2010-04-14Remove reference to a limitation of 8GB that does not exist anymore.lum
ok krw@ otto@
2010-04-13Some more help text cleanup, from suggestions by krw@lum
ok krw@ jmc@ otto@