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