aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2019-08-07 16:56:00 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2019-08-07 16:56:00 +0000
commit47d3e2f83be3ffabdcc701e87bdee592ad596771 (patch)
tree7ba6303c43927db261a27042068a5d57108da22c
parentb0927a31ddf75dab0f7410ffb930b65daf3f17c6 (diff)
downloadsrc-47d3e2f83be3ffabdcc701e87bdee592ad596771.tar.gz
src-47d3e2f83be3ffabdcc701e87bdee592ad596771.zip
Correct the location of the first backup superblock in fsck_ffs.8.
Make a note in the newfs.8 manual page to update the first backup superblock location when changing the default fragment size for the filesystem. Reported by: O. Hartmann
Notes
Notes: svn path=/head/; revision=350682
-rw-r--r--sbin/fsck_ffs/fsck_ffs.82
-rw-r--r--sbin/newfs/newfs.86
2 files changed, 7 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8
index f8d6beb51b49..35f3e112007b 100644
--- a/sbin/fsck_ffs/fsck_ffs.8
+++ b/sbin/fsck_ffs/fsck_ffs.8
@@ -153,7 +153,7 @@ exits without attempting any further cleaning.
Use the block specified immediately after the flag as
the super block for the file system.
An alternate super block is usually located at block 32 for UFS1,
-and block 160 for UFS2.
+and block 192 for UFS2.
.Pp
See the
.Fl N
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8
index 1e6814859cf0..985d0557044e 100644
--- a/sbin/newfs/newfs.8
+++ b/sbin/newfs/newfs.8
@@ -111,6 +111,9 @@ for more details on how to set this option.
.It Fl b Ar block-size
The block size of the file system, in bytes.
It must be a power of 2.
+.\" If changing the default block size and it causes the default
+.\" fragment size to change, be sure to update the location of
+.\" the first backup superblock on the fsck_ffs.8 manual page.
The
default size is 32768 bytes, and the smallest allowable size is 4096 bytes.
The optimal block:fragment ratio is 8:1.
@@ -143,6 +146,9 @@ ranging in value between
.Ar blocksize Ns /8
and
.Ar blocksize .
+.\" If changing the default fragment size or it changes because of a
+.\" change to the default block size, be sure to update the location
+.\" of the first backup superblock on the fsck_ffs.8 manual page.
The default is 4096 bytes.
.It Fl g Ar avgfilesize
The expected average file size for the file system.