IPATCH(1M)
NAME
ipatch − print/modify contents of an inode
SYNOPSIS
/etc/ipatch filesystem inode
DESCRIPTION
Ipatch is an interactive program which allows the superuser to print and/or modify the contents of an inode. 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, 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 #.
FILES
There is no default file system name.
SEE ALSO
clri(1), ncheck(1), icheck(1), fsck(1)
DIAGNOSTICS
Ipatch prints ’?’ if it cannot execute a command.
RESTRICTIONS
Can be very dangerous if not properly used.