xref: /netbsd-src/sbin/mount_lfs/mount_lfs.8 (revision 0f210657f7f850acc3132f91c369c9ec930663be)
1.\"	$NetBSD: mount_lfs.8,v 1.15 2005/03/31 11:43:14 wiz Exp $
2.\"
3.\" Copyright (c) 1993, 1994
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. Neither the name of the University nor the names of its contributors
15.\"    may be used to endorse or promote products derived from this software
16.\"    without specific prior written permission.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.\"	@(#)mount_lfs.8	8.5 (Berkeley) 3/30/94
31.\"
32.Dd March 31, 2005
33.Dt MOUNT_LFS 8
34.Os
35.Sh NAME
36.Nm mount_lfs
37.Nd mount a log-structured file system
38.Sh SYNOPSIS
39.Nm
40.Op Fl bdins
41.Op Fl N Ar nsegs
42.Op Fl o Ar options
43.Ar special
44.Ar node
45.Sh DESCRIPTION
46The
47.Nm
48command attaches a log-structured file system
49.Ar special
50device on to the file system tree at the point
51.Ar node .
52Both
53.Ar special
54and
55.Ar node
56are converted to absolute paths before use.
57In addition, the
58.Xr lfs_cleanerd 8
59utility is invoked to clean the file system periodically.
60.Pp
61This command is normally executed by
62.Xr mount 8
63at boot time.
64.Pp
65The options are as follows:
66.Bl -tag -width Ds
67.It Fl b
68Instruct the cleaner to count bytes written, rather than segments read,
69to determine how many segments to clean at once.
70.It Fl d
71Run
72.Xr lfs_cleanerd 8
73in debug mode.
74.It Fl i
75Instruct the cleaner to use filesystem idle time as the criterion
76for aggressive cleaning, instead of system load.
77.It Fl o
78Options are specified with a
79.Fl o
80flag followed by a comma separated string of options.
81See the
82.Xr mount 8
83man page for possible options and their meanings.
84.It Fl N Ar nsegs
85Clean
86.Ar nsegs
87segments (or bytes' worth of segments if
88.Fl b
89is also specified) at a time.
90.It Fl n
91Don't start
92.Xr lfs_cleanerd 8
93on the file system.
94.It Fl s
95Cause
96.Xr lfs_cleanerd 8
97to read data in small chunks when cleaning the file system.
98.El
99.Sh SEE ALSO
100.Xr mount 2 ,
101.Xr unmount 2 ,
102.Xr fstab 5 ,
103.Xr dump_lfs 8 ,
104.Xr lfs_cleanerd 8 ,
105.Xr mount 8 ,
106.Xr newfs_lfs 8
107.Rs
108.%A Ousterhout and Douglis
109.%D 1989
110.%T "Beating the I/O Bottleneck: A Case for Log-structured File Systems"
111.%J "Operating Systems Review"
112.%V Vol. 23
113.%N No. 1
114.%P pp. 11-27
115.%O "also available as Technical Report UCB/CSD 88/467"
116.Re
117.Rs
118.%A Rosenblum and Ousterhout
119.%D 1991
120.%T "The Design and Implementation of a Log-Structured File System"
121.%J "ACM SIGOPS Operating Systems Review"
122.%V Vol. 25
123.%N No. 5
124.Re
125.Rs
126.%A Seltzer
127.%D 1992
128.%T "File System Performance and Transaction Support"
129.%B "PhD Thesis, University of California, Berkeley"
130.%O "also available as Technical Report UCB/ERL M92"
131.Re
132.Rs
133.%A Seltzer, Bostic, McKusick and Staelin
134.%D 1993
135.%T "An Implementation of a Log-Structured File System for UNIX"
136.%J "Proc. of the Winter 1993 USENIX Conf."
137.%P pp. 315-331
138.Re
139.Sh HISTORY
140The
141.Nm
142function first appeared in
143.Bx 4.4 .
144