HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)
f
fsdb_hfs(1M) fsdb_hfs(1M)
=" Character string assignment
b Convert from fragment number to disk address (historically "block")
d Directory slot offset
f File print facility
i Convert from i-number to inode address; for continuation inodes as well as primary
inodes
p General print facility
q Quit
B Byte mode
D Double-word mode
O Error checking flip-flop
W Word mode
X Hexadecimal flip-flop
Dots, tabs, and spaces can be used as function delimiters, but are not necessary. A line with just a new-
line character increments the current address by the size of the data type last printed. That is, the
address is set to the next byte, word, double word, directory entry, or inode, allowing the user to step
through a region of a file system.
Information is printed in a format appropriate to the data type. If the
X toggle is off, bytes, words, and
double words are printed in the form:
octal-address
: octal-value (decimal-value
)
If the X toggle is on, bytes, words, and double words are printed in the form:
hex-address
: hex-value
If the
B (byte) or D (double-word) mode is in effect, the colon (
:) shown above is preceded by .B or .D,
respectively.
Directories are printed as a directory slot offset followed by the decimal i-number and the character
representation of the entry name.
Inodes are printed with labeled fields describing each element.
Print Facilities
The print facilities generate a formatted output in various styles. Octal numbers are prefixed with a zero.
Hexadecimal numbers are prefixed with
0x. The current address is normalized to an appropriate boun-
dary before printing begins. It advances with the printing and is left at the address of the last item
printed. The output can be terminated at any time by typing the interrupt character. If a number follows
the p symbol, that many entries are printed. A check is made to detect fragment boundary overflows
since logically sequential blocks are generally not physically sequential. If a count of zero is used, all
entries to the end of the current fragment are printed. The print options available are:
b Print as octal bytes
c Print as characters
d Print as directories
e Print as decimal words
i Print as inodes (primary or continuation)
o Print as octal words
x Print as hexadecimal words
The
f symbol prints data fragments associated with the current inode. If followed by a number, that
fragment of the file is printed. (Fragments are numbered from zero). The desired print option letter fol-
lows the fragment number, if present, or the f symbol. This print facility works for small as well as large
files except for special files such as FIFOs, and device special files.
Inode and Directory Mnemonics
The following mnemonics are used for inode examination and refer to the current working inode:
anum Data block numbers (num is in the range 0 − 14)
at Time last accessed
ci Continuation inode number
ct Last time inode changed
gid Group ID number
ln Link count
Section 1M−−228 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003