summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2022-09-29FILES:Jason McIntyre
- fix the crazy list width - since there's only one item, -compact makes no sense
2022-09-06Delete some unreferenced SMD, ST506 and archaic SCSI #define'sKenneth R Westerback
that use d_drivedata. Since nothing else in the tree refers to d_drivedata other than /etc/disktab parsing and no /etc/disktab entry utilizes the :d[0-4]: attributes, stop disklabel(8) both printing "drivedata: 0" and paying attention to any "drivedata: ..." lines in ascii labels being read. ok jsg@ miod@
2022-09-04Document disklabel(8) -T's new RAID templateKlemens Nanni
OK jmc
2022-09-03Add a new keyword to template files, 'raid', to allow the autoKenneth R Westerback
allocation of RAID partitions. Make both 'raid' and 'swap' keywords case insensitive. Suggested by kn@ ok kn@ miod@
2022-09-01d_bbsize and d_sbsize have become write-only fields.Kenneth R Westerback
No need to set them or check that they are set. ok otto@ as part of larger diff
2022-08-31If a partition both starts and ends beyond the end of the unitKenneth R Westerback
only warn about the start. ok millert@
2022-07-31The geometry information in stuct disklabel is not used forKenneth R Westerback
anything. Allowing modifications to it or displaying whatever geometry was in use when the label was created leads to needless inconsistency with the kernel and with the values displayed by, e.g., fdisk(8). Always set label fields d_secsize, d_nsectors, d_ntracks, d_secpercyl, d_ncylinders to the current values used by the kernel, obtained via DIOCGPDINFO. Ignore any values from the on-disk label or the file -R uses. Nuke editor command 'g' and restrict editor command 'e' to changing d_type and d_packname.
2022-06-25Increase the auto partitioner's maximum /usr size to 30G.mbuhl
OK bluhm, otto, deraadt
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2022-02-24Rename parselabel() to parsefstab() and makelabel() toKenneth R Westerback
parsedisktab(). Move non-fstab and non-disktab bits to the single points of invocation for both. No intentional functional change.
2022-02-19The 'e' command of the simple editor has not provided editing ofKenneth R Westerback
'interleave' or 'rpm' since the disklabel fields d_interleave and d_rpm were 'recycled' to make room for duid's in April, 2010.
2022-02-18writelabel() only needs one prototype.Kenneth R Westerback
2022-02-18Move prototypes for checklabel(), readlabel() and parselabel()Kenneth R Westerback
into disklabel.c since editor.c and dkcksum.c have no need to know.
2022-02-18No need for makebootarea() prototype as makebootarea() perished with NUMBOOT inKenneth R Westerback
2015 (r1.211).
2022-02-14Whitespace nit.Kenneth R Westerback
2021-12-19Simplify error message emitted when requested partition sizeKenneth R Westerback
cannot be accommodated. "not enough space" should be enough for anyone. Requested by deraadt@
2021-11-10Max size of src also changed. Noted by Mikhail <mp39590@gmail.com>Otto Moerbeek
2021-11-10Add missing chunk form previous commitOtto Moerbeek
2021-11-09Increase min and max src a bit to accomodate growth and git usersOtto Moerbeek
From Mikhail <mp39590@gmail.com>
2021-11-05Correct auto table entry for /var: it's 4G plus 2x physmemOtto Moerbeek
2021-09-20jmc was a bit too eager and deleted the -DSUN_CYLCHECK -DSUN_AAT0Theo de Raadt
compile options required for sparc64 (partition alignment, in particular) noticed by bluhm during testing
2021-06-24trim usage to match the man page;Jason McIntyre
remove -DSEEALSO, as suggested by millert ok millert
2021-05-30Fix overlap check in autoalloc code; ending_sector is the sector after theMark Kettenis
OpenBSD area of the disk so it is fine if a "foreign" partition starts at ending_sector. ok krw@, otto@
2021-03-09Do not adjust (uhm.. zero) the swap 'b' partition size if physmem isTheo de Raadt
zero (should not happen, but did), because the auto-allocate code will put a filesystem on that partition. ok otto kurt
2021-02-03unbreak getline() conversion in disklabelChristian Weisgerber
2021-02-02replace fgetln(3) with getline(3) in disklabelChristian Weisgerber
Since getline() returns a C string, we don't need to carry around the length separately. ok millert@
2021-01-31fix mistaken operator precedence in a pointer dereference in disklabelChristian Weisgerber
ok millert@
2020-11-14Constify dktypenames and fstypenames in libc.Philip Guenther
Adjust variable declaration in disklabel to match. ok millert@ deraadt@
2020-07-21unify and cleanup -DSEEALSO chunks in both disklabel MakefilesTheo de Raadt
2020-04-23 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;Jason McIntyre
2020-01-28Sync with table in editor.c; from Martin <openbsd at academicsolutions dot ch>Otto Moerbeek
2019-12-19Spell "mount point" as other man pages do, with a space.Anthony J. Bentley
ok jmc@
2019-11-19Make /usr maximum 6G and grow it faster; ok lots of devsOtto Moerbeek
2019-08-21Bump /usr on big auto-allocation table; ok krw@ sthen@ phessler@Otto Moerbeek
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-05-11Add missing )Claudio Jeker
2019-05-11socppc makes an extended visit to the bigbucket.Theo de Raadt
ok kettenis
2019-04-29Add '*' to disklabel(8) editor prompt when in-memory copy of disklabelKenneth R Westerback
has been modified. Use name of disk being edited in fdisk(8) editor prompt. Idea from tb@. ok tb@ deraadt@
2019-04-03Add comment to prod updates to regress/sbin/disklabelKenneth R Westerback
*.ok files whenever space_allocation tables are modified.
2019-04-02Use consistant idiom for checking return value ofKenneth R Westerback
ioctl() (i.e. == -1). Don't prepend 'ioctl ' to ioctl name in error or warning messages. Always put the ioctl name in emitted messages. No intentional functional change.
2019-04-02No need for RESTORE (-R) to call DIOCGINFO and mpsave() twice inKenneth R Westerback
normal mode. And not overwriting any -F/-f file when in -n (donothing) mode is likely less surprising.
2019-04-02Remove l_perror() and rely on warn() for failureKenneth R Westerback
messages in writelabel(). Consolidate two consecutive 'if (!donothing) ...' blocks into one.
2019-04-01Bring documentation into better correspondanceKenneth R Westerback
with latest command line prompt change. ok kn@ jmc@, with more improvements inevitable.
2019-04-01No need to save/restore fields across the invocation ofKenneth R Westerback
getasciilabel() when getasciilabel() explicitly avoids changing those fields. ok otto@
2019-03-31simpler display;Jason McIntyre
2019-03-31update the default partition sizes in the man page as wellPeter Hessler
pointed out by otto@
2019-03-31when using the auto partitioner, grow minimum size for /usr to 1300M.Peter Hessler
bare minimum /usr for all sets on amd64 is 920M used space, and we need some more for upgrades, as well as relinking libs and kernels. OK deraadt@
2019-03-31Enhance prompt shown during -E label editing. AlwaysKenneth R Westerback
display the disk device whose label is being edited. Change '>' to '#' when in expert mode.
2019-03-07update the error message for the interactive 'n' command to show thatJason McIntyre
-F or -f is required; ok krw