summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* No need to check for NULL before free().krw2020-04-091-7/+4
| | | | From Geoff Hill.
* msdosfs: remove timezone supportcheloha2019-09-041-9/+2
| | | | | | | | | | | 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@
* unveil(2) boot images which are specified by -o option. Also exityasuoka2018-11-202-4/+11
| | | | | | with an error status when writing cd image fails. ok deraadt
* unveil(2) is easy since this only uses one directory treederaadt2018-09-241-1/+5
| | | | | (containing no exterior pointing symlinks), and a file. In snaps for about 2 months.
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-2/+1
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* Tweak the man page and warning message, revert the comma.yasuoka2017-11-072-5/+5
|
* Use emalloc, like in the rest of makefsjca2017-11-021-3/+3
| | | | From Michael W. Bombardieri
* Add platform-id for EFI.yasuoka2017-10-313-8/+15
| | | | seem fine deraadt
* Fix a bug which made the boot entries' order reverse, introduced at 1.8 onyasuoka2017-10-311-4/+5
| | | | | | NetBSD. seem fine deraadt
* Initialize boot_catalog_entry's entry_type properly. This had beenyasuoka2017-10-311-1/+5
| | | | | | missing but the type was used in cd9660_setup_boot(). seem fine deraadt
* assorted warning fixes; ok millert@otto2017-08-311-2/+2
|
* Remove unused #define's and struct.natano2017-04-091-24/+1
|
* Remove the CD9660MAXPATH define. It was used to construct the path fornatano2017-04-063-32/+27
| | | | | | | opening the file, so PATH_MAX makes more sense here. While there change the code to do two less allocations per file. ok deraadt
* add missing braces around a multi line if statementjsg2017-03-281-2/+3
| | | | ok patrick@ deraadt@
* Set the maximum value of the msdos options to the value of LLONG_MAXpatrick2017-03-231-2/+2
| | | | | | | | | 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@
* Use MD disklabel position.natano2017-01-211-2/+2
|
* While here nuke some more annoying whitespace nits.krw2016-12-177-45/+45
|
* While here nuke some more annoying whitespace nits.krw2016-12-174-14/+14
|
* While here nuke some more annoying whitespace nits.krw2016-12-175-15/+15
|
* While here nuke some more annoying whitespace nits.krw2016-12-171-2/+2
|
* While here nuke some more annoying whitespace nits.krw2016-12-177-28/+28
|
* Nuke unused variable and some extra whitespace.krw2016-12-171-9/+9
| | | | ok natano@
* Avoid NULL pointer dereference in cd9660.natano2016-11-261-3/+3
| | | | | | | | 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.
* disklabel -w doesn't set bstart/bend, so makefs shouldn't do that either.natano2016-11-141-6/+2
|
* Pick up the FS image size, the sector size and the bsize and fsizenatano2016-11-133-20/+49
| | | | | | parameters from the disklabel. discussed with deraadt
* Clean up FFS option handling somewhat; no functional change.natano2016-11-113-22/+11
|
* Optimize for space by default.natano2016-11-112-6/+5
| | | | ok deraadt
* Sync bsize and fsize defaults with newfs.natano2016-11-101-3/+3
|
* Remove the unused cpg field from ffs_opt_t.natano2016-11-102-7/+2
|
* Respect -Ooffset for the disklabel location.natano2016-11-081-2/+2
|
* Describe -o disklabel=name.natano2016-11-081-2/+7
|
* Add a disklabel option that creates a disklabel with the info providednatano2016-11-082-3/+63
| | | | | | | by disktab. This is one piece of the puzzle that will allow use to build install media without vnd. ok deraadt
* pledge for "stdio rpath wpath cpath" promises since it only needs tomestre2016-11-081-1/+4
| | | | | | read/write/create files OK natano@ and tb@, thank you both for noticing the bad indentation
* Remove unused fields from ffs_opt_t.natano2016-11-062-18/+2
|
* s/EXIT_FAILURE/1/natano2016-10-268-40/+36
|
* mac68k is discontinuednatano2016-10-262-6/+4
|
* Add the omit-trailing-period cd9660 option to the manual.natano2016-10-261-3/+3
|
* Remove cd9660's chrp-boot option. deraadt confirmed we don't support anynatano2016-10-264-19/+5
| | | | CHRP hardware.
* Use OPT_BOOL, not OPT_INT32 for boolean cd9660 options.natano2016-10-261-2/+2
|
* Remove FS-specific option descriptions from the source code. We have anatano2016-10-268-134/+82
| | | | | manual for that. While there document the isolevel option and remove some dysfunctional cd9660 options.
* convert usage() to just spit out the normal options list,jmc2016-10-251-16/+7
| | | | | | instead of trying to list all the fs-specific stuff; help/ok natano
* document the options for msdos systems; help/ok natanojmc2016-10-241-5/+57
|
* No verbose flag for cd9660.natano2016-10-235-115/+7
|
* Remove the msdos no_create option.natano2016-10-232-135/+129
|
* Remove cd9660's keep-bad-images option.natano2016-10-234-13/+6
|
* Remove short option names for -o.natano2016-10-236-170/+137
|
* Dedup msdosfs/{bootsect.h,bpb.h}.natano2016-10-227-299/+11
|
* -#include <stdbool.h>natano2016-10-224-16/+13
|
* various cleanup; ok natanojmc2016-10-221-47/+29
|
* Get rid of remaining FFS byteswap function stubs.natano2016-10-227-111/+47
|