summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/inode.c
AgeCommit message (Collapse)Author
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.
2007-02-12remsize must be signed to avoid wrapping around to some huge number.Otto Moerbeek
Solves a case were fsck_ffs was causing a segv. If it didn't do that it would have mangled the filesystem later, very probably. Diff from FreeBSD; ok millert@ pedro@
2007-01-24A reallocated root directory gets ownership of the fsck process.Alexander Bluhm
If lost+found is created, it gets ownership of the root directory. ok pedro
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-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
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-05-22strcpy, sprintf death; mpech okTheo 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-11-05kill more registers;Mike Pechkin
millert@ ok
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-05-15error out if failed to malloc memory for inode cache entry; deraadt@ okMichael Shalayeff
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-08-06uid_t and gid_t, and use %uTheo de Raadt
1997-10-11Never involve negative numbers in unsigned expressions. Fixes a segfault someNiklas Hallqvist
bad fs images triggers.
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-06-25(foo *)0 -> NULLkstailey
1997-06-22Avoid an overflow when checking inode numbers; from FreeBSD PR #3528 byThorsten Lockert
Ian Dowse <iedowse@maths.tcd.ie>
1996-10-20Sync with NetBSD 961019Thorsten Lockert
1996-10-12From Kirk McKusick:Thorsten Lockert
If a directory somehow develops a hole (that is a block pointer that has a value of zero), fsck would give the filesystem a clean bill of health, but the kernel would panic when accessing the directory with the hole. Fsck now checks for holes in directories. If found in preen mode, fsck fails. In manual mode, it can be directed to shorten the directory to the beginning of the hole. A more complete solution would be to allocate a block to fill the hole. However, this is a lot more work for a `cannot happen' error, so the extra effort seems unwarranted.
1996-06-23update rcsidTheo de Raadt
1996-05-28be more carefulTheo de Raadt
1995-12-18use ufs_daddr_t; another time_t cleanupTheo de Raadt
1995-12-16handle time_t things that really are not time_tTheo de Raadt
1995-11-13time_t typecast; from bernd@arresum.inka.de; netbsd pr#1724Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt