The NetBSD Project

CVS log for src/usr.sbin/makefs/makefs.h

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / makefs

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:58:50 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +36 -0 lines
Sync with HEAD

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Apr 30 13:27:13 2025 UTC (18 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +9 -0 lines
From FreeBSD D50078 by jrtc27:

Linux's struct stat does not have an st_flags member, but we still want
to be able to create FreeBSD disk images with non-zero st_flags. Add a
replacement member to struct fsinode to store it on Linux.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Oct 27 18:35:52 2024 UTC (2 years ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +27 -0 lines
Document debugging options and allow specifying them by name.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jun 17 20:22:20 2024 UTC (2 years, 4 months ago) by reinoud
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -1 lines
Bump inode number on target FS from 32 bits to 64 bits

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 18 16:59:16 2024 UTC (2 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -0 lines
Add an options pretty-printer, pass some lint.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun May 8 21:29:20 2022 UTC (4 years, 6 months ago) by reinoud
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -1 lines
Revert, sorry this was not intended to be committed.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat May 7 08:54:02 2022 UTC (4 years, 6 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
When creating disc images, keep the proposed size a multiple of the blockingnr
for good measure; this prevents possible burning/copying issues on packet
media.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Apr 9 10:05:35 2022 UTC (4 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Apr 3 14:10:56 2021 UTC (5 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -2 lines
Add a -L option to follow all symbolic links.  Useful if you have symlinks
in a makefs directory tree but want to refer to the actual file.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Nov 25 00:48:49 2015 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -1 lines
Provide a -T option to set timestamps to a consistent value for MKREPRO

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:09 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.1: +3 -1 lines
Rebase to HEAD as of a few days ago.

Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:05 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.23.2.3: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.3: +50 -36 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Aug 5 14:41:57 2013 UTC (13 years, 3 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -1 lines
Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:44 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +48 -36 lines
resync with head

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Feb 3 06:16:53 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -2 lines
add a replace flag so we can overlay exiting files when we merge directories.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Feb 2 20:42:02 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2 lines
add and document offset.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Jan 30 19:19:19 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
- don't abuse vp->fs to mean struct fs for ffs and struct msdos_opts;
  make it always fsinfo_t and change void * to that.
- kill unused structure members.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jan 29 15:52:25 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -3 lines
make everything use the generic options parser.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jan 28 21:03:27 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +28 -25 lines
- use emalloc and friends
- kill a bunch of global variables, more work to be done here
- homogenize option parsing. more work for cd9660
- use the new options parsing code to print an fs-specific usage

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jan 23 21:32:32 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
remove duplicated code, and try to cleanup parsing by using the shared code.
cd9660 needs a lot of work.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jan 23 20:46:39 2013 UTC (13 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +27 -23 lines
- add support for parsing different types; not just int.
- add beginning of msdos support.

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:37 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.2: +2 -1 lines
sync with head

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jun 22 06:15:18 2012 UTC (14 years, 4 months ago) by sjg
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -1 lines
Add -Z to enable sparse files - for ffs at least.
Based on a patch from shesha at juniper.

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:28 2012 UTC (14 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +7 -2 lines
sync with head.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Apr 19 17:09:53 2012 UTC (14 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
- fix compilation isses
- add some error checking
- avoid alloca
- add missing frees

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Apr 19 15:36:06 2012 UTC (14 years, 7 months ago) by ttoth
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -1 lines
added chfs support for makefs

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:49 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -3 lines
sync with head

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jan 28 02:35:46 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -3 lines
Patch from Jung-uk Kim (jkim at FreeBSD dot org) to allow contents of multiple
directories to be merged to the current image.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 18 22:52:37 2011 UTC (15 years, 4 months ago) by tron
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -3 lines
Re-enable v7fs support in the tools version of "makefs" after the
issues have been fixed by Alan Barrett. Tested under Mac OS X.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 18 17:15:52 2011 UTC (15 years, 4 months ago) by tron
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
Don't include v7fs support into tool version of "makefs" because it
breaks the build.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jul 18 08:58:38 2011 UTC (15 years, 4 months ago) by uch
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -1 lines
v7fs(7th edition(V7) file system) support.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 28 21:51:46 2008 UTC (17 years, 10 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -3 lines
fix for 64 bit time_t and dev_t.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Oct 10 01:55:45 2006 UTC (20 years, 1 month ago) by dbj
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
implement -x by pruning fsnodes tree before building filesystem rather
than by skipping nodes while building filesystem

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Oct 10 01:46:49 2006 UTC (20 years, 1 month ago) by dbj
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
add implementation of free_fsnodes() which unlinks a node
from the hierarchy and frees it and any of its children
use it to free memory before a normal exit, which helps diagnostics

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Aug 13 01:53:01 2005 UTC (21 years, 3 months ago) by fvdl
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -1 lines
cd9660 support. Written by Daniel Watt, Walter Deignan, Ryan Gabrys,
Alan Perez-Rathke and Ram Vedam.

Prototyping, KNF, WARNS=3 by me.

Note that this is marked experimental for now. It works well enough to
make NetBSD/i386 bootable images, but does need more work.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Dec 20 20:51:42 2004 UTC (21 years, 11 months ago) by jmc
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -22 lines
Refactor the filesystem specific portions out of makefs.c/makefs.h completely.
Instead of extending fsinfo_t it now holds a void * to file system specific
data. This is then setup/cleaned up by the additional of 2 additional
callbacks. Makes adding new filesystems simpler as almost no code has
to be updated in the generic makefs code now.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Oct 12 03:28:30 2004 UTC (22 years, 1 month ago) by jmc
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -1 lines
Check for fstatvfs and provide/use it only if the host system has it.
Fixes PR#27221

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:18:49 2004 UTC (22 years, 5 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2 lines
Pull up revision 1.14 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:18 2004 UTC (22 years, 5 months ago) by jmc
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Apr 21 01:05:48 2004 UTC (22 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:44 2003 UTC (23 years ago) by lukem
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Overhaul how `build.sh tools' are used:

    *	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Apr 2 10:39:49 2003 UTC (23 years, 7 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -1 lines
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Mar 30 00:05:08 2003 UTC (23 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -5 lines
Tweak Jason's -x support to pass its state around as part of fsinf_t,
just like all the other "global" options.
Update the usage for -x.
Crank date on man page.

(Thanks to Jason for adding -x; I've been meaning to add that
functionality for a while :-)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Mar 29 00:12:12 2003 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -1 lines
Add a -x option which causes makefs(8) to exclude any file system node
not explicitly listed in the specfile.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Feb 14 05:16:16 2002 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -4 lines
remove (now) incorrect comment

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jan 31 22:44:03 2002 UTC (24 years, 9 months ago) by tv
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -2 lines
Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 26 13:22:16 2002 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
- crank default cpg from 16 to 65536, and let the auto-sizing code in
  mkfs() do its job
- pass cpgflg=1 to mkfs() if the user provided cpg, =0 otherwise
- improve error reporting in ffs_write_file()
- only add superblock & block map slop for one cylinder group.
  trying to calculate the number of required cylinder groups caused
  too many problems when tweaking parameters for small file systems.
  rely upon slop from minfree, and upon ffs_write_file() to complain
  if the user is too aggressive about tweaking the parameters

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 7 05:07:50 2002 UTC (24 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +15 -1 lines
fix bugs reported by matt green:
- when calculating file size, round up to frag size not block size
- #define FFS_EI in makefs.h, and include that before [uf]fs/*.h

other stuff:
- round up final size to next block (instead of next sector)
- protect makefs.h from multiple inclusion

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Dec 5 11:08:53 2001 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +27 -12 lines
rework `fsnode' into two components; `fsnode' contains the name and tree
information and a link to the appropriate fsinode, and `fsinode' contains
the inode information and a reference count. multiple fsnodes may point
to the same fsinode.  this replaces the 'dup' pointer in the previous code.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 25 11:22:09 2001 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -4 lines
- Use strsuftoull() from dd(1) to parse numbers, rather than home grown
  version. The new version supports products, 'g' (GB) and 't' (TB)
  suffices, and `b' now means `blocks' instead of `bytes'.
  Functionality requested by perry.
- debug is now a u_int instead of an int.
- Ensure that various numbers have sane upper limits (e.g, 99 for %, etc)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Nov 2 03:12:48 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
tweak copyright

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Oct 26 05:11:42 2001 UTC (25 years ago) by lukem
Branches: WASABI
CVS tags: makefs-20011026
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
makefs - create a file system image from a directory tree.
It doesn't need any special privileges or kernel devices.

Only ffs image creation is supported at this time, although makefs has been
designed to allow the addition of other file system formats by writing new
back-ends.

This program was designed & implemented by Luke Mewburn of Wasabi Systems.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 05:11:42 2001 UTC (25 years ago) by lukem
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>