summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb/fsdb.8
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-06-15 07:12:20 +0000
committercharnier <charnier@FreeBSD.org>1998-06-15 07:12:20 +0000
commita91f714a56e003af39380834e9380961dc96b0d7 (patch)
tree5595103e91d0c3ea5c95667d857163972f1c259c /sbin/fsdb/fsdb.8
parent07d25baf9d301d4d3b992e1580348ad73ce0894d (diff)
downloadFreeBSD-src-a91f714a56e003af39380834e9380961dc96b0d7.zip
FreeBSD-src-a91f714a56e003af39380834e9380961dc96b0d7.tar.gz
Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correct
formatting of rcsid. Remove unused #includes. Do not use memory after freeing it.
Diffstat (limited to 'sbin/fsdb/fsdb.8')
-rw-r--r--sbin/fsdb/fsdb.839
1 files changed, 21 insertions, 18 deletions
diff --git a/sbin/fsdb/fsdb.8 b/sbin/fsdb/fsdb.8
index c1b9b59..2b4251e 100644
--- a/sbin/fsdb/fsdb.8
+++ b/sbin/fsdb/fsdb.8
@@ -26,7 +26,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: fsdb.8,v 1.6 1997/02/22 14:32:25 peter Exp $
+.\" $Id: fsdb.8,v 1.7 1997/04/15 09:02:43 joerg Exp $
.\"
.Dd September 14, 1995
.Dt FSDB 8
@@ -35,13 +35,13 @@
.Nm fsdb
.Nd FFS debugging/editing tool
.Sh SYNOPSIS
-.Nm
+.Nm fsdb
.Op Fl d
.Op Fl f
.Op Fl r
.Ar fsname
.Sh DESCRIPTION
-.Nm
+.Nm Fsdb
opens
.Ar fsname
(usually a raw disk partition) and runs a command loop
@@ -58,20 +58,18 @@ library, so you can use command line editing to reduce typing if desired.
When you exit the command loop, the file system superblock is marked
dirty and any buffered blocks are written to the file system.
.Pp
-The
-.Fl d
-option enables additional debugging output (which comes primarily from
+The following options are available:
+.Bl -tag -width indent
+.It Fl d
+Enable additional debugging output (which comes primarily from
.Xr fsck 8 -derived
code).
-.Pp
-The
-.Fl f
-option is left for historical reasons and has no meaning.
-.Pp
-Option
-.Fl r
-opens the filesystem read/only, and disables all commands that would
+.It Fl f
+Left for historical reasons and has no meaning.
+.It Fl r
+Open the filesystem read/only, and disables all commands that would
write to it.
+.El
.Sh COMMANDS
Besides the built-in
.Xr libedit 3
@@ -157,7 +155,7 @@ entry if the name will fit into the existing directory slot.
.It Cm chtype Ar type
Change the type of the current inode to
.Ar type .
-.Ar type
+.Ar Type
may be one of:
.Em file ,
.Em dir ,
@@ -228,14 +226,19 @@ The
.Xr libedit 3
reference page is not yet written.
.Sh HISTORY
-.Nm
+.Nm Fsdb
uses the source code for
.Xr fsck 8
to implement most of the file system manipulation code. The remainder of
.Nm
-first appeared in NetBSD, written by John T. Kohl.
+first appeared in
+.Bx Net ,
+written by
+.An John T. Kohl .
.br
-Peter Wemm ported it to FreeBSD.
+.An Peter Wemm
+ported it to
+.Bx Free .
.Sh WARNING
Use this tool with extreme caution--you can damage an FFS file system
beyond what
OpenPOWER on IntegriCloud