summaryrefslogtreecommitdiffstats
path: root/sbin/tunefs/tunefs.8
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-06-25 17:46:13 +0000
committerjoerg <joerg@FreeBSD.org>1995-06-25 17:46:13 +0000
commit17f2f0b53d1ba0d8ee309bad51c8b0d47055125a (patch)
tree00345a13a072d656e40c6abe580696fa4f5bf502 /sbin/tunefs/tunefs.8
parent4b02197d9fe244d4ff24b97b480abdd0b4807cd5 (diff)
downloadFreeBSD-src-17f2f0b53d1ba0d8ee309bad51c8b0d47055125a.zip
FreeBSD-src-17f2f0b53d1ba0d8ee309bad51c8b0d47055125a.tar.gz
When tuneing filesystems with tunefs, it is not obvious what the current
parameters are. You can use dumpfs, but that's not obvious which settings are tuneable, and is far from clear to the non-guru (it's like using a hexdump of a tar archive to get a table-of-contents). There is also an undocumented option in the man page that can be dangerous. Suppose your disk driver decides to scramble all writes while you tell tunefs to update all backup superblocks. This suggested change adds a '-p' (print) switch to bring it in line with some SVR4 systems. (Slightly changed by me, mostly for optics. - joerg) Submitted by: peter@haywire.dialix.com
Diffstat (limited to 'sbin/tunefs/tunefs.8')
-rw-r--r--sbin/tunefs/tunefs.812
1 files changed, 12 insertions, 0 deletions
diff --git a/sbin/tunefs/tunefs.8 b/sbin/tunefs/tunefs.8
index b95ff9d..fbec66c 100644
--- a/sbin/tunefs/tunefs.8
+++ b/sbin/tunefs/tunefs.8
@@ -39,10 +39,12 @@
.Nd tune up an existing file system
.Sh SYNOPSIS
.Nm tunefs
+.Op Fl A
.Op Fl a Ar maxcontig
.Op Fl d Ar rotdelay
.Op Fl e Ar maxbpg
.Op Fl m Ar minfree
+.Op Fl p
.Bk -words
.Op Fl o Ar optimize_preference
.Ek
@@ -54,6 +56,10 @@ which affect the layout policies.
The parameters which are to be changed are indicated by the flags
given below:
.Bl -tag -width Ds
+.It Fl A
+The file system has several backups of the super-block. Specifying
+this option will cause all backups to be modified as well as the
+primary super-block. This is potentially dangerous - use with caution.
.It Fl a Ar maxcontig
This specifies the maximum number of contiguous blocks that will
be laid out before forcing a rotational delay (see
@@ -103,6 +109,12 @@ fragmentation on the disk. Optimization for space has much
higher overhead for file writes.
The kernel normally changes the preference automatically as
the percent fragmentation changes on the file system.
+.It Fl p
+This option shows a summary of what the current tuneable settings
+are on the selected file system. More detailed information can be
+obtained in the
+.Xr dumpfs 8
+manual page.
.El
.Sh SEE ALSO
.Xr fs 5 ,
OpenPOWER on IntegriCloud