1999-07-15 23:09:40 +04:00
|
|
|
.\" $NetBSD: newfs_lfs.8,v 1.2 1999/07/15 19:09:41 perseant Exp $
|
1995-03-18 17:54:19 +03:00
|
|
|
.\"
|
1994-06-08 23:27:32 +04:00
|
|
|
.\" Copyright (c) 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1994-06-14 02:50:46 +04:00
|
|
|
.\" @(#)newlfs.8 8.1 (Berkeley) 6/19/93
|
1994-06-08 23:27:32 +04:00
|
|
|
.\"
|
1999-07-15 23:09:40 +04:00
|
|
|
.Dd July 15, 1999
|
|
|
|
.Dt NEWFS_LFS 8
|
1994-06-08 23:27:32 +04:00
|
|
|
.Os BSD 4.4
|
|
|
|
.Sh NAME
|
1999-03-18 20:18:04 +03:00
|
|
|
.Nm newfs_lfs
|
1994-06-08 23:27:32 +04:00
|
|
|
.Nd construct a new LFS file system
|
|
|
|
.Sh SYNOPSIS
|
1997-09-15 10:55:39 +04:00
|
|
|
.Nm
|
1999-03-18 20:18:04 +03:00
|
|
|
.Op Ar newfs_lfs-options
|
1994-06-08 23:27:32 +04:00
|
|
|
.Ar special
|
|
|
|
.Sh DESCRIPTION
|
1997-09-15 10:55:39 +04:00
|
|
|
.Nm
|
1994-06-08 23:27:32 +04:00
|
|
|
builds a log-structured file system on the specified special
|
|
|
|
device basing its defaults on the information in the disk label.
|
|
|
|
(Before running
|
1997-09-15 10:55:39 +04:00
|
|
|
.Nm
|
1994-06-08 23:27:32 +04:00
|
|
|
the disk must be labeled using
|
|
|
|
.Xr disklabel 8 .)
|
|
|
|
.Pp
|
|
|
|
The following options define the general layout policies.
|
|
|
|
.Bl -tag -width Fl
|
|
|
|
.It Fl B
|
|
|
|
The logical segment size of the file system in bytes.
|
|
|
|
.It Fl b Ar block-size
|
|
|
|
The block size of the file system in bytes.
|
1999-07-15 23:09:40 +04:00
|
|
|
.It Fl f Ar fragment-size
|
|
|
|
The fragment size of the file system in bytes.
|
1994-06-08 23:27:32 +04:00
|
|
|
.It Fl L
|
1999-07-15 23:09:40 +04:00
|
|
|
Create a log-structured file system (LFS). This is the default, and this
|
|
|
|
option is provided for compatibility only.
|
1994-06-08 23:27:32 +04:00
|
|
|
.It Fl m Ar free space \&%
|
|
|
|
The percentage of space reserved from normal users; the minimum
|
|
|
|
free space threshold. The default value used is 10%.
|
|
|
|
See
|
|
|
|
.Xr tunefs 8
|
|
|
|
for more details on how to set this option.
|
1999-07-15 23:09:40 +04:00
|
|
|
.It Fl N
|
|
|
|
Do not actually create the filesystem.
|
1994-06-08 23:27:32 +04:00
|
|
|
.It Fl s Ar size
|
|
|
|
The size of the file system in sectors.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr disktab 5 ,
|
1999-07-15 23:09:40 +04:00
|
|
|
.\" .Xr fs 5 ,
|
1994-06-08 23:27:32 +04:00
|
|
|
.Xr dumplfs 8 ,
|
|
|
|
.Xr disklabel 8 ,
|
|
|
|
.Xr diskpart 8 ,
|
1999-07-15 23:09:40 +04:00
|
|
|
.\" .Xr tunefs 8
|
1994-06-08 23:27:32 +04:00
|
|
|
.Rs
|
1999-07-15 23:09:40 +04:00
|
|
|
.%A M. Seltzer
|
|
|
|
.%A K. Bostic
|
1994-06-08 23:27:32 +04:00
|
|
|
.%A M. McKusick
|
1999-07-15 23:09:40 +04:00
|
|
|
.%A C. Staelin
|
|
|
|
.%T "An Implementation of a Log-Structured File System for UNIX"
|
|
|
|
.%J "Proceedings of the Winter 1993 USENIX Conference"
|
|
|
|
.%D January 25-29, 1993
|
|
|
|
.%P pp. 315-331
|
1994-06-08 23:27:32 +04:00
|
|
|
.Re
|
|
|
|
.Sh HISTORY
|
1999-07-15 23:09:40 +04:00
|
|
|
A \fBnewlfs\fR
|
1994-06-08 23:27:32 +04:00
|
|
|
command appeared in
|
1999-07-15 23:09:40 +04:00
|
|
|
.Bx 4.4 ,
|
|
|
|
and was renamed to
|
|
|
|
.Nm
|
|
|
|
for
|
|
|
|
.Nx 1.4.
|