Can somebody clue me in about inodes on an RS6000 running AIX 3.1?

Roy Mongiovi roy at prism.gatech.EDU
Fri Dec 14 04:26:45 AEST 1990


I'm trying to write a program to read the contents of a file from the raw
filesystem given its inode number.  I've figured out how to do this on Dynix
(Sequent), SunOS, and IRIX (SGI).  Now I'm trying to port it to AIX and the
journalled filesystem.

I've tried using the "itod" and "itoo" macros from /usr/include/sys/sysmacros.h
but "itod" (at least) does not seem to compute the correct block number.  I've
managed to find the root inode in the raw filesystem, and I've looked at the
next inode (3) which should be the inode for the ".inodes" file.  This inode
is suppoed to represent a file that contains all the filesystem's inodes, but
it contains 0 blocks, is of size 0, and all the disk addresses are 0.

So, anyway, I'm clueless.  Can anyone point me in the right direction?  Thanks.
-- 
Roy J. Mongiovi     Systems Support Specialist     Office of Computing Services
Georgia Institute of Technology	  Atlanta, Georgia  30332-0275   (404) 894-4660
	uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!roy
	ARPA: roy at prism.gatech.edu



More information about the Comp.unix.aix mailing list