summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-03-18 22:55:53 +0000
committeraaron <aaron@openbsd.org>2000-03-18 22:55:53 +0000
commit9615e1d4618bbbbd8022566b9fc98c40933bd654 (patch)
tree1fc47c13ece701d667ebd0fa2d640da49e67a0a6 /sbin/fsdb
parentSync. (diff)
downloadwireguard-openbsd-9615e1d4618bbbbd8022566b9fc98c40933bd654.tar.xz
wireguard-openbsd-9615e1d4618bbbbd8022566b9fc98c40933bd654.zip
Remove hard sentence breaks, and some other cleanup along the way.
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.879
1 files changed, 43 insertions, 36 deletions
diff --git a/sbin/fsdb/fsdb.8 b/sbin/fsdb/fsdb.8
index 4eab50b5057..9b9653c9839 100644
--- a/sbin/fsdb/fsdb.8
+++ b/sbin/fsdb/fsdb.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fsdb.8,v 1.12 1999/07/04 18:59:39 aaron Exp $
+.\" $OpenBSD: fsdb.8,v 1.13 2000/03/18 22:55:57 aaron Exp $
.\" $NetBSD: fsdb.8,v 1.5 1997/01/11 05:51:40 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -50,25 +50,28 @@
opens
.Ar fsname
(usually a raw disk partition) and runs a command loop
-allowing manipulation of the file system's inode data. You are prompted
-to enter a command with
+allowing manipulation of the file system's inode data.
+You are prompted to enter a command with
.Ic "fsdb (inum X)>"
where
.Va X
-is the currently selected i-number. The initial selected inode is the
-root of the filesystem (i-number 2).
+is the currently selected i-number.
+The initial selected inode is the root of the file system (i-number 2).
+.Pp
The command processor uses the
.Xr editline 3
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 options are as follows:
+.Bl -tag -width Ds
+.It Fl d
+Enables additional debugging output (which comes primarily from
.Xr fsck 8 -derived
code).
-.Sh COMMANDS
+.El
+.Pp
Besides the built-in
.Xr editline 3
commands,
@@ -90,21 +93,20 @@ Revert to the previously current inode.
.It Cm clri
Clear the current inode.
.Pp
-.It Cm lookup Ar name
-.It Cm cd Ar name
+.It Cm lookup Ar name , Cm cd Ar name
Find
.Ar name
in the current directory and make its inode the current inode.
.Ar Name
may be a multi-component name or may begin with slash to indicate that
-the root inode should be used to start the lookup. If some component
+the root inode should be used to start the lookup.
+If some component
along the pathname is not found, the last valid directory encountered is
left as the active inode.
.Pp
This command is valid only if the starting inode is a directory.
.Pp
-.It Cm active
-.It Cm print
+.It Cm active , Cm print
Print out the active inode.
.Pp
.It Cm uplink
@@ -118,23 +120,22 @@ Set the active inode's link count to
.Ar number .
.Pp
.It Cm ls
-List the current inode's directory entries. This command is valid only
-if the current inode is a directory.
+List the current inode's directory entries.
+This command is valid only if the current inode is a directory.
.Pp
-.It Cm rm Ar name
-.It Cm del Ar name
+.It Cm rm Ar name , Cm del Ar name
Remove the entry
.Ar name
-from the current directory inode. This command is valid only
-if the current inode is a directory.
+from the current directory inode.
+This command is valid only if the current inode is a directory.
.Pp
.It Cm ln Ar ino Ar name
Create a link to inode
.Ar ino
under the name
.Ar name
-in the current directory inode. This command is valid only
-if the current inode is a directory.
+in the current directory inode.
+This command is valid only if the current inode is a directory.
.Pp
.It Cm chinum Ar dirslot Ar inum
Change the i-number in directory entry
@@ -147,7 +148,8 @@ Change the name in directory entry
.Ar dirslot
to
.Ar name .
-This command cannot expand a directory entry. You can only rename an
+This command cannot expand a directory entry.
+You can only rename an
entry if the name will fit into the existing directory slot.
.Pp
.It Cm chtype Ar type
@@ -188,9 +190,10 @@ Change the group of the current inode to
Change the generation number of the current inode to
.Ar gen .
.Pp
-.It Cm mtime Ar time
-.It Cm ctime Ar time
-.It Cm atime Ar time
+.It Xo Cm mtime Ar time ,
+.Cm ctime Ar time ,
+.Cm atime Ar time
+.Xc
Change the modification, change, or access time (respectively) on the
current inode to
.Ar time .
@@ -199,14 +202,17 @@ should be in the format
.Em YYYYMMDDHHMMSS[.nsec]
where
.Em nsec
-is an optional nanosecond specification. If no nanoseconds are specified, the
+is an optional nanosecond specification.
+If no nanoseconds are specified, the
.Va mtimensec ,
.Va ctimensec ,
or
.Va atimensec
field will be set to zero.
.Pp
-.It Cm quit, Cm q, Cm exit, Em <EOF>
+.It Xo Cm quit ,
+.Cm q , Cm exit, Em <EOF>
+.Xc
Exit the program.
.El
.Sh SEE ALSO
@@ -214,6 +220,15 @@ Exit the program.
.Xr fs 5 ,
.Xr clri 8 ,
.Xr fsck 8
+.Sh HISTORY
+.Nm
+uses the source code for
+.Xr fsck 8
+to implement most of the file system manipulation code.
+The remainder of
+.Nm
+first appeared in
+.Nx 1.1 .
.Sh BUGS
Manipulation of
.Dq short
@@ -225,14 +240,6 @@ You must specify modes as numbers rather than symbolic names.
There are a bunch of other things that you might want to do which
.Nm
doesn't implement.
-.Sh HISTORY
-.Nm
-uses the source code for
-.Xr fsck 8
-to implement most of the file system manipulation code. The remainder of
-.Nm
-first appeared in
-.Nx 1.1 .
.Sh WARNING
Use this tool with extreme caution \(en you can damage an FFS file system
beyond what