ipatch(8)
NAME
ipatch − print/modify contents of an inode
SYNTAX
/etc/ipatch filesystem inode
DESCRIPTION
The ipatch command is an interactive program which allows the superuser to print and/or modify the contents of an inode. The filesystem is the name of the special file for the file system containing the inode to be patched and inode is the number of the inode to be patched. Printing inodes may be done freely, but patching should be done only on dismounted file systems.
Once invoked, the ipatch program prints a “.” prompt, indicating that it is ready to execute one of the following commands:
q Quit, and exit from ipatch.
p Print the contents of the inode.
w Write the patched inode out to the file system.
The following ipatch commands require numbers as arguments. If the first digit of a number is zero it is interpreted as octal, otherwise as decimal.
f # Change the inode flags to #.
l # Change the link count to #.
u # Change the user ID to #.
g # Change the group ID to #.
s # Change the file size to # bytes.
a #addr # Change the contents of the element of the inode’s address array, specified by #addr, to #.
RESTRICTIONS
Can be very dangerous if not properly used.
DIAGNOSTICS
Prints ’?’ if it cannot execute a command.
FILES
There is no default file system name.