On 02/23/2015 11:08 AM, Felipe Monteiro de Carvalho wrote: > Hello, > > First thanks for the answer =) > > On Mon, Feb 23, 2015 at 12:44 PM, Dave Kleikamp > <dave.kleik...@oracle.com> wrote: >> Are you familiar with the JFS layout document? >> http://jfs.sourceforge.net/project/pub/jfslayout.pdf > > Yes, I read the entire document multiple times. I even found some > typos (in Figure 2 length and addr fields are switched in xad entries > of aggrinode self) > >> The fileset inode map consists of an array of inode aggregate group >> structures or IAGs. These contain maps to the inode extents that >> actually hold the inodes themselves. Each IAG addresses 4096 inodes >> (INOSPERIAG), so inodes 0x106 and 0x107 need only the first IAG. Within >> the IAG is an array of the pxd's pointing to the extents, inoext[], so >> inodes 0x106 and 0x107 would be in the extent pointed to by inoext[8] in >> the first IAG. > > Thanks, but looking into the iag: > > http://magnifier.sourceforge.net/tmp/jfs_inode_alloc_map_start.png > > Or more precisely into the iag->inoext: > > http://magnifier.sourceforge.net/tmp/jfs_inode_alloc_map_inoext.png > > The inoext has [0], [1] and [2] filled but [8] is filled with zeroes > .. any ideas?
Yeah, I see it now. You are looking at the inodes right. The directory doesn't point to inodes 0x106 or 107. The structure dtroot_t begins at 0x2b4e0. next_index is 3, so we are interested only in entries 0-2 in stbl, which are 5, 1 and 3. freelist is 2, which means slot 2 begins the free list. The free list interprets the slot as dtslot (rather than ldtentry) and only next and cnt are valid. (cnt is set to 1, but it's ignored in the free list.) Following stbl, the valid directory entries are those in slots 5, 1 and 3 which are 10MB_77.bin, subdir1 and testfile1.txt. The free list contains slots 2, 6, 7 and 8, terminated by FF. I hope this helps, Dave ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Jfs-discussion mailing list Jfs-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jfs-discussion