Greatly reduce memory requirements when fsck'ing filesystems with lots
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 12 Oct 2006 04:04:03 +0000 (04:04 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 12 Oct 2006 04:04:03 +0000 (04:04 +0000)
commitf2c501424738c66cfbb79a3fb6a7e46b82278259
tree4ced11219b753ca81dad37e99986d7cc179ce6c6
parent2c4c6ba5d2c48b1da48968722e94667194c8297f
Greatly reduce memory requirements when fsck'ing filesystems with lots
of directories (23 million directories in my case), primarily by using
the correct ufs1_ino_t type instead of ino_t.  Use a linear allocator
for these as well to pack the allocations optimally.
14 files changed:
sbin/fsck/Makefile
sbin/fsck/dir.c
sbin/fsck/fsck.h
sbin/fsck/fsutil.c
sbin/fsck/fsutil.h
sbin/fsck/inode.c
sbin/fsck/memzone.c [new file with mode: 0644]
sbin/fsck/memzone.h [new file with mode: 0644]
sbin/fsck/pass1.c
sbin/fsck/pass1b.c
sbin/fsck/pass2.c
sbin/fsck/pass3.c
sbin/fsck/pass4.c
sbin/fsck/utilities.c