Home
last modified time | relevance | path

Searched refs:file_system_info (Results 1 – 14 of 14) sorted by relevance

/external/e2fsprogs/ext2ed/
Dinode_com.c40 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___prev()
43 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___prev()
47 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___prev()
49 first_entry=0;last_entry=file_system_info.super_block.s_inodes_per_group-1; in type_ext2_inode___prev()
88 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___next()
91 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___next()
95 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___next()
97 first_entry=0;last_entry=file_system_info.super_block.s_inodes_per_group-1; in type_ext2_inode___next()
130 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___show()
133 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___show()
[all …]
Dfile_com.c35 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
37 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
45 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info()
86 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock()
87 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock()
89 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock()
107 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next()
134 if (offset < file_system_info.block_size) { in type_file___offset()
187 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock()
188 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock()
[all …]
Dgroup_com.c68 if (group_num < 0 || group_num >= file_system_info.groups_count) { in type_ext2_group_desc___entry()
72 device_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_group_desc___entry()
94 …offset=file_system_info.first_group_desc_offset+copy_num*file_system_info.super_block.s_blocks_per… in type_ext2_group_desc___gocopy()
96 if (offset > file_system_info.file_system_size) { in type_ext2_group_desc___gocopy()
113 …temp=(device_offset-file_system_info.first_group_desc_offset) % (file_system_info.super_block.s_bl… in type_ext2_group_desc___show()
119 wprintw (show_win,"Group %ld of %ld ",group_num,file_system_info.groups_count-1); in type_ext2_group_desc___show()
129 if (group_num==file_system_info.groups_count-1) { in type_ext2_group_desc___show()
Dinit.c380 file_system_info.super_block_offset=1024; in set_file_system_info()
381 file_system_info.file_system_size=DefaultTotalBlocks*DefaultBlockSize; in set_file_system_info()
383 …low_read ((char *) &file_system_info.super_block,sizeof (struct ext2_super_block),file_system_info in set_file_system_info()
385 sb=&file_system_info.super_block; in set_file_system_info()
414 file_system_info.block_size=EXT2_MIN_BLOCK_SIZE << sb->s_log_block_size; in set_file_system_info()
415 if (file_system_info.block_size == EXT2_MIN_BLOCK_SIZE) in set_file_system_info()
416 file_system_info.first_group_desc_offset=2*EXT2_MIN_BLOCK_SIZE; in set_file_system_info()
418 file_system_info.first_group_desc_offset=file_system_info.block_size; in set_file_system_info()
419 file_system_info.groups_count = ext2fs_div64_ceil(ext2fs_blocks_count(sb), in set_file_system_info()
422 file_system_info.inodes_per_block=file_system_info.block_size/sizeof (struct ext2_inode); in set_file_system_info()
[all …]
Ddir_com.c62 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
67 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
106 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
123 next = file_system_info.block_size - info.dir_entry_offset; in search_dir_entries()
129 if (info.dir_entry_offset >= file_system_info.block_size) { /* We crossed a block boundary */ in search_dir_entries()
133 info.global_block_offset=info.global_block_num*file_system_info.block_size; in search_dir_entries()
134 info.file_offset=info.block_num*file_system_info.block_size; in search_dir_entries()
138 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
403 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___followinode()
676 low_write (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___writedata()
Dblockbitmap_com.c58 …if (entry_num >= file_system_info.super_block.s_blocks_per_group) { /* Check if it is a valid entr… in type_ext2_block_bitmap___entry()
130 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) { in type_ext2_block_bitmap___allocate()
158 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) { in type_ext2_block_bitmap___deallocate()
221 for (i=0,entry_num=0;i<file_system_info.super_block.s_blocks_per_group/8;i++,ptr++) { in type_ext2_block_bitmap___show()
253 …block_num=block_bitmap_info.entry_num+block_bitmap_info.group_num*file_system_info.super_block.s_b… in type_ext2_block_bitmap___show()
254 block_num+=file_system_info.super_block.s_first_data_block; in type_ext2_block_bitmap___show()
Dinodebitmap_com.c41 if (entry_num >= file_system_info.super_block.s_inodes_per_group) { in type_ext2_inode_bitmap___entry()
94 if (num > file_system_info.super_block.s_inodes_per_group-entry_num) { in type_ext2_inode_bitmap___allocate()
120 if (num > file_system_info.super_block.s_inodes_per_group-entry_num) { in type_ext2_inode_bitmap___deallocate()
171 for (i=0,entry_num=0;i<file_system_info.super_block.s_inodes_per_group/8;i++,ptr++) { in type_ext2_inode_bitmap___show()
204 …inode_num=1+inode_bitmap_info.entry_num+inode_bitmap_info.group_num*file_system_info.super_block.s… in type_ext2_inode_bitmap___show()
Dsuper_com.c134 …offset=file_system_info.super_block_offset+copy_num*file_system_info.no_blocks_in_group*file_syste… in type_ext2_super_block___gocopy()
136 if (offset > file_system_info.file_system_size) { in type_ext2_super_block___gocopy()
Ddisk.c53 if (offset > file_system_info.file_system_size) { /* Check that the offset is within limits */ in low_read()
105 if (offset > file_system_info.file_system_size) { in low_write()
234 if (low_write (type_data.u.buffer,file_system_info.block_size,device_offset)==0) in write_type_data()
Dext2_com.c39 sprintf (buffer,"setoffset %ld",file_system_info.super_block_offset);dispatch (buffer); in type_ext2___super()
95 sprintf (buffer,"setoffset %ld",file_system_info.first_group_desc_offset);dispatch (buffer); in type_ext2___group()
Dgeneral_com.c224 mult=file_system_info.block_size; in set_offset()
461 if (type_data.offset_in_block==file_system_info.block_size) { in hex_set()
477 if (type_data.offset_in_block==file_system_info.block_size) { in hex_set()
630 for (l=0;l<file_system_info.block_size/16;l++) { in show()
712 if (type_data.offset_in_block+offset < file_system_info.block_size) { in next()
Dwin.c174 block_num=device_offset/file_system_info.block_size; in show_info()
175 block_offset=device_offset%file_system_info.block_size; in show_info()
Dmain.c81 struct struct_file_system_info file_system_info; /* Essential information on the filesystem */ variable
Dext2ed.h211 extern struct struct_file_system_info file_system_info;