summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass2.c
AgeCommit message (Collapse)Author
2011-05-08Small memory optimization from NetBSD; ok krw@ millert@Otto Moerbeek
2011-04-24remove support for (very) old ffs on-disk formats; ok krw@ and noOtto Moerbeek
objection form the usual suspects
2011-04-16Blend in some code from netbsd and freebsd that reduces memory consumptionOtto Moerbeek
and speeds things up in a lot of cases. Prompted by Amit Kulkarni; ok krw@ on a slighly diffrenent incarnation
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
2008-06-10reduce mem usage by about 20% by packing state and type of an inode in a singleOtto Moerbeek
byte. Original diff by drahn@; twists by me; ok millert@ thib@
2007-06-25Teach fsck_ffs about 64-bit block addresses. ok (and help) moritz@ pedro@Otto Moerbeek
2007-04-10Add support for checking ffs2 filesystems. From pedro@ based onTodd C. Miller
the ufs2 changes in FreeBSD by Kirk Mckusick.
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-12use asprintf instead of a static buffer; dhill, tested by pedroTheo de Raadt
2006-01-25spell fall through as FALLTHROUGHTed Unangst
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
2003-10-11consistent newlines, from tom cosgrove at arches-consulting.com.Ted Unangst
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-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-26string cleaning; ok teduTheo de Raadt
2003-04-16string cleaningTheo de Raadt
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-06-09rm trailing whitespaceTodd T. Fries
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-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-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)
1999-03-01SIGINFO supportDavid Leonard
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1996-10-20Sync with NetBSD 961019Thorsten Lockert
1996-06-23update rcsidTheo de Raadt
1996-05-28be more carefulTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt