File:  [NetBSD Developer Wiki] / wikisrc / projects / project / ffs-defrag.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Fri Aug 26 07:24:14 2016 UTC (3 years, 2 months ago) by dholland
Branches: MAIN
CVS tags: HEAD
Rename this (defrag_ffs.mdwn -> ffs-defrag.mdwn) to get ikiwiki to sort it
better.

[[!template id=project

title="Defragmentation for FFS"

contact="""
[tech-kern](mailto:tech-kern@NetBSD.org)
"""

category="filesystems"
difficulty="medium"

description="""
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.

Note that safety (not scrambling the volume if the system crashes
while defragging) is somewhat tricky and critically important.
"""
]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb