summaryrefslogtreecommitdiff
path: root/sbin/fsck
AgeCommit message (Collapse)Author
2023-01-04Christos Zoulas agreed to rescind clause 3 and 4 inJonathan Gray
NetBSD fsck.8 rev 1.35 fsutil.h rev 1.14 pathnames.h rev 1.2 netgroup_mkdb.8 rev 1.9 netgroup_mkdb.c rev 1.18 str.c rev 1.7 str.h rev 1.4 rdate.8 rev 1.11 rdate.c rev 1.19 extern.h rev 1.14 getnetgrent.c rev 1.41 netgroup.h rev 1.10 fparseln.3 rev 1.4 fparseln.c rev 1.10 our stringlist.c/stringlist.h are derived from getnetgrent.c rfc868time.c from rdate.c newfs/pathnames.h from fsck/pathnames.h https://mail-index.netbsd.org/source-changes/2009/10/21/msg002182.html Not all files are covered as some had copyright assigned to TNF in 1998.
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
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@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2018-09-24Use unveil(2). These programs fit together in various strange ways,Theo de Raadt
so if a problem is encountered with this the whole set needs backout and study.
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
resistant against memory correctup, if a corrupt filesystem is given to them. ok krw
2015-09-27lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */Philip Guenther
(others require more care)
2015-05-29do not need non-NULL-check before free(p), other minor refactoringTheo de Raadt
from Benjamin Baier
2015-05-29remove duplicate assignments; from Benjamin BaierTheo de Raadt
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-03-20Fix cut & pasto in warning message; from Andre SmaginTodd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-10-17trivial replacement with reallocarray()Theo de Raadt
2014-10-08replace internal erealloc() with ereallocarray(), and then use it toTheo de Raadt
spot mult int overflow
2014-07-13-N for SYNOPSIS and usage(), and some small changes to previous;Jason McIntyre
2014-07-13Intorduce the same -N flag that mount(8) just got to do the sameClaudio Jeker
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@
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
Careful second audit by millert
2013-02-11Xr scan_ffs 8; requested by Scott McEachernJason McIntyre
2010-11-29make "fsck -p" respect fs_passno > 2, as implied by the manual. This canChris Kuethe
be used to schedule the check of softraid(4) disks after all the slices on the component disks have been checked. ok deraadt
2010-11-17Try to determine file system type using readlabelfs(3) if fsck is givenJoel Sing
a disklabel UID.
2010-08-12Print the real device name followed by the disklabel UID in parenthesisJoel Sing
when fsck is run against a disklabel UID. This allows a user to determine which device is really being scanned. ok krw@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2007-10-20add missing [-b block#] to the usage of fsck(8)Igor Sobrado
ok jmc@
2007-10-20an usage message should fit on a 80-column displayIgor Sobrado
ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-12remove references to mount_vnd.8 and fsck_vnd.8 as these are not hookedFelix Kronlage
into the build yet. ok jmc@
2007-04-14+.Xr fsck_vnd 8 ,Jason McIntyre
2007-02-17silence fsck_{e2fs,ffs} when being put to work on non-existing filenamesAlexander von Gernler
idea from and ok pedro@
2006-05-28revert a part of last commit causes newlineThordur I. Bjornsson
proplems during boot. pointed out by sturm@
2006-05-27newline fix + s/perror/xperror since we areThordur I. Bjornsson
using a home rolled version. ok pedro@
2006-03-30Document 'F' as an answer to fsck, okay deraadt@ jolan@Pedro Martelletto
2006-03-20NetBSD Coverity CID 1745: Fix memory leak.David Hill
yes otto@
2005-11-21Accept and pass through -b option for fsck_ffs and fsck_ext2fsTodd C. Miller
OK mickey@
2005-11-12use snprintf; ok cloder dhill@mindcry.orgTheo de Raadt
2005-10-28Change some TAILQ_FIRST() == NULL tests into TAILQ_EMPTY(). The firstOtto Moerbeek
form is valid, but in these cases its more clear to say what you mean. ok pat@ henning@
2005-10-15Use queue macros instead of directly accessing fields. ok miod@ aaron@Otto Moerbeek
jaredy@ patrick@ millert@
2005-02-03sync usage outputJared Yanovich
2005-02-03- simplify, normalize, and sync usage/synopsis formsJared Yanovich
- filesystem -> file system, for consistency - indent sections where applicable - mdoc, punctuation, grammar, etc. fixes - document SIGINFO to fsck_ffs - unify description of -n among documents - sprinkle xrefs all around - move parts relevant to fsck.8 from fsck_ffs.8 parts from NetBSD ok jmc
2005-01-27remove some overly complex macros;Jason McIntyre
2005-01-27document what preen mode does;Jason McIntyre
text from netbsd -r1.20 (tidied up by myself); pointed out by alexander farber (pr #4076); ok krw@ jaredy@
2004-07-28.Xr growfs 8Jason McIntyre
2004-07-28- sort optionsJason McIntyre
- sync usage() - use -keeps for SYNOPSIS
2004-01-13Use = for assignment, not ==Otto Moerbeek
ok millert@
2003-09-25do not crank size before ereallocTheo de Raadt
2003-09-25p = realloc(p is not allowedTheo de Raadt
2003-07-29If euid == 0 make datasize unlimited instead of cranking to the maxTodd C. Miller
value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
2003-07-29spacesTheo de Raadt
2003-06-26const the rcsid, and make it say OpenBSDTed Unangst
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-16string cleaningTheo de Raadt
2003-03-06Make fsdb(8) a little easier to find with some cross references.Hugh Graham