The NetBSD Project

CVS log for src/usr.sbin/makefs/walk.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 3 06:16:53 2013 UTC (3 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-nbase, tls-maxphys-base, agc-symver-base, agc-symver, HEAD
Changes since 1.27: +28 -8 lines
Diff to previous 1.27 (colored)

add a replace flag so we can overlay exiting files when we merge directories.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 28 21:03:27 2013 UTC (3 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.26: +12 -19 lines
Diff to previous 1.26 (colored)

- 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.26 / (download) - annotate - [select for diffs], Thu Apr 19 17:28:25 2012 UTC (13 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

WARNS=5

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 28 02:35:46 2012 UTC (15 months, 3 weeks ago) by christos
Branch: 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, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, 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
Changes since 1.24: +98 -33 lines
Diff to previous 1.24 (colored)

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.24 / (download) - annotate - [select for diffs], Sun Dec 28 21:51:46 2008 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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
Branch point for: yamt-pagecache
Changes since 1.23: +7 -6 lines
Diff to previous 1.23 (colored)

fix for 64 bit time_t and dev_t.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 10 01:55:45 2006 UTC (6 years, 7 months ago) by dbj
Branch: 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, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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
Changes since 1.22: +31 -7 lines
Diff to previous 1.22 (colored)

implement -x by pruning fsnodes tree before building filesystem rather
than by skipping nodes while building filesystem

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 10 01:46:49 2006 UTC (6 years, 7 months ago) by dbj
Branch: MAIN
Changes since 1.21: +49 -2 lines
Diff to previous 1.21 (colored)

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.21 / (download) - annotate - [select for diffs], Tue Oct 10 01:41:14 2006 UTC (6 years, 7 months ago) by dbj
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

free specfile structure once it has been applied

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 10 01:39:10 2006 UTC (6 years, 7 months ago) by dbj
Branch: MAIN
Changes since 1.19: +70 -73 lines
Diff to previous 1.19 (colored)

use new implementation of link_check which i
implemented for du.c revision 1.25 :

Use open address hashtable with multiplicative double hash probing
and exponential hashtable growth for tracking previously seen inodes.
This replaces the O(n^2) behavior of linkchk() with an implementation
that should be O(n*logn)

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 1 22:19:34 2006 UTC (7 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Stop duplicating the ISO9660 sources in sys/fs/cd9660/ for makefs(8).

Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 19 02:09:50 2005 UTC (7 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.17: +7 -6 lines
Diff to previous 1.17 (colored)

64 bit inode changes

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:18 2004 UTC (8 years, 11 months ago) by jmc
Branch: 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
Changes since 1.16: +10 -4 lines
Diff to previous 1.16 (colored)

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.16 / (download) - annotate - [select for diffs], Mon May 31 22:24:51 2004 UTC (8 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Use uint64_t instead of uint32_t to store a host inode when checking
for duplicate inodes, as Cygwin's stat(2) has a 64 bit st_ino.
Fix from Ian Lance Taylor in private email.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 19 06:11:35 2003 UTC (9 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

realloc pedant

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:32 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.13: +3 -7 lines
Diff to previous 1.13 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 9 00:48:59 2003 UTC (10 years ago) by itojun
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

just for safety - use sizeof

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 29 00:12:12 2003 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

Add a -x option which causes makefs(8) to exclude any file system node
not explicitly listed in the specfile.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 27 01:34:09 2003 UTC (10 years, 3 months ago) by uwe
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

s/ulong/unsigned long/.  ulong is for SysV compatibility, there's no
point in using it in our code.  This change makes makefs(8) compile on
host systems without ulong.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 19 20:33:20 2002 UTC (10 years, 7 months ago) by provos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

use readlink with bufsize - 1; approved thorpej.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Feb 8 01:17:32 2002 UTC (11 years, 3 months ago) by lukem
Branch: 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
Branch point for: netbsd-1-6
Changes since 1.8: +15 -9 lines
Diff to previous 1.8 (colored)

If an entry is in the specfile but not in the underlying file system, and it's
marked "optional", don't add it. (e.g, don't create a zero-length file).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 31 22:44:03 2002 UTC (11 years, 3 months ago) by tv
Branch: MAIN
Changes since 1.7: +13 -8 lines
Diff to previous 1.7 (colored)

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.7 / (download) - annotate - [select for diffs], Wed Jan 23 02:26:21 2002 UTC (11 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.6: +6 -17 lines
Diff to previous 1.6 (colored)

Merge create_fsinode() into create_fsnode(), so that a newly created
fsnode always has a valid inode member.   Problem noted by Artem Belevich.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 5 11:08:53 2001 UTC (11 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.5: +69 -67 lines
Diff to previous 1.5 (colored)

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.5 / (download) - annotate - [select for diffs], Fri Nov 2 03:12:48 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

tweak copyright

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 29 07:30:07 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

cast time_t values to long if printing as %ld to appease the sparc64 port

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 29 05:38:09 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.2: +16 -4 lines
Diff to previous 1.2 (colored)

- apply_specdir(): when adding a new symlink from the specfile, do the assert
  check on the correct node
- apply_specentry(): if this node is a duplicate of another, apply the
  changes to the `master' entry instead of this one.
- fix inotype() to DTRT
- comment out some debugging info that is too verbose

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 28 13:14:05 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

add __RCSID()

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 26 06:16:19 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN

Initial revision

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>