File:  [NetBSD Developer Wiki] / wikisrc / projects / project / Attic / defrag_ffs.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Thu Feb 27 06:33:07 2014 UTC (3 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: HEAD
Rework text, no substantive change

[[!template id=project

title="Defragmentation for FFS"



Heavily used file systems tend to spread the blocks all over the disk,
especially if free space is scarce. The traditional fix for this is to
use dump, newfs, and restore to rebuild a volume; however, this is not
acceptable for current disk sizes.

The resize_ffs code already contains logic for relocating blocks, as
it needs to be able to do that to shrink a volume; it is likely that
it would serve nicely as a starting point for a defragmenting tool.

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb