aboutsummaryrefslogtreecommitdiff
path: root/include/limits.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2011-04-29 23:00:23 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2011-04-29 23:00:23 +0000
commit8d3dfc2691ee934dfd7c17235c0f10a395525eed (patch)
treee58bb5eb7293c08ac870dd7b462cbf76cdde8ec2 /include/limits.h
parent6c49c6cff2f51045e7c3878f6a88a1c8ce50db17 (diff)
downloadsrc-8d3dfc2691ee934dfd7c17235c0f10a395525eed.tar.gz
src-8d3dfc2691ee934dfd7c17235c0f10a395525eed.zip
Add an -E option to mirror newfs's. The idea is that if you have a system
that was built before ffs grew support for TRIM, your filesystem will have plenty of free blocks that the flash chip doesn't know are free, so it can't take advantage of them for wear leveling. Once you've upgraded your kernel, you enable TRIM on the filesystem (tunefs -t enable), then run fsck_ffs -E on it before mounting it. I tested this patch by half-filling an mdconfig'ed filesystem image, running fsck_ffs -E on it, then verifying that the contents were not damaged by comparing them to a pristine copy using rsync's checksum functionality. There is no reliable way to test it on real hardware. Many thanks to mckusick@, who provided the tricky parts of this patch and reviewed the final version. Reviewed by: mckusick@ MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=221233
Diffstat (limited to 'include/limits.h')
0 files changed, 0 insertions, 0 deletions