diff options
author | trhodes <trhodes@FreeBSD.org> | 2002-08-21 18:11:48 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2002-08-21 18:11:48 +0000 |
commit | 136be46680c6e4a18cc827da991d4f9a0de29cba (patch) | |
tree | b5ee0aba66633a4e0e47097e4f383c253a87887a /sbin/badsect | |
parent | 9618da3e35435c433d8086d65af15f716ffe32ec (diff) | |
download | FreeBSD-src-136be46680c6e4a18cc827da991d4f9a0de29cba.zip FreeBSD-src-136be46680c6e4a18cc827da991d4f9a0de29cba.tar.gz |
s/filesystem/file system/g as discussed on -developers
Diffstat (limited to 'sbin/badsect')
-rw-r--r-- | sbin/badsect/badsect.8 | 18 | ||||
-rw-r--r-- | sbin/badsect/badsect.c | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sbin/badsect/badsect.8 b/sbin/badsect/badsect.8 index 89abe88..a9b00fa 100644 --- a/sbin/badsect/badsect.8 +++ b/sbin/badsect/badsect.8 @@ -55,7 +55,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 filesystems or in swap areas. +bad blocks in the i-list of file systems or in swap areas. .Pp On some disks, adding a sector which is suddenly bad to the bad sector table @@ -70,8 +70,8 @@ may be used to good effect. .Pp The .Nm -utility is used on a quiet filesystem in the following way: -First mount the filesystem, and change to its root directory. +utility is used on a quiet file system in the following way: +First mount the file system, and change to its root directory. Make a directory .Li BAD there. @@ -82,12 +82,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 filesystem, but this is not hard as the system reports +the file system, 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 filesystem +Then change back to the root directory, unmount the file system and run .Xr fsck 8 -on the filesystem. The bad sectors should show up in two files +on the file system. 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 @@ -119,14 +119,14 @@ to convert the inode to a regular file containing the bad block. The .Nm utility refuses to attach a block that -resides in a critical area or is out of range of the filesystem. +resides in a critical area or is out of range of the file system. A warning is issued if the block is already in use. .Sh BUGS -If more than one sector which comprise a filesystem fragment are bad, +If more than one sector which comprise a file system 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 -filesystem fragment. +file system fragment. .Sh HISTORY The .Nm diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c index 94f9023..519f2b7 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 filesystem in question + * this program can be used if the driver for the file system in question * does not support bad block forwarding. */ #include <sys/param.h> @@ -150,7 +150,7 @@ main(int argc, char *argv[]) break; } if (sblock_try[i] == -1) { - printf("Cannot find filesystem\n"); + printf("Cannot find file system\n"); exit(7); } dev_bsize = fs->fs_fsize / fsbtodb(fs, 1); @@ -187,7 +187,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 filesystem\n", (long)blkno); + printf("block %ld out of range of file system\n", (long)blkno); return (1); } cg = dtog(fs, fsbn); @@ -218,7 +218,7 @@ chkuse(daddr_t blkno, int cnt) } /* - * read a block from the filesystem + * read a block from the file system */ void rdfs(daddr_t bno, int size, char *bf) |