1*61603Sbostic.\" Copyright (c) 1993 The Regents of the University of California.
2*61603Sbostic.\" All rights reserved.
3*61603Sbostic.\"
4*61603Sbostic.\" %sccs.include.redist.roff%
5*61603Sbostic.\"
6*61603Sbostic.\"	@(#)lfs_cleanerd.8	5.1 (Berkeley) 06/05/93
7*61603Sbostic.\"
8*61603Sbostic.Dd ""
9*61603Sbostic.Dt LFS_CLEANERD 8
10*61603Sbostic.Os BSD 4.4
11*61603Sbostic.Sh NAME
12*61603Sbostic.Nm lfs_cleanerd
13*61603Sbostic.Nd garbage collect a log-structured file system
14*61603Sbostic.Sh SYNOPSIS
15*61603Sbostic.Nm lfs_cleanerd
16*61603Sbostic.Op Fl ds
17*61603Sbostic.Pa node
18*61603Sbostic.Sh DESCRIPTION
19*61603SbosticThe
20*61603Sbostic.Nm lfs_cleanerd
21*61603Sbosticcommand starts a daemon process which garbage-collects
22*61603Sbosticthe log-structed file system residing at the point named by
23*61603Sbostic.Ar node
24*61603Sbosticin the global file system namespace.
25*61603SbosticThis command is normally executed by
26*61603Sbostic.Xr mount_lfs 8
27*61603Sbosticwhen the log-structured file system is mounted.
28*61603SbosticThe daemon will exit within a few minutes
29*61603Sbosticof when the file system it was cleaning is unmounted.
30*61603Sbostic.Pp
31*61603SbosticGarbage collection on a log-structured file system is done by scanning
32*61603Sbosticthe file system's segments for active, i.e. referenced, data and copying
33*61603Sbosticit to new segments.
34*61603SbosticWhen all of the active data in a given segment has been copied to a new
35*61603Sbosticsegment that segment can be marked as empty, thus reclaiming the space
36*61603Sbostictaken by the inactive data which was in it.
37*61603Sbostic.Pp
38*61603SbosticThe following options are available:
39*61603Sbostic.Bl -tag -width indent
40*61603Sbostic.It Fl d
41*61603SbosticRun in debug mode.
42*61603SbosticDo not become a daemon process, and print debugging information.
43*61603Sbostic.It Fl s
44*61603SbosticWhen cleaning the file system, read data in small chunks.
45*61603Sbostic.El
46*61603Sbostic.Sh SEE ALSO
47*61603Sbostic.Xr mount_lfs 8
48*61603Sbostic.Sh HISTORY
49*61603SbosticThe
50*61603Sbostic.Nm lfs_cleanerd
51*61603Sbosticutility first appeared in 4.4BSD.
52