summaryrefslogtreecommitdiff
path: root/usr.sbin/makefs
AgeCommit message (Collapse)Author
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
any parts of his diff not taken are noted on tech
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2022-02-28#include <disktab.h> not needed for successful compile.Kenneth R Westerback
Last #include of disktab.h in the tree.
2022-01-11spellingJonathan Gray
2021-12-23make array bounds in unix2dosfn() prototype match functionJonathan Gray
missed when unix2dosfn() was changed in the kernel with msdosfs_conv.c rev 1.15 in 2012
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2021-10-06annotate all required sys/param.h uses with what they bring into scope,Theo de Raadt
and delete all others. use PATH_MAX and other standardized symbols instead of prehistoric kernel-only names, create local MINIMUM/MAXIMUM macros where required, and directly include standard userland .h files as required.
2021-09-01remove sys/param.h use (few small repairs)Theo de Raadt
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
2020-04-09No need to check for NULL before free().Kenneth R Westerback
From Geoff Hill.
2019-09-04msdosfs: remove timezone supportcheloha
This support is undocumented, only works if you're using the kernel timezone, and breaks during a DST shift. It also preferences file systems managed by a Windows installation: many implementations, like ours, use UTC by default (think: phones, digital cameras). No complaints on tech@. "good riddance" tedu@, "Yep." deraadt@
2018-11-20unveil(2) boot images which are specified by -o option. Also exitYASUOKA Masahiko
with an error status when writing cd image fails. ok deraadt
2018-09-24unveil(2) is easy since this only uses one directory treeTheo de Raadt
(containing no exterior pointing symlinks), and a file. In snaps for about 2 months.
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2017-11-07Tweak the man page and warning message, revert the comma.YASUOKA Masahiko
2017-11-02Use emalloc, like in the rest of makefsJeremie Courreges-Anglas
From Michael W. Bombardieri
2017-10-31Add platform-id for EFI.YASUOKA Masahiko
seem fine deraadt
2017-10-31Fix a bug which made the boot entries' order reverse, introduced at 1.8 onYASUOKA Masahiko
NetBSD. seem fine deraadt
2017-10-31Initialize boot_catalog_entry's entry_type properly. This had beenYASUOKA Masahiko
missing but the type was used in cd9660_setup_boot(). seem fine deraadt
2017-08-31assorted warning fixes; ok millert@Otto Moerbeek
2017-04-09Remove unused #define's and struct.Martin Natano
2017-04-06Remove the CD9660MAXPATH define. It was used to construct the path forMartin Natano
opening the file, so PATH_MAX makes more sense here. While there change the code to do two less allocations per file. ok deraadt
2017-03-28add missing braces around a multi line if statementJonathan Gray
ok patrick@ deraadt@
2017-03-23Set the maximum value of the msdos options to the value of LLONG_MAXPatrick Wildt
instead of ULLONG_MAX since the type of the comparison is using long long, which has a positive maximum of LLONG_MAX. The affected opts are of type off_t, which should have a maximum of LLONG_MAX anyway. Fixes makefs(8) on msdos with options "create_size" or "offset". ok natano@
2017-01-21Use MD disklabel position.Martin Natano
2016-12-17While here nuke some more annoying whitespace nits.Kenneth R Westerback
2016-12-17While here nuke some more annoying whitespace nits.Kenneth R Westerback
2016-12-17While here nuke some more annoying whitespace nits.Kenneth R Westerback
2016-12-17While here nuke some more annoying whitespace nits.Kenneth R Westerback
2016-12-17While here nuke some more annoying whitespace nits.Kenneth R Westerback
2016-12-17Nuke unused variable and some extra whitespace.Kenneth R Westerback
ok natano@
2016-11-26Avoid NULL pointer dereference in cd9660.Martin Natano
from christos@NetBSD via mestre Original Log Message: PR/51652: Sevan Janiyan: makefs dies due to segmentation fault Don't dereference NULL when running out of nodes during rename.
2016-11-14disklabel -w doesn't set bstart/bend, so makefs shouldn't do that either.Martin Natano
2016-11-13Pick up the FS image size, the sector size and the bsize and fsizeMartin Natano
parameters from the disklabel. discussed with deraadt
2016-11-11Clean up FFS option handling somewhat; no functional change.Martin Natano
2016-11-11Optimize for space by default.Martin Natano
ok deraadt
2016-11-10Sync bsize and fsize defaults with newfs.Martin Natano
2016-11-10Remove the unused cpg field from ffs_opt_t.Martin Natano
2016-11-08Respect -Ooffset for the disklabel location.Martin Natano
2016-11-08Describe -o disklabel=name.Martin Natano
2016-11-08Add a disklabel option that creates a disklabel with the info providedMartin Natano
by disktab. This is one piece of the puzzle that will allow use to build install media without vnd. ok deraadt
2016-11-08pledge for "stdio rpath wpath cpath" promises since it only needs toRicardo Mestre
read/write/create files OK natano@ and tb@, thank you both for noticing the bad indentation
2016-11-06Remove unused fields from ffs_opt_t.Martin Natano
2016-10-26s/EXIT_FAILURE/1/Martin Natano
2016-10-26mac68k is discontinuedMartin Natano
2016-10-26Add the omit-trailing-period cd9660 option to the manual.Martin Natano
2016-10-26Remove cd9660's chrp-boot option. deraadt confirmed we don't support anyMartin Natano
CHRP hardware.
2016-10-26Use OPT_BOOL, not OPT_INT32 for boolean cd9660 options.Martin Natano
2016-10-26Remove FS-specific option descriptions from the source code. We have aMartin Natano
manual for that. While there document the isolevel option and remove some dysfunctional cd9660 options.
2016-10-25convert usage() to just spit out the normal options list,Jason McIntyre
instead of trying to list all the fs-specific stuff; help/ok natano