OpenBSD CVS

CVS log for src/sbin/fsdb/fsdb.c


[BACK] Up to [local] / src / sbin / fsdb

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 9 03:16:00 2024 UTC (4 months, 4 weeks ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Fri Jul 22 09:04:44 2022 UTC (22 months, 2 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

fix use after free in debug path
ok jan@ miod@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jan 27 05:03:25 2021 UTC (3 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.33: +48 -1 lines
Diff to previous 1.33 (colored)

shuffle externs (and definitions) around to satisfy -fno-common
ok mortimer

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 28 15:48:28 2020 UTC (4 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Make generation numbers unsigned and fill them using a random number
from the range [1..UINT_MAX] initially.  On inode re-use increment
and on wrap refill from the range [1..UINT_MAX-1] to avoid
assigning UINT_MAX (the original value). Zero still means uninitialized.
ok millert@

Revision 1.32 / (download) - annotate - [select for diffs], Sun Sep 16 02:44:06 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.31: +2 -5 lines
Diff to previous 1.31 (colored)

Use uid_from_user(3) and gid_from_group(3) in utilities that
do repeated lookups.  OK tb@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 9 15:37:14 2016 UTC (7 years, 9 months ago) by tb
Branch: MAIN
CVS Tags: 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)

Tighten pledge for fsdb and eliminate a strcmp("fsdb", getprogname())
by passing a flag to setup().

ok deraadt

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jun 7 01:29:38 2016 UTC (8 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

per trending style, add continue to emtpy loop bodies.
ok mglocker

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jan 20 18:22:21 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:58 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 25 06:43:20 2013 UTC (11 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored)

big int_t/time_t fixes; ok deraadt@ krw@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 24 13:46:29 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.25: +14 -10 lines
Diff to previous 1.25 (colored)

pretty print bigger off_t
ok tedu otto

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 23 07:11:27 2013 UTC (11 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.24: +10 -7 lines
Diff to previous 1.24 (colored)

prepare for more time (bits); ok deraadt@ millert@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 16 19:25:49 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

bzero struct tm before use

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:33 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.22: +1 -5 lines
Diff to previous 1.22 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:06 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.21: +2 -9 lines
Diff to previous 1.21 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 10 16:08:08 2008 UTC (16 years ago) by otto
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

better take the size of the right table; found while tinkering with fsck_ffs
by accident the buggy expression yields the same value.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 10 17:17:25 2007 UTC (17 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.19: +34 -20 lines
Diff to previous 1.19 (colored)

Add support for ffs2 filesystems.  From pedro@ based on the ufs2
changes in FreeBSD by Kirk McKusick.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 20 22:23:57 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

clarify that -f is not optional; ok otto

Revision 1.18 / (download) - annotate - [select for diffs], Fri Mar 19 14:16:01 2004 UTC (20 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.17: +11 -10 lines
Diff to previous 1.17 (colored)

Fix bad indentation that creates the illusion that there's a bug here. tedu@,
deraadt@ ok

Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 31 08:44:07 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

New libedit api changes.

Tested by djm@, mouring@, jmc@.

ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 26 16:09:27 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

check strdup failure; ok anil millert

Revision 1.15 / (download) - annotate - [select for diffs], Mon Aug 25 23:28:15 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

rename struct dinode to ufs1_dinode.  clears the namespace and makes
way for some future work.  no function changes yet.
help testing otto@ and markus@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 26 08:01:54 2003 UTC (20 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

const the rcsid, and make it say OpenBSD

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:13 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.12: +524 -530 lines
Diff to previous 1.12 (colored)

ansification

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 17 06:56:04 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

strlcpy; ok tedu

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:06 2002 UTC (22 years ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.10: +20 -20 lines
Diff to previous 1.10 (colored)

rm trailing whitespace

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 14 06:51:41 2002 UTC (22 years, 3 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Remove \n from err/errx/warn/warnx().

millert@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:34 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.8: +12 -12 lines
Diff to previous 1.8 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:16 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

kill more registers;

millert@ ok

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 6 20:41:06 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

uid_t and gid_t, and use %u

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 19 03:17:15 1999 UTC (25 years ago) by alex
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Use fprintf/exit in place of errx for usage display.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 8 20:56:28 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

fix atime and mtime commands; ms@xy.org

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 16 04:04:19 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +66 -40 lines
Diff to previous 1.3 (colored)

Update from NetBSD: adds chlen command and makes -Wall happy.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 21 23:46:22 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

sync to netbsd 960418

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 21 00:15:46 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.1: +36 -27 lines
Diff to previous 1.1 (colored)

From NetBSD: Merge of 960317

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:34 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:34 1995 UTC (28 years, 7 months ago) by deraadt
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.