Lines Matching full:info_ptr
40 int init_dir_info (struct struct_file_info *info_ptr)
55 info_ptr->inode_ptr=ptr;
56 info_ptr->inode_offset=device_offset; /* device offset contains the inode's offset */
60 info_ptr->global_block_num=ptr->i_block [0];
61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size;
62 info_ptr->block_num=0;
63 info_ptr->file_offset=0;
66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size;
67 info_ptr->file_length=ptr->i_size;
69 info_ptr->level=0; /* We start using direct blocks */
70 info_ptr->display=HEX; /* This is not actually used */
72 info_ptr->dir_entry_num=0;info_ptr->dir_entries_count=0; /* We'll start at the first directory entry */
73 info_ptr->dir_entry_offset=0;
77 info_ptr->dir_entries_count=count_dir_entries (); /* Set the total number of entries */