Home | History | Annotate | Download | only in ext2ed

Lines Matching refs:info

82 struct struct_file_info search_dir_entries (int (*action) (struct struct_file_info *info),int *status)
100 struct struct_file_info info; /* Temporary variables used to */
104 info=first_file_info; /* Start from the first entry - Read it */
105 low_read (info.buffer,file_system_info.block_size,info.global_block_offset);
106 dir_entry_ptr=(struct ext2_dir_entry_2 *) (info.buffer+info.dir_entry_offset);
108 while (info.file_offset < info.file_length) { /* While we haven't reached the end */
110 *status=return_code=action (&info); /* Call the client function to test */
113 return (info); /* Stop, if so asked */
117 dir_entry_ptr=(struct ext2_dir_entry_2 *) (info.buffer+info.dir_entry_offset);
119 info.dir_entry_num++;
122 next = file_system_info.block_size - info.dir_entry_offset;
123 info.dir_entry_offset += next;
124 info.file_offset += next;
126 if (info.file_offset >= info.file_length) break;
128 if (info.dir_entry_offset >= file_system_info.block_size) { /* We crossed a block boundary */
130 info.block_num++;
131 info.global_block_num=file_block_to_global_block (info.block_num,&info);
132 info.global_block_offset=info.global_block_num*file_system_info.block_size;
133 info.file_offset=info.block_num*file_system_info.block_size;
134 info.dir_entry_offset=0;
137 low_read (info.buffer,file_system_info.block_size,info.global_block_offset);
138 dir_entry_ptr=(struct ext2_dir_entry_2 *) (info.buffer+info.dir_entry_offset);
144 *status=ABORT;return (info); /* There was no match */
162 int action_count (struct struct_file_info *info)
220 struct struct_file_info info;
257 info=search_dir_entries (&action_name,&status); /* Search for the entry. Answer in info. */
259 status=FOUND;info=file_info;
263 file_info=info; /* Switch to it, by setting the global file_info */
312 int action_name (struct struct_file_info *info)
316 Compares the current search entry name (somewhere inside info) with the required name (in name_search).
324 dir_entry_ptr=(struct ext2_dir_entry_2 *) (info->buffer+info->dir_entry_offset);
346 struct struct_file_info info;
362 info=search_dir_entries (&action_entry_num,&status);
364 file_info=info;
373 int action_entry_num (struct struct_file_info *info)
377 Used by the above function. Just compares the current number (in info) with the required one.
382 if (info->dir_entry_num == entry_num_search)
444 int action_show (struct struct_file_info *info)
448 Show the current search entry (info) in one line. If the entry happens to be the current edited entry, it is highlighted.
456 dir_entry_ptr=(struct ext2_dir_entry_2 *) (info->buffer+info->dir_entry_offset);
458 if (info->dir_entry_num == file_info.dir_entry_num) /* Highlight the current entry */
470 if (info->dir_entry_num == file_info.dir_entry_num)