Various fixes from Jason McIntyre <jmc@kerhand.co.uk>.
This commit is contained in:
parent
d97a943f37
commit
841db612d9
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: newfs_ext2fs.8,v 1.7 2009/12/01 08:47:25 pooka Exp $
|
||||
.\" $NetBSD: newfs_ext2fs.8,v 1.8 2010/02/17 21:39:14 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1987, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -34,7 +34,7 @@
|
|||
.Os
|
||||
.Sh NAME
|
||||
.Nm newfs_ext2fs
|
||||
.Nd construct a new Ext2 file system
|
||||
.Nd construct a new ext2 file system
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl FINZ
|
||||
|
@ -52,7 +52,7 @@
|
|||
.Ar special
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
is used to initialize and clear Ext2 file systems before first use.
|
||||
is used to initialize and clear ext2 file systems before first use.
|
||||
Before running
|
||||
.Nm
|
||||
the disk must be labeled using
|
||||
|
@ -71,11 +71,11 @@ suffix:
|
|||
Bytes; causes no modification.
|
||||
(Default)
|
||||
.It k
|
||||
Kilo; multiply the argument by 1024
|
||||
Kilo; multiply the argument by 1024.
|
||||
.It m
|
||||
Mega; multiply the argument by 1048576
|
||||
Mega; multiply the argument by 1048576.
|
||||
.It g
|
||||
Giga; multiply the argument by 1073741824
|
||||
Giga; multiply the argument by 1073741824.
|
||||
.El
|
||||
.Pp
|
||||
The following options define the general layout policies.
|
||||
|
@ -94,7 +94,7 @@ The default size depends upon the size of the file system:
|
|||
.It \*[Gt] 512 MB
|
||||
4 KB
|
||||
.El
|
||||
.It Fl D
|
||||
.It Fl D Ar inodesize
|
||||
Set the inode size.
|
||||
Defaults to 128, and can also be set to 256 for
|
||||
compatibility with ext4.
|
||||
|
@ -106,11 +106,11 @@ The file system size needs to be specified with
|
|||
No attempts to use or update the disk label will be made.
|
||||
.It Fl f Ar frag-size
|
||||
The fragment size of the file system in bytes.
|
||||
It must be the same with blocksize because current ext2fs
|
||||
It must be the same with blocksize because the current ext2fs
|
||||
implementation doesn't support fragmentation.
|
||||
.It Fl I
|
||||
Do not require that the file system type listed in the disk label is
|
||||
.Ql Linux Ext2 .
|
||||
.Ql Linux ext2 .
|
||||
.It Fl i Ar bytes-per-inode
|
||||
This specifies the density of inodes in the file system.
|
||||
If fewer inodes are desired, a larger number should be used;
|
||||
|
@ -134,16 +134,16 @@ takes precedence.
|
|||
The default number of inodes is calculated from a number of blocks in
|
||||
the file system.
|
||||
.It Fl O Ar filesystem-format
|
||||
Select the filesystem-format
|
||||
Select the filesystem-format.
|
||||
.Bl -tag -width 3n -offset indent -compact
|
||||
.It 0
|
||||
.Ql GOOD_OLD_REV ;
|
||||
This option is primarily used to build root file systems that can be
|
||||
this option is primarily used to build root file systems that can be
|
||||
understood by old or dumb firmwares for bootstrap.
|
||||
(default)
|
||||
.It 1
|
||||
.Ql DYNAMIC_REV ;
|
||||
Various extended (and sometimes incompatible) features are enabled
|
||||
various extended (and sometimes incompatible) features are enabled
|
||||
(though not all features are supported on
|
||||
.Nx ) .
|
||||
Currently only the following features are supported:
|
||||
|
@ -186,7 +186,7 @@ is negative the specified size is subtracted from the default size
|
|||
This controls the amount of information written to stdout:
|
||||
.Bl -tag -width 3n -offset indent -compact
|
||||
.It 0
|
||||
No output
|
||||
No output.
|
||||
.It 1
|
||||
Overall size and cylinder group details.
|
||||
.It 2
|
||||
|
@ -200,7 +200,7 @@ All the super-block backup sector numbers are displayed (no progress bar).
|
|||
The default is 3.
|
||||
If
|
||||
.Fl N
|
||||
is specifed
|
||||
is specified
|
||||
.Nm
|
||||
stops before outputting the progress bar.
|
||||
.It Fl v Ar volname
|
||||
|
@ -231,15 +231,15 @@ Defaults to 512.
|
|||
.El
|
||||
.Sh NOTES
|
||||
There is no option to specify the metadata byte order on the file system
|
||||
to be created because native Ext2 file system is always little endian
|
||||
to be created the because native ext2 file system is always little endian
|
||||
even on big endian hosts.
|
||||
.Pp
|
||||
The file system is created with
|
||||
.Sq random
|
||||
inode generation numbers to improve NFS security.
|
||||
.Pp
|
||||
The owner and group ids of the root node and reserved blocks of the new
|
||||
file system are set to the effective uid and gid of the user initializing
|
||||
The owner and group IDs of the root node and reserved blocks of the new
|
||||
file system are set to the effective UID and GID of the user initializing
|
||||
the file system.
|
||||
.Pp
|
||||
For the
|
||||
|
@ -247,7 +247,7 @@ For the
|
|||
command to succeed,
|
||||
the disk label should first be updated such that the fstype field for the
|
||||
partition is set to
|
||||
.Ql Linux Ext2 ,
|
||||
.Ql Linux ext2 ,
|
||||
unless
|
||||
.Fl F
|
||||
or
|
||||
|
@ -259,9 +259,9 @@ is used.
|
|||
.\" utility.
|
||||
.\" .Pp
|
||||
The partition size is found using
|
||||
.Xr fstat 2
|
||||
not by inspecting the disklabel.
|
||||
The block size and fragment size will be written back to the disklabel
|
||||
.Xr fstat 2 ,
|
||||
not by inspecting the disk label.
|
||||
The block size and fragment size will be written back to the disk label
|
||||
only if the last character of
|
||||
.Ar special
|
||||
references the same partition as the minor device number.
|
||||
|
@ -278,7 +278,7 @@ references the same partition as the minor device number.
|
|||
.\" .Xr makefs 8 ,
|
||||
.Xr mount 8 ,
|
||||
.Xr mount_ext2fs 8 ,
|
||||
.Xr newfs 8 ,
|
||||
.Xr newfs 8
|
||||
.Rs
|
||||
.%A Remy Card
|
||||
.%A Theodore Ts'o
|
||||
|
@ -312,7 +312,7 @@ The
|
|||
.Nm
|
||||
command doesn't support the bad block list accounted by the bad blocks inode.
|
||||
.Pp
|
||||
Many newer Ext2 file system features (especially journaling) are
|
||||
Many newer ext2 file system features (especially journaling) are
|
||||
not supported yet.
|
||||
.Pp
|
||||
Some features in file systems created by the
|
||||
|
@ -323,4 +323,4 @@ utility.
|
|||
.Pp
|
||||
There is no native tool in the
|
||||
.Nx
|
||||
distribution for resizing Ext2 file systems yet.
|
||||
distribution for resizing ext2 file systems yet.
|
||||
|
|
Loading…
Reference in New Issue