struct ext2_dir_entry_2 {

_le32 inode;


char rec_len;




/* Directory entry length */

typedef struct ext2_dir_entry_2 ext2_dirent;

The typedef statement allows the shorter ext2_dirent to be used in place of struct ext2_dir_entry_2 in the kernel sources.

The names of the individual fields are more or less self-explanatory because they are directly based on the scheme introduced in Chapter 8. inode is a pointer to the inode of the directory entry; name_len is the length of the directory entry string. The name itself is held in the names[] array and may be up to ext2_name_len characters long (the default value is 255).

Continue reading here: Info

Was this article helpful?

0 0