Up to [local] / src / usr.sbin / makefs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 9 03:16:00 2024 UTC (5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
HEAD
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored)
Delete support for FFS filesystems before the in-inode symlink optimization. As observed by ali_farzanrad(at)riseup.net, support for these was broken in the 5.5 release in early 2014 by the time_t changes. No one noticed before now, so clearly this isn't something we need to continue to support; rejecting in ffs_validate() is an improvement. Also: simplify DIRSIZ(), drop OLDDIRFMT and NEWDIRFMT, tests of fs_maxsymlinklen against zero, #ifdef tests of FS_44INODEFMT, and remove support for newfs -O0, last used in 2016. ok miod@
Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 8 04:45:44 2023 UTC (10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored)
Replace use of the old BSD st_*timensec members in struct stat with the POSIX-standard st_*tim.tv_nsec members. ok millert@
Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 25 08:57:11 2023 UTC (13 months, 2 weeks ago) by krw
Branch: MAIN
Changes since 1.36: +63 -1 lines
Diff to previous 1.36 (colored)
Add option 'rdroot' to simplify creation of rdroot filesystems for the install media. No functional change to existing behaviour.
Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 11 05:34:32 2022 UTC (2 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)
spelling
Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:19 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)
For open/openat, if the flags parameter does not contain O_CREAT, the 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
Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 6 00:40:39 2021 UTC (2 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +8 -6 lines
Diff to previous 1.33 (colored)
annotate all required sys/param.h uses with what they bring into scope, 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.
Revision 1.33 / (download) - annotate - [select for diffs], Wed Sep 1 15:19:00 2021 UTC (2 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)
remove sys/param.h use (few small repairs)
Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 9 16:19:00 2020 UTC (4 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.31: +4 -7 lines
Diff to previous 1.31 (colored)
No need to check for NULL before free(). From Geoff Hill.
Revision 1.31 / (download) - annotate - [select for diffs], Sat Jan 21 21:58:32 2017 UTC (7 years, 4 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)
Use MD disklabel position.
Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 17 16:14:18 2016 UTC (7 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
While here nuke some more annoying whitespace nits.
Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 17 15:20:10 2016 UTC (7 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.28: +9 -9 lines
Diff to previous 1.28 (colored)
Nuke unused variable and some extra whitespace. ok natano@
Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 14 09:03:19 2016 UTC (7 years, 6 months ago) by natano
Branch: MAIN
Changes since 1.27: +2 -6 lines
Diff to previous 1.27 (colored)
disklabel -w doesn't set bstart/bend, so makefs shouldn't do that either.
Revision 1.27 / (download) - annotate - [select for diffs], Sun Nov 13 10:22:21 2016 UTC (7 years, 6 months ago) by natano
Branch: MAIN
Changes since 1.26: +40 -17 lines
Diff to previous 1.26 (colored)
Pick up the FS image size, the sector size and the bsize and fsize parameters from the disklabel. discussed with deraadt
Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 11 09:54:07 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.25: +8 -18 lines
Diff to previous 1.25 (colored)
Clean up FFS option handling somewhat; no functional change.
Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 11 09:27:31 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)
Optimize for space by default. ok deraadt
Revision 1.24 / (download) - annotate - [select for diffs], Thu Nov 10 08:33:11 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)
Sync bsize and fsize defaults with newfs.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 10 08:26:38 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.22: +1 -5 lines
Diff to previous 1.22 (colored)
Remove the unused cpg field from ffs_opt_t.
Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 8 19:38:57 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)
Respect -Ooffset for the disklabel location.
Revision 1.21 / (download) - annotate - [select for diffs], Tue Nov 8 19:22:29 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.20: +59 -1 lines
Diff to previous 1.20 (colored)
Add a disklabel option that creates a disklabel with the info provided by disktab. This is one piece of the puzzle that will allow use to build install media without vnd. ok deraadt
Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 6 12:33:30 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.19: +1 -11 lines
Diff to previous 1.19 (colored)
Remove unused fields from ffs_opt_t.
Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 26 15:31:13 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)
s/EXIT_FAILURE/1/
Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 26 07:53:47 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.17: +13 -22 lines
Diff to previous 1.17 (colored)
Remove FS-specific option descriptions from the source code. We have a manual for that. While there document the isolevel option and remove some dysfunctional cd9660 options.
Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 23 10:22:21 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.16: +18 -25 lines
Diff to previous 1.16 (colored)
Remove short option names for -o.
Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 22 19:43:50 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.15: +13 -17 lines
Diff to previous 1.15 (colored)
Get rid of remaining FFS byteswap function stubs.
Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 22 19:17:47 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.14: +16 -18 lines
Diff to previous 1.14 (colored)
Clean up timestamp handling code to be less confusing.
Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 22 18:17:14 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.13: +3 -186 lines
Diff to previous 1.13 (colored)
Remove huge amounts of debug code, that make the code nearly unreadable.
Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 22 17:15:28 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.12: +1 -12 lines
Diff to previous 1.12 (colored)
s/panic/errx/ This is userland.
Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 22 16:51:52 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.11: +49 -49 lines
Diff to previous 1.11 (colored)
Include our own <ufs/ufs/dinode.h>, <ufs/ufs/dir.h> and <ufs/ffs/fs.h> header files instead of relying on copies of NetBSD's headers. This required some changes in the .c files, due to renamed fields, functions and preprocessor macros. Also pull in our own ffs_tables.c. As a bonus this diff gets rid of layout compatibility issues in the superblock (position of the fs_flags field).
Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 22 10:13:08 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.10: +6 -5 lines
Diff to previous 1.10 (colored)
Use deterministic pseudo-random numbers when the -T flag is used; for repeatable builds.
Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 18 17:23:21 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)
Merge ufs/{ufs,ffs}/ into ffs/.
Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 17 07:54:17 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.8: +2 -30 lines
Diff to previous 1.8 (colored)
Remove "feature" defines. This code won't try to be portable when we are done hacking it.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 17 01:16:22 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)
mechanical rename of vnode to mkfsvnode and buf to mkfsbuf to avoid collisions with the kernel structures of the same name. caught one bug where the wrong header was being included.
Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 16 22:26:34 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
remove swapping add macros
Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 16 21:59:28 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.5: +33 -43 lines
Diff to previous 1.5 (colored)
remove some byte swapping code from the top end
Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 16 21:44:43 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
/* XXX bounds checking! */ very crudely fix a few strcpy and sprintf warnings. leave the quality warnings.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 16 20:30:40 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.3: +2 -12 lines
Diff to previous 1.3 (colored)
Remove the -Z (spare ffs image) option.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 16 20:26:56 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)
Add OpenBSD RCS tags; reminded by tb
Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 16 19:53:11 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.1: +0 -2 lines
Diff to previous 1.1 (colored)
Unused includes, as reported by include-what-you-use from ports.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 16 17:08:53 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Import makefs - a tool to create filesystem images from a directory. This is a rough port of the NetBSD tool with some features removed we don't need. It compiles, but I don't promise anything more. Importing now, so we can hack on it in tree. The supported filesystem types are: cd9660, ffs and msdosfs. ok deraadt