Up to [local] / src / sbin / fsck
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.41 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:18 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
HEAD
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)
Change the error reporting pattern throughout the tree when unveil fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
Revision 1.40 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:43 2019 UTC (4 years, 11 months ago) by deraadt
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,
OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 24 21:26:00 2018 UTC (5 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.38: +10 -1 lines
Diff to previous 1.38 (colored)
Use unveil(2). These programs fit together in various strange ways, so if a problem is encountered with this the whole set needs backout and study.
Revision 1.38 / (download) - annotate - [select for diffs], Mon Nov 23 19:19:29 2015 UTC (8 years, 6 months ago) by deraadt
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,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)
Use pledge "disklabel" as needed. The theory here is these tools become more resistant against memory correctup, if a corrupt filesystem is given to them. ok krw
Revision 1.37 / (download) - annotate - [select for diffs], Fri May 29 15:57:36 2015 UTC (9 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.36: +4 -6 lines
Diff to previous 1.36 (colored)
do not need non-NULL-check before free(p), other minor refactoring from Benjamin Baier
Revision 1.36 / (download) - annotate - [select for diffs], Fri May 29 15:53:46 2015 UTC (9 years ago) by deraadt
Branch: MAIN
Changes since 1.35: +1 -4 lines
Diff to previous 1.35 (colored)
remove duplicate assignments; from Benjamin Baier
Revision 1.35 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:37 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored)
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 20 01:53:05 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)
Fix cut & pasto in warning message; from Andre Smagin
Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:57 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Fri Oct 17 06:33:35 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)
trivial replacement with reallocarray()
Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 8 16:27:53 2014 UTC (9 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)
replace internal erealloc() with ereallocarray(), and then use it to spot mult int overflow
Revision 1.30 / (download) - annotate - [select for diffs], Sun Jul 13 17:28:13 2014 UTC (9 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
-N for SYNOPSIS and usage(), and some small changes to previous;
Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 13 12:03:48 2014 UTC (9 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.28: +37 -5 lines
Diff to previous 1.28 (colored)
Intorduce the same -N flag that mount(8) just got to do the same selection of file systems with option 'net'. Again this will be used by the rc script to fsck iscsi file systems before mounting them. Again by default file systems with the net option are ignored when scanning fstab. "Get it in" deraadt@
Revision 1.28 / (download) - annotate - [select for diffs], Wed Nov 17 11:22:42 2010 UTC (13 years, 6 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
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
Changes since 1.27: +1 -1 lines
Diff to previous 1.27 (colored)
Try to determine file system type using readlabelfs(3) if fsck is given a disklabel UID.
Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:32 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.26: +1 -3 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Sat Oct 20 18:11:17 2007 UTC (16 years, 7 months ago) by sobrado
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,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.25: +1 -1 lines
Diff to previous 1.25 (colored)
add missing [-b block#] to the usage of fsck(8) ok jmc@
Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 20 18:08:57 2007 UTC (16 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)
an usage message should fit on a 80-column display ok jmc@
Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 20 19:50:09 2006 UTC (18 years, 2 months ago) by dhill
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.23: +4 -2 lines
Diff to previous 1.23 (colored)
NetBSD Coverity CID 1745: Fix memory leak. yes otto@
Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 21 14:27:55 2005 UTC (18 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.22: +11 -4 lines
Diff to previous 1.22 (colored)
Accept and pass through -b option for fsck_ffs and fsck_ext2fs OK mickey@
Revision 1.22 / (download) - annotate - [select for diffs], Sat Nov 12 13:28:34 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +5 -8 lines
Diff to previous 1.21 (colored)
use snprintf; ok cloder dhill@mindcry.org
Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 28 07:30:35 2005 UTC (18 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)
Change some TAILQ_FIRST() == NULL tests into TAILQ_EMPTY(). The first form is valid, but in these cases its more clear to say what you mean. ok pat@ henning@
Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 15 06:26:28 2005 UTC (18 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)
Use queue macros instead of directly accessing fields. ok miod@ aaron@ jaredy@ patrick@ millert@
Revision 1.19 / (download) - annotate - [select for diffs], Thu Feb 3 05:03:50 2005 UTC (19 years, 4 months ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.18: +5 -6 lines
Diff to previous 1.18 (colored)
sync usage output
Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 28 21:17:22 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)
- sort options - sync usage() - use -keeps for SYNOPSIS
Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 13 15:59:13 2004 UTC (20 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)
Use = for assignment, not == ok millert@
Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 25 04:16:41 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +6 -4 lines
Diff to previous 1.15 (colored)
do not crank size before erealloc
Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 29 20:26:23 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored)
If euid == 0 make datasize unlimited instead of cranking to the max value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
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], Mon Jun 2 20:06:14 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.12: +2 -6 lines
Diff to previous 1.12 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 17 13:15:21 2002 UTC (21 years, 7 months ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)
sync usage(). -- Ok'd by: deraadt@
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 3 22:32:32 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.10: +13 -32 lines
Diff to previous 1.10 (colored)
ansi
Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:05 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)
rm trailing whitespace
Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:27 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
Revision 1.8 / (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.7: +11 -11 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:11 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.6: +7 -4 lines
Diff to previous 1.6 (colored)
major -Wall cleanup, almost complete
Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 28 00:47:44 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: 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,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2,
OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.5: +11 -1 lines
Diff to previous 1.5 (colored)
Set data size resource limit to its max value so fsck will work on large disks (and ccd's).
Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 23 07:44:59 1996 UTC (27 years, 5 months ago) by downsj
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
readlabelfs()
Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 4 10:25:57 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
vfork bye bye
Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 4 09:40:41 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +7 -11 lines
Diff to previous 1.2 (colored)
nice argv[0], please do not bite me
Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 4 01:31:11 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +6 -3 lines
Diff to previous 1.1 (colored)
use readlabelfs() if possible
Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 20 08:36:24 1996 UTC (27 years, 7 months ago) by tholo
Branch: MAIN
Sync with NetBSD 961019