The NetBSD Project

CVS log for src/sbin/fsck/fsutil.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:18 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.5 (colored)

Merge changes from current as of 20200406

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 3 19:36:32 2020 UTC (3 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) to selected 1.5 (colored)

Avoid common symbols for fsck_lfs.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 21 04:01:40 2015 UTC (8 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, 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-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-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
Branch point for: phil-wifi
Changes since 1.25: +13 -2 lines
Diff to previous 1.25 (colored) to selected 1.5 (colored)

Add used-by comments on source files that are .PATH'd in from elsewhere.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 21 03:58:36 2015 UTC (8 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) to selected 1.5 (colored)

global variables should be declared extern.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:05 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.23: +10 -3 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.5 (colored)

resync with head

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:29 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.20.2.1: +10 -3 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.5 (colored)

sync with head

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 13 19:53:16 2013 UTC (11 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, agc-symver-base, agc-symver
Changes since 1.23: +10 -3 lines
Diff to previous 1.23 (colored) to selected 1.5 (colored)

Support symlinks to a block device to resolve the name of the
corresponding raw device.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:39 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.20: +26 -45 lines
Diff to previous 1.20 (colored) to selected 1.5 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 8 04:19:14 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.22: +14 -14 lines
Diff to previous 1.22 (colored) to selected 1.5 (colored)

Don't re-use the same buffer that we pass in for newname in the cooked->raw
conversion. Better variable names.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 7 16:44:10 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.21: +16 -39 lines
Diff to previous 1.21 (colored) to selected 1.5 (colored)

factor out rawname() from dump, fsck, savecore.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Apr 7 04:52:20 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.20: +7 -3 lines
Diff to previous 1.20 (colored) to selected 1.5 (colored)

use getfsspecname()

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:41 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.19: +45 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.5 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 9 19:57:50 2011 UTC (12 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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
Branch point for: yamt-pagecache
Changes since 1.19: +45 -2 lines
Diff to previous 1.19 (colored) to selected 1.5 (colored)

share more code.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Feb 4 23:55:42 2010 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.18: +14 -2 lines
Diff to previous 1.18 (colored) to selected 1.5 (colored)

Centralize time printing and deal with ctime possibly returning NULL.

Revision 1.16.18.1 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:10 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.5 (colored)

Sync with HEAD.

Revision 1.16.16.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:48 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.5 (colored)

sync with head.

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:23 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.5 (colored)

sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 16 23:17:55 2008 UTC (16 years ago) by lukem
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, 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, mjf-devfs2-base, matt-premerge-20091211, 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-armv6-nbase, keiichi-mipv6-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.5 (colored)

errexit() now provides the trailing \n (since fsck_ffs assumed that
from a conversion from err(3)), so "make it so".

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 23 21:41:47 2008 UTC (16 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored) to selected 1.5 (colored)

Make sure that the exit values are always sane, and use symbolic instead
of magic constants. Reviewed by go@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 26 18:14:28 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Changes since 1.15: +2 -38 lines
Diff to previous 1.15 (colored) to selected 1.5 (colored)

Programs that use efun.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 5 16:52:05 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.14: +16 -10 lines
Diff to previous 1.14 (colored) to selected 1.5 (colored)

s/perror/perr/ so that we can make it varyadic. Overloading stdio's perror()
sneaky.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 20 12:04:38 2003 UTC (20 years, 5 months ago) by dsl
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, 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-base, 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-0, netbsd-2
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored) to selected 1.5 (colored)

Add a -q (quiet) option to print nothing for clean filesystems.
Support in fsck_ffs and stub in fsck_xxx.
Push a few more messages through pwarn() instead of printf() to ensure
disk name is shown.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:16 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.12: +3 -7 lines
Diff to previous 1.12 (colored) to selected 1.5 (colored)

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

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

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 28 08:12:38 2003 UTC (21 years ago) by perseant
Branch: MAIN
Changes since 1.11: +3 -6 lines
Diff to previous 1.11 (colored) to selected 1.5 (colored)

Make vmsg non-static, so it can be used directly by fsck_lfs.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 9 07:50:19 2001 UTC (22 years, 4 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, netbsd-1-6, fvdl_fs64_base
Changes since 1.10: +10 -6 lines
Diff to previous 1.10 (colored) to selected 1.5 (colored)

use MAXPATHLEN instead of 32 as the size of the rawbuf

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 18 02:31:09 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.9: +20 -79 lines
Diff to previous 1.9 (colored) to selected 1.5 (colored)

ansi knf

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:19 2001 UTC (23 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.8: +3 -5 lines
Diff to previous 1.8 (colored) to selected 1.5 (colored)

convert to use getprogname()

Revision 1.7.12.1 / (download) - annotate - [select for diffs], Wed Oct 18 00:39:44 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.5 (colored)

Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Tue Oct 10 22:24:46 2000 UTC (23 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.5 (colored)

Pull up revision 1.8 (requested by is):
  Format string cleanup.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 10 20:24:51 2000 UTC (23 years, 5 months ago) by is
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored) to selected 1.5 (colored)

Format string cleanups by Bill Sommerfeld.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 30 17:41:03 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5, netbsd-1-4
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored) to selected 1.5 (colored)

Cast pointer diffs to int for use in printf format width specifiers.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 26 20:02:36 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +15 -18 lines
Diff to previous 1.5 (colored)

const poisoning.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Fri Oct 31 21:19:30 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.4: +15 -9 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull rev 1.5 up from trunk (mycroft)

Revision 1.5 / (download) - annotate - [selected], Fri Oct 31 09:11:55 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +15 -9 lines
Diff to previous 1.4 (colored)

Format police.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 14 14:11:01 1997 UTC (26 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.5 (colored)

* cleanup for WARNS=1
* deprecate register
* prefix hex numbers with '0x'

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 22 16:57:51 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.2: +21 -14 lines
Diff to previous 1.2 (colored) to selected 1.5 (colored)

Fix varyadic non ansi functions.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 3 20:06:31 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.1: +14 -2 lines
Diff to previous 1.1 (colored) to selected 1.5 (colored)

- Null terminate the argv vector [from ws]
- Dynamically allocate the argv vector
- Add -f global flag [from ws]

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 27 22:38:41 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Diff to selected 1.5 (colored)

- Rename util.c and util.h to fsutil.c and fsutil.h to avoid conflict with
  <util.h>
- Change checkfstab so that the checkit function takes the name of the
  mount point too (needed by quotacheck).
- Remove globals debug, verbose and preen

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>