Print this page
10057 Man page misspellings ouput particuliar overriden
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/fsdb_ufs.1m
          +++ new/usr/src/man/man1m/fsdb_ufs.1m
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  .TH FSDB_UFS 1M "Apr 14, 2003"
   6    6  .SH NAME
   7    7  fsdb_ufs \- ufs file system debugger
   8    8  .SH SYNOPSIS
   9    9  .LP
  10   10  .nf
  11   11  \fBfsdb\fR \fB-F\fR ufs [\fIgeneric_options\fR] [\fIspecific_options\fR] \fIspecial\fR
  12   12  .fi
  13   13  
  14   14  .SH DESCRIPTION
  15      -.sp
  16   15  .LP
  17   16  The \fBfsdb_ufs\fR command is an interactive tool that can be used to patch up
  18   17  a damaged \fBUFS\fR file system. It has conversions to translate block and
  19   18  i-numbers into their corresponding disk addresses. Also included are mnemonic
  20   19  offsets to access different parts of an inode. These greatly simplify the
  21   20  process of correcting control block entries or descending the file system tree.
  22   21  .sp
  23   22  .LP
  24   23  \fBfsdb\fR contains several error-checking routines to verify inode and block
  25   24  addresses. These can be disabled if necessary by invoking \fBfsdb\fR with the
↓ open down ↓ 4 lines elided ↑ open up ↑
  30   29  block \fBI/O\fR devices. A buffer management routine is used to retain commonly
  31   30  used blocks of data in order to reduce the number of read system calls. All
  32   31  assignment operations result in an immediate write-through of the corresponding
  33   32  block. Note that in order to modify any portion of the disk, \fBfsdb\fR must be
  34   33  invoked with the \fBw\fR option.
  35   34  .sp
  36   35  .LP
  37   36  Wherever possible, \fBadb-\fRlike syntax was adopted to promote the use of
  38   37  \fBfsdb\fR through familiarity.
  39   38  .SH OPTIONS
  40      -.sp
  41   39  .LP
  42   40  The following option is supported:
  43   41  .sp
  44   42  .ne 2
  45   43  .na
  46   44  \fB\fB-o\fR\fR
  47   45  .ad
  48   46  .RS 6n
  49   47  Specify \fBUFS\fR file system specific options. These options can be any
  50   48  combination of the following separated by commas (with no intervening spaces).
↓ open down ↓ 30 lines elided ↑ open up ↑
  81   79  .na
  82   80  \fB\fBw\fR\fR
  83   81  .ad
  84   82  .RS 14n
  85   83  open for write
  86   84  .RE
  87   85  
  88   86  .RE
  89   87  
  90   88  .SH USAGE
  91      -.sp
  92   89  .LP
  93   90  Numbers are considered hexadecimal by default. However, the user has control
  94   91  over how data is to be displayed or accepted. The \fBbase\fR command will
  95   92  display or set the input/output base. Once set, all input will default to this
  96   93  base and all output will be shown in this base. The base can be overridden
  97   94  temporarily for input by preceding hexadecimal numbers with \&'\fB0x\fR',
  98   95  preceding decimal numbers with '\fB0t\fR', or octal numbers with '\fB0\fR'.
  99   96  Hexadecimal numbers beginning with \fBa-f\fR or \fBA-F\fR must be preceded with
 100   97  \&'\fB0x\fR' to distinguish them from commands.
 101   98  .sp
↓ open down ↓ 92 lines elided ↑ open up ↑
 194  191        or
 195  192  \fB> :ls /\fR
 196  193  .fi
 197  194  .in -2
 198  195  .sp
 199  196  
 200  197  .sp
 201  198  .LP
 202  199  is again synonymous.
 203  200  .SS "Expressions"
 204      -.sp
 205  201  .LP
 206  202  The symbols recognized by \fBfsdb\fR are:
 207  203  .sp
 208  204  .ne 2
 209  205  .na
 210  206  \fB\fBRETURN\fR\fR
 211  207  .ad
 212  208  .RS 13n
 213  209  update the value of \fBdot\fR by the current value of \fBtype\fR and display
 214  210  using the current value of \fBcount\fR.
↓ open down ↓ 22 lines elided ↑ open up ↑
 237  233  information. The default for \fBcount\fR is 1.
 238  234  .RE
 239  235  
 240  236  .sp
 241  237  .ne 2
 242  238  .na
 243  239  \fB\fB?\fR\fI f\fR\fR
 244  240  .ad
 245  241  .RS 13n
 246  242  display in structured style with format specifier \fIf\fR. See
 247      -\fBFormatted\fROutput\fB\&.\fR
      243 +\fBFormatted Output\fR.
 248  244  .RE
 249  245  
 250  246  .sp
 251  247  .ne 2
 252  248  .na
 253  249  \fB\fB/\fR\fI f\fR\fR
 254  250  .ad
 255  251  .RS 13n
 256      -display in unstructured style with format specifier \fIf\fR See
 257      -\fBFormatted\fROutput\fB\&.\fR
      252 +display in unstructured style with format specifier \fIf\fR. See
      253 +\fBFormatted Output\fR.
 258  254  .RE
 259  255  
 260  256  .sp
 261  257  .ne 2
 262  258  .na
 263  259  \fB\fB\&.\fR\fR
 264  260  .ad
 265  261  .RS 13n
 266  262  the value of \fBdot\fR.
 267  263  .RE
↓ open down ↓ 11 lines elided ↑ open up ↑
 279  275  .sp
 280  276  The default for \fIe\fR is \fB1\fR.
 281  277  .RE
 282  278  
 283  279  .sp
 284  280  .ne 2
 285  281  .na
 286  282  \fB\fB-\fR\fIe\fR\fR
 287  283  .ad
 288  284  .RS 13n
 289      -decrement the value of \fBdot\fR by the expression \fIe\fR. See  \fB+\fR.
      285 +decrement the value of \fBdot\fR by the expression \fIe\fR. See \fB+\fR.
 290  286  .RE
 291  287  
 292  288  .sp
 293  289  .ne 2
 294  290  .na
 295  291  \fB\fB*\fR\fIe\fR\fR
 296  292  .ad
 297  293  .RS 13n
 298  294  multiply the value of \fBdot\fR by the expression \fIe.\fR Multiplication and
 299  295  division don't use \fBtype\fR. In the above calculation of \fBdot\fR, consider
 300  296  the \fBsizeof(type)\fR to be \fB1\fR.
 301  297  .RE
 302  298  
 303  299  .sp
 304  300  .ne 2
 305  301  .na
 306  302  \fB\fB%\fR\fIe\fR\fR
 307  303  .ad
 308  304  .RS 13n
 309      -divide the value of \fBdot\fR by the expression \fIe\fR. See  \fB*\fR.
      305 +divide the value of \fBdot\fR by the expression \fIe\fR. See \fB*\fR.
 310  306  .RE
 311  307  
 312  308  .sp
 313  309  .ne 2
 314  310  .na
 315  311  \fB\fB<\fR\fI name\fR\fR
 316  312  .ad
 317  313  .RS 13n
 318  314  restore an address saved in register \fIname\fR. \fIname\fR must be a single
 319  315  letter or digit.
↓ open down ↓ 8 lines elided ↑ open up ↑
 328  324  save an address in register \fIname\fR. \fIname\fR must be a single letter or
 329  325  digit.
 330  326  .RE
 331  327  
 332  328  .sp
 333  329  .ne 2
 334  330  .na
 335  331  \fB\fB=\fR\fI f\fR\fR
 336  332  .ad
 337  333  .RS 13n
 338      -display indicator. If \fIf\fR is a legitimate format specifier. then the value
      334 +display indicator. If \fIf\fR is a legitimate format specifier, then the value
 339  335  of \fBdot\fR is displayed using the format specifier \fIf\fR. See
 340      -\fBFormatted\fROutput. Otherwise, assignment is assumed See  \fB=\fR.
      336 +\fBFormatted Output\fR. Otherwise, assignment is assumed. See \fB=\fR.
 341  337  .RE
 342  338  
 343  339  .sp
 344  340  .ne 2
 345  341  .na
 346  342  \fB\fB= [\fR\fIs\fR\fB] [\fR\fIe\fR\fB]\fR\fR
 347  343  .ad
 348  344  .RS 13n
 349  345  assignment indicator. The address pointed to by \fBdot\fR has its contents
 350  346  changed to the value of the expression \fIe\fR or to the \fBASCII\fR
↓ open down ↓ 15 lines elided ↑ open up ↑
 366  362  .ne 2
 367  363  .na
 368  364  \fB\fB=-\fR\fI e\fR\fR
 369  365  .ad
 370  366  .RS 13n
 371  367  decremental assignment. The address pointed to by \fBdot\fR has its contents
 372  368  decremented by expression \fIe\fR.
 373  369  .RE
 374  370  
 375  371  .SS "Commands"
 376      -.sp
 377  372  .LP
 378  373  A command must be prefixed by a ':' character. Only enough letters of the
 379  374  command to uniquely distinguish it are needed. Multiple commands may be entered
 380  375  on one line by separating them by a  \fBSPACE,\fR \fBTAB\fR or ';'.
 381  376  .sp
 382  377  .LP
 383  378  In order to view a potentially unmounted disk in a reasonable manner,
 384  379  \fBfsdb\fR offers the \fBcd\fR, \fBpwd\fR, \fBls\fR and \fBfind\fR commands.
 385  380  The functionality of these commands substantially matches those of its UNIX
 386  381  counterparts. See individual commands for details. The '*', '?', and '[-]' wild
↓ open down ↓ 189 lines elided ↑ open up ↑
 576  571  and the name; use the \fBinode\fR command with '?i' to get more information.
 577  572  .RE
 578  573  
 579  574  .sp
 580  575  .ne 2
 581  576  .na
 582  577  \fB\fBoverride\fR\fR
 583  578  .ad
 584  579  .sp .6
 585  580  .RS 4n
 586      -toggle the value of override. Some error conditions may be overriden if
      581 +toggle the value of override. Some error conditions may be overridden if
 587  582  override is toggled on.
 588  583  .RE
 589  584  
 590  585  .sp
 591  586  .ne 2
 592  587  .na
 593  588  \fB\fBprompt\fR\fI p\fR\fR
 594  589  .ad
 595  590  .sp .6
 596  591  .RS 4n
↓ open down ↓ 48 lines elided ↑ open up ↑
 645  640  .ne 2
 646  641  .na
 647  642  \fB\fB!\fR\fR
 648  643  .ad
 649  644  .sp .6
 650  645  .RS 4n
 651  646  escape to shell
 652  647  .RE
 653  648  
 654  649  .SS "Inode Commands"
 655      -.sp
 656  650  .LP
 657  651  In addition to the above commands, there are several commands that deal with
 658  652  inode fields and operate directly on the current \fBinode\fR (they still
 659  653  require the ':'). They may be used to more easily display or change the
 660  654  particular fields. The value of \fIdot\fR is only used by the '\fB:db\fR'
 661  655  and '\fB:ib\fR' commands. Upon completion of the command, the value of \fIdot\fR is
 662  656  changed to point to that particular field. For example,
 663  657  .sp
 664  658  .LP
 665  659  \fB> :ln=+1\fR
↓ open down ↓ 40 lines elided ↑ open up ↑
 706  700  .sp
 707  701  .in +2
 708  702  .nf
 709  703  \fB     > 1:db:block,20/X\fR
 710  704  .fi
 711  705  .in -2
 712  706  .sp
 713  707  
 714  708  would get the contents of data block field 1 from the inode and convert it to a
 715  709  block address. 20 longs are then displayed in hexadecimal. See
 716      -\fBFormatted\fROutput\fB\&.\fR
      710 +\fBFormatted Output\fR.
 717  711  .RE
 718  712  
 719  713  .sp
 720  714  .ne 2
 721  715  .na
 722  716  \fB\fBgid\fR\fR
 723  717  .ad
 724  718  .RS 7n
 725  719  group id.
 726  720  .RE
↓ open down ↓ 95 lines elided ↑ open up ↑
 822  816  .sp
 823  817  .ne 2
 824  818  .na
 825  819  \fB\fBuid\fR\fR
 826  820  .ad
 827  821  .RS 7n
 828  822  user id.
 829  823  .RE
 830  824  
 831  825  .SS "Formatted Output"
 832      -.sp
 833  826  .LP
 834  827  There are two styles and many format types. The two styles are structured and
 835  828  unstructured. Structured output is used to display inodes, directories,
 836  829  superblocks and the like. Unstructured displays raw data. The following shows
 837  830  the different ways of displaying:
 838  831  .sp
 839  832  .ne 2
 840  833  .na
 841  834  \fB\fB?\fR\fR
 842  835  .ad
↓ open down ↓ 365 lines elided ↑ open up ↑
1208 1201  
1209 1202  .sp
1210 1203  .in +2
1211 1204  .nf
1212 1205  > 2:ino:si:ino;0:shadow,*?S
1213 1206  .fi
1214 1207  .in -2
1215 1208  .sp
1216 1209  
1217 1210  .SH SEE ALSO
1218      -.sp
1219 1211  .LP
1220 1212  \fBclri\fR(1M), \fBfsck_ufs\fR(1M), \fBdir_ufs\fR(4), \fBattributes\fR(5),
1221 1213  \fBufs\fR(7FS)
1222 1214  .SH WARNINGS
1223      -.sp
1224 1215  .LP
1225 1216  Since \fBfsdb\fR reads the disk raw, extreme caution is advised in determining
1226 1217  its availability of \fBfsdb\fR on the system. Suggested permissions are 600 and
1227 1218  owned by bin.
1228 1219  .SH NOTES
1229      -.sp
1230 1220  .LP
1231 1221  The old command line syntax for clearing i-nodes using the ufs-specific
1232 1222  \fB\&'-z i-number'\fR option is still supported by the new debugger, though it
1233 1223  is obsolete and will be removed in a future release. Use of this flag will
1234 1224  result in correct operation, but an error message will be printed warning of
1235 1225  the impending obsolesence of this option to the command. The equivalent
1236 1226  functionality is available using the more flexible \fBclri\fR(1M) command.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX