aboutsummaryrefslogtreecommitdiff
path: root/sbin/badsect
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2002-05-16 04:10:46 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2002-05-16 04:10:46 +0000
commit3468b317cb93827fbbd4b835f5c233804bc5203c (patch)
tree0adfec655f17ae1258112946fa8d7d72c9c75f76 /sbin/badsect
parent4481bee4621453e6555046bda0aa6ad9f672b773 (diff)
downloadsrc-3468b317cb93827fbbd4b835f5c233804bc5203c.tar.gz
src-3468b317cb93827fbbd4b835f5c233804bc5203c.zip
more file system > filesystem
Notes
Notes: svn path=/head/; revision=96707
Diffstat (limited to 'sbin/badsect')
-rw-r--r--sbin/badsect/badsect.818
-rw-r--r--sbin/badsect/badsect.c6
2 files changed, 12 insertions, 12 deletions
diff --git a/sbin/badsect/badsect.8 b/sbin/badsect/badsect.8
index 7ac3e7245e46..e5d4e9e35bcd 100644
--- a/sbin/badsect/badsect.8
+++ b/sbin/badsect/badsect.8
@@ -54,7 +54,7 @@ The technique used by this program is also less general than
bad block forwarding, as
.Nm
can't make amends for
-bad blocks in the i-list of file systems or in swap areas.
+bad blocks in the i-list of filesystems or in swap areas.
.Pp
On some disks,
adding a sector which is suddenly bad to the bad sector table
@@ -68,8 +68,8 @@ do not support the bad-blocking standard
may be used to good effect.
.Pp
.Nm Badsect
-is used on a quiet file system in the following way:
-First mount the file system, and change to its root directory.
+is used on a quiet filesystem in the following way:
+First mount the filesystem, and change to its root directory.
Make a directory
.Li BAD
there.
@@ -80,12 +80,12 @@ giving as argument the
directory followed by
all the bad sectors you wish to add.
(The sector numbers must be relative to the beginning of
-the file system, but this is not hard as the system reports
+the filesystem, but this is not hard as the system reports
relative sector numbers in its console error messages.)
-Then change back to the root directory, unmount the file system
+Then change back to the root directory, unmount the filesystem
and run
.Xr fsck 8
-on the file system. The bad sectors should show up in two files
+on the filesystem. The bad sectors should show up in two files
or in the bad sector files and the free list. Have
.Xr fsck
remove files containing the offending bad sectors, but
@@ -115,14 +115,14 @@ to convert the inode to a regular file containing the bad block.
.Sh DIAGNOSTICS
.Nm Badsect
refuses to attach a block that
-resides in a critical area or is out of range of the file system.
+resides in a critical area or is out of range of the filesystem.
A warning is issued if the block is already in use.
.Sh BUGS
-If more than one sector which comprise a file system fragment are bad,
+If more than one sector which comprise a filesystem fragment are bad,
you should specify only one of them to
.Nm ,
as the blocks in the bad sector files actually cover all the sectors in a
-file system fragment.
+filesystem fragment.
.Sh HISTORY
The
.Nm
diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c
index 27054620c9cc..6094db2e0330 100644
--- a/sbin/badsect/badsect.c
+++ b/sbin/badsect/badsect.c
@@ -52,7 +52,7 @@ static const char rcsid[] =
* and makes files containing the blocks of which these sectors are a part.
* It can be used to contain sectors which have problems if these sectors
* are not part of the bad file for the pack (see bad144). For instance,
- * this program can be used if the driver for the file system in question
+ * this program can be used if the driver for the filesystem in question
* does not support bad block forwarding.
*/
#include <sys/param.h>
@@ -169,7 +169,7 @@ chkuse(daddr_t blkno, int cnt)
fsbn = dbtofsb(fs, blkno);
if ((unsigned)(fsbn+cnt) > fs->fs_size) {
- printf("block %ld out of range of file system\n", (long)blkno);
+ printf("block %ld out of range of filesystem\n", (long)blkno);
return (1);
}
cg = dtog(fs, fsbn);
@@ -200,7 +200,7 @@ chkuse(daddr_t blkno, int cnt)
}
/*
- * read a block from the file system
+ * read a block from the filesystem
*/
void
rdfs(daddr_t bno, int size, char *bf)