summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
AgeCommit message (Collapse)Author
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
2001-04-23Various man page fixes and improvements from gluk@Aaron Campbell
2001-04-19Cleanup dirpref and synhronize superblock with freebsd.Grigoriy Orlov
From FreeBSD with little changes. art@ ok.
2001-04-13Fix overflow in superblock. From FreeBSD.Grigoriy Orlov
FreeBSD's log: > The ffs superblock includes a 128-byte region for use by temporary > in-core pointers to summary information. An array in this region > (fs_csp) could overflow on filesystems with a very large number of > cylinder groups (~16000 on i386 with 8k blocks). When this happens, > other fields in the superblock get corrupted, and fsck refuses to > check the filesystem. > > Solve this problem by replacing the fs_csp array in 'struct fs' > with a single pointer, and add padding to keep the length of the > 128-byte region fixed. Update the kernel and userland utilities > to use just this single pointer. > > With this change, the kernel no longer makes use of the superblock > fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c > to indicate that these fields must be calculated for compatibility > with older kernels. art@ ok.
2001-04-06Replace FFS directory preference algorithm(dirpref) by new one.Grigoriy Orlov
It allocates directory inode in the same cylinder group as a parent directory in. This speedup file/directory intensive operations on a big file systems in times. Don't forget to recompile fsck_ffs with updated fs.h or you will get "VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE" at the next boot. In any case you can ignore this error safely. Requested by deraadt@
2001-03-09missing \n for MARKED FREE messages, some spacesMichael Shalayeff
2001-03-02Simpler algorithm or calculating inomapsizeConstantine Sapuntzakis
2001-03-02When doing last second fixes before a commit, it's a good ideaArtur Grabowski
to check if it builds.
2001-03-02Make fsck aware of soft updates.Artur Grabowski
We had this in the tree 1997, but it went away because it was too close to release. Ok: csapuntz@ (as a size note: It's really good to test fsck when you are torture testing the filesystems)
2001-01-19mark signal races i cannot fix at the momentTheo de Raadt
2001-01-15save_errno in signal handlerTheo de Raadt
2000-12-29Don't mark filesystem clean if fsck needs to be rerun (PR 1572)Angelos D. Keromytis
2000-09-30Some format string problems that were missed during initial audit; deraadt@ andAaron Campbell
millert@ ok