summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
AgeCommit message (Collapse)Author
2006-04-27Avoid spurious 'summary information bad' warnings, okay tedu@Pedro Martelletto
2006-04-17more signal handler cleaningTheo de Raadt
2006-04-17solve half of the signal race issuesTheo de Raadt
2006-04-17prettier code; ok pedroTheo de Raadt
2006-04-17Remove "l:" from getopt(3) string, since the option wasMoritz Jodeit
removed long ago. From Steffen Wendzel. ok pedro@
2006-04-07fsck needs to unset FS_FLAGS_UPDATED if it changes the super blockPedro Martelletto
2006-04-02use SEEK_* for lseek()Theo de Raadt
2006-03-30when asking y or n, accept "F" which forces yes from the on. i haveTheo de Raadt
wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
2006-03-22earlier asprintf diff caused malloc in signal handler. clarify theTheo de Raadt
code a bit more so that this mistake will not be done again
2006-03-20NetBSD Coverity CID 2074: Fix memory leak.David Hill
ok deraadt@
2006-03-12use asprintf instead of a static buffer; dhill, tested by pedroTheo de Raadt
2006-03-09Remove option -n from newfs as well as all references to fs_postbl()Pedro Martelletto
Various testing for a while, okay krw@
2006-01-25spell fall through as FALLTHROUGHTed Unangst
2005-12-19Add and use a few more constants and macros needed by UFS2Pedro Martelletto
No functional change
2005-06-16bye bye whiteoutsTodd C. Miller
2005-04-16Since the return value from the *_info functions is only actually used as aTodd C. Miller
boolean, make it so. OK deraadt@
2005-04-16while snprintf and strlcpy and strlcat have this nice >buflen API (and theTheo de Raadt
-1 mess as well), it is probably not wise to make other functions do the same thing. make them return strlen(). ok uwe marco
2005-02-03misplaced .El marker;Jason McIntyre
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-02-02- syncs are done by a kernel thread, not update(8)Jared Yanovich
- halting flushes the fs cache to disk, no need to run explicitly - other minor tweaks (grammar, punctuation, etc.) ok jmc
2004-11-29Spell precede correctly.Jonathan Gray
'looks fine' millert@, krw@. ok jmc@
2004-07-05remove useless (always false) check; ok millert henningPeter Valchev
2004-02-01add paper.txt target;Jason McIntyre
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-10-11consistent newlines, from tom cosgrove at arches-consulting.com.Ted Unangst
2003-09-25do not crank size first, do not do p = realloc(p, ...Theo de Raadt
2003-09-25whack commons as wanted by hoTheo de Raadt
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
2003-07-08- fix some lists/displaysJason McIntyre
- use .Dl for one-liners, rather than .Bd
2003-06-26const the rcsid, and make it say OpenBSDTed Unangst
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
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-30only compare suberblock fields that are interesting, instead of trying toTed Unangst
ignore the noninteresting ones. will allow future changes to work with an older fsck. similar to changes in NetBSD and FreeBSD. ok krw@
2003-04-26string cleaning; ok teduTheo de Raadt
2003-04-16string cleaningTheo de Raadt
2003-03-11spellingDavid Krause
ok millert@
2002-08-23- Convert function definitions to new styleGrigoriy Orlov
- eliminate trailing whitespace - remove casts that aren't needed. - make rcsid strings const, for -Wall compilation. from tedu <grendel@zeitbombe.org>
2002-08-20clean some more signal races, some cannot be fixedTheo de Raadt
2002-06-09rm trailing whitespaceTodd T. Fries
2002-05-22strcpy, sprintf death; mpech okTheo de Raadt
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
2002-02-23getc() returns an intTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-01fix headersTheo de Raadt
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-05-28Fix directory state tracking.Grigoriy Orlov
- If the lost+found directory is created by fsck, it will do a cacheino() which sets the inoinfo's i_parent and i_dotdot to 0, but they never get set to ROOTINO. This means that propagate will never find lost+found and its descendents, subdirectories will remain DSTATE (instead of DFOUND) even though they are correctly linked in, and pass4.c will try to clear them unsuccessfully, thinking that there is no link count from the DSTATE directory's parent. The result is that you need to run fsck twice and get "EXTRANEOUS HARD LINK TO DIRECTORY" error (which are unexpected and fatal when running in preen mode). The fix is to set i_parent and i_dotdot to "parent" after the second cacheino() call in dir.c:allocdir(). From NetBSD via FreeBSD. - modify propagate() so it be able to start from any point in the tree. - minor tweaks to get more generality in state propagation. In other words fsck doesn't leave unremovable directories anymore. costa@ ok.
2001-05-15error out if failed to malloc memory for inode cache entry; deraadt@ okMichael Shalayeff
2001-05-15report on another calloc() failureTheo de Raadt