man.bsd.lv manual page server

Manual Page Search Parameters

LFS_CLEANERD(8) System Manager's Manual LFS_CLEANERD(8)

lfs_cleanerdgarbage collect a log-structured file system

lfs_cleanerd [-ds] node

The lfs_cleanerd command starts a daemon process which garbage-collects the log-structured file system residing at the point named by node in the global file system namespace. This command is normally executed by mount_lfs(8) when the log-structured file system is mounted. The daemon will exit within a few minutes of when the file system it was cleaning is unmounted.

Garbage collection on a log-structured file system is done by scanning the file system's segments for active, i.e. referenced, data and copying it to new segments. When all of the active data in a given segment has been copied to a new segment that segment can be marked as empty, thus reclaiming the space taken by the inactive data which was in it.

The following options are available:

Run in debug mode. Do not become a daemon process, and print debugging information.
When cleaning the file system, read data in small chunks.

mount_lfs(8)

The lfs_cleanerd utility first appeared in 4.4BSD.

BSD 4.4 December 11, 1993 LFS_CLEANERD(8)