views:

12

answers:

0

I know that in inodes that represent files, the name it's not in the inode struct. All files are identified in the UFS by its inode-number.

I know how it works an inode struct in a file... it has all the info plus some pointers to HD blocks that contains the file data.

But I don't know much about how directories are represented as inodes. I have the pointer to the first block on the HD. What do I have there?, in files I have contiguos (suppose) 16bits that reference HD blocks in order. In directories I suppose I have the inodes of the files/other_directories in the directory, but... with their names?. Like: name-inodenumber,name-inodenumber,name-inodenumber?

I'm confused about the length of the names.. there's a limit?. If the block size is 4kb... the file name is fixed in length (to avoid problems of aligments or truncation of name-inodenumber in that block).

I'm sorry to be so confused... maybe a detailed PDF or link about directories inode helps me.