HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
ncheck_vxfs(1M) ncheck_vxfs(1M)
NAME
ncheck_vxfs: ncheck - generate pathnames from inode numbers for a VxFS file system
SYNOPSIS
ncheck [-a][-F vxfs
][-i ilist ][-o specific_options ][-s
][-S sector_list ][-V ] special ...
DESCRIPTION
ncheck generates a list of pathnames corresponding to inode numbers for files in a specified VxFS file
system.
You can specify a range for some options. A range can be a single number, or two numbers separated by a
hyphen (
-). The range is inclusive. If the range is a single number, the output will refer to the single
sector, block, or surface specified by that number. If you enter a hyphen and omit the first number
(-number), the range begins at zero. If you omit the second number, the range ends at the end of the file
system.
Names of directory files are followed by slash dot (
/.).
Options
ncheck_vxfs recogizes the following options:
-a Allow printing of the names dot (.) and dot dot (..
), which are ordinarily
suppressed.
-F vxfs Specify the file-system type (vxfs).
-i ilist Limit the report to the files on the inode list, ilist , that follows. The ilist must be
separated by commas without spaces.
-o specific_options
Specify options specific to the VxFS file-system type. specific_options is a list of
suboptions and/or keyword/attribute pairs intended for the VxFS-specific module of
the command.
The available options are
b=block
Print the pathname containing file system block number block.
block=block_range
Print information on all inodes containing or referencing block numbers in the
specified range. The output format is the same as that for -o sector=, but
the units used are file-system blocks instead of sectors.
m Print mode information (used in conjunction with -i option).
sector=sector_range
Report on all inodes containing or referencing the sector(s) in sector_range .
The output includes the inode number, fileset index of the inode, sector(s) con-
tained and the pathname or inode type. Inodes searched include structural
inodes and attribute inodes, so a pathname is only generated when the sector
is contained by a file. If the sector is not contained in any file, the inode type is
printed as <free>. Multiple -o sector= options accumulate.
surface[=sector_range ]
Perform a surface analysis. If a sector_range is specified, perform a surface
analysis only for that range. All the sectors are read and if the read of a sec-
tor fails, its sector number is printed. If any bad sectors are found, ncheck
treats the list of bad sectors as input to the -o sector=sector_range option
and produces a list of inodes containing or referencing the bad sectors.
-s Report only on special files and regular files with set-user-ID mode. This option
may be used to detect violations of security policy.
-S sector_list Report on files containing or referencing the specified sector(s). Output consists of
the fileset name, fileset index, inode number, and pathname of file or file type if a
structural inode or attribute inode. Sectors not allocated to any file or file system
structure are reported as <free>. Sectors not part of the file system are reported
as <unused>. Unused or irrelevant fields are printed as -.
Section 1M−−496 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: August 2003