summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/utilities.c
AgeCommit message (Collapse)Author
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-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-09-30Some format string problems that were missed during initial audit; deraadt@ andAaron Campbell
millert@ ok
1999-03-01SIGINFO supportDavid Leonard
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-06-25(foo *)0 -> NULLkstailey
1996-10-20Sync with NetBSD 961019Thorsten Lockert
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt