1*61606Sbostic.\" Copyright (c) 1993
2*61606Sbostic.\"	The Regents of the University of California.  All rights reserved.
361603Sbostic.\"
461603Sbostic.\" %sccs.include.redist.roff%
561603Sbostic.\"
6*61606Sbostic.\"	@(#)lfs_cleanerd.8	8.1 (Berkeley) 06/05/93
761603Sbostic.\"
861603Sbostic.Dd ""
961603Sbostic.Dt LFS_CLEANERD 8
1061603Sbostic.Os BSD 4.4
1161603Sbostic.Sh NAME
1261603Sbostic.Nm lfs_cleanerd
1361603Sbostic.Nd garbage collect a log-structured file system
1461603Sbostic.Sh SYNOPSIS
1561603Sbostic.Nm lfs_cleanerd
1661603Sbostic.Op Fl ds
1761603Sbostic.Pa node
1861603Sbostic.Sh DESCRIPTION
1961603SbosticThe
2061603Sbostic.Nm lfs_cleanerd
2161603Sbosticcommand starts a daemon process which garbage-collects
2261603Sbosticthe log-structed file system residing at the point named by
2361603Sbostic.Ar node
2461603Sbosticin the global file system namespace.
2561603SbosticThis command is normally executed by
2661603Sbostic.Xr mount_lfs 8
2761603Sbosticwhen the log-structured file system is mounted.
2861603SbosticThe daemon will exit within a few minutes
2961603Sbosticof when the file system it was cleaning is unmounted.
3061603Sbostic.Pp
3161603SbosticGarbage collection on a log-structured file system is done by scanning
3261603Sbosticthe file system's segments for active, i.e. referenced, data and copying
3361603Sbosticit to new segments.
3461603SbosticWhen all of the active data in a given segment has been copied to a new
3561603Sbosticsegment that segment can be marked as empty, thus reclaiming the space
3661603Sbostictaken by the inactive data which was in it.
3761603Sbostic.Pp
3861603SbosticThe following options are available:
3961603Sbostic.Bl -tag -width indent
4061603Sbostic.It Fl d
4161603SbosticRun in debug mode.
4261603SbosticDo not become a daemon process, and print debugging information.
4361603Sbostic.It Fl s
4461603SbosticWhen cleaning the file system, read data in small chunks.
4561603Sbostic.El
4661603Sbostic.Sh SEE ALSO
4761603Sbostic.Xr mount_lfs 8
4861603Sbostic.Sh HISTORY
4961603SbosticThe
5061603Sbostic.Nm lfs_cleanerd
5161603Sbosticutility first appeared in 4.4BSD.
52