Home
last modified time | relevance | path

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

/external/e2fsprogs/ext2ed/
Dinode_com.c39 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___prev()
42 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___prev()
46 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___prev()
48 first_entry=0;last_entry=file_system_info.super_block.s_inodes_per_group-1; in type_ext2_inode___prev()
87 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___next()
90 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___next()
94 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___next()
96 first_entry=0;last_entry=file_system_info.super_block.s_inodes_per_group-1; in type_ext2_inode___next()
129 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___show()
132 group_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_inode___show()
[all …]
Dfile_com.c34 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
36 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
44 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info()
85 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock()
86 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock()
88 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock()
106 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next()
133 if (offset < file_system_info.block_size) { in type_file___offset()
186 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock()
187 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock()
[all …]
Dgroup_com.c67 if (group_num < 0 || group_num >= file_system_info.groups_count) { in type_ext2_group_desc___entry()
71 device_offset=file_system_info.first_group_desc_offset+group_num*sizeof (struct ext2_group_desc); in type_ext2_group_desc___entry()
93 …offset=file_system_info.first_group_desc_offset+copy_num*file_system_info.super_block.s_blocks_per… in type_ext2_group_desc___gocopy()
95 if (offset > file_system_info.file_system_size) { in type_ext2_group_desc___gocopy()
112 …temp=(device_offset-file_system_info.first_group_desc_offset) % (file_system_info.super_block.s_bl… in type_ext2_group_desc___show()
118 wprintw (show_win,"Group %ld of %ld ",group_num,file_system_info.groups_count-1); in type_ext2_group_desc___show()
128 if (group_num==file_system_info.groups_count-1) { in type_ext2_group_desc___show()
Dinit.c386 file_system_info.super_block_offset=1024; in set_file_system_info()
387 file_system_info.file_system_size=DefaultTotalBlocks*DefaultBlockSize; in set_file_system_info()
389 …low_read ((char *) &file_system_info.super_block,sizeof (struct ext2_super_block),file_system_info in set_file_system_info()
391 sb=&file_system_info.super_block; in set_file_system_info()
420 file_system_info.block_size=EXT2_MIN_BLOCK_SIZE << sb->s_log_block_size; in set_file_system_info()
421 if (file_system_info.block_size == EXT2_MIN_BLOCK_SIZE) in set_file_system_info()
422 file_system_info.first_group_desc_offset=2*EXT2_MIN_BLOCK_SIZE; in set_file_system_info()
424 file_system_info.first_group_desc_offset=file_system_info.block_size; in set_file_system_info()
425 file_system_info.groups_count = div_ceil(sb->s_blocks_count, in set_file_system_info()
428 file_system_info.inodes_per_block=file_system_info.block_size/sizeof (struct ext2_inode); in set_file_system_info()
[all …]
Ddir_com.c61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
105 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
122 next = file_system_info.block_size - info.dir_entry_offset; in search_dir_entries()
128 if (info.dir_entry_offset >= file_system_info.block_size) { /* We crossed a block boundary */ in search_dir_entries()
132 info.global_block_offset=info.global_block_num*file_system_info.block_size; in search_dir_entries()
133 info.file_offset=info.block_num*file_system_info.block_size; in search_dir_entries()
137 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
402 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___followinode()
675 low_write (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___writedata()
Dblockbitmap_com.c57 …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()
129 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) { in type_ext2_block_bitmap___allocate()
157 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) { in type_ext2_block_bitmap___deallocate()
220 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()
252 …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()
253 block_num+=file_system_info.super_block.s_first_data_block; in type_ext2_block_bitmap___show()
Dinodebitmap_com.c40 if (entry_num >= file_system_info.super_block.s_inodes_per_group) { in type_ext2_inode_bitmap___entry()
93 if (num > file_system_info.super_block.s_inodes_per_group-entry_num) { in type_ext2_inode_bitmap___allocate()
119 if (num > file_system_info.super_block.s_inodes_per_group-entry_num) { in type_ext2_inode_bitmap___deallocate()
170 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()
203 …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.c137 …offset=file_system_info.super_block_offset+copy_num*file_system_info.no_blocks_in_group*file_syste… in type_ext2_super_block___gocopy()
139 if (offset > file_system_info.file_system_size) { in type_ext2_super_block___gocopy()
Ddisk.c52 if (offset > file_system_info.file_system_size) { /* Check that the offset is within limits */ in low_read()
104 if (offset > file_system_info.file_system_size) { in low_write()
233 if (low_write (type_data.u.buffer,file_system_info.block_size,device_offset)==0) in write_type_data()
Dext2_com.c38 sprintf (buffer,"setoffset %ld",file_system_info.super_block_offset);dispatch (buffer); in type_ext2___super()
94 sprintf (buffer,"setoffset %ld",file_system_info.first_group_desc_offset);dispatch (buffer); in type_ext2___group()
Dgeneral_com.c223 mult=file_system_info.block_size; in set_offset()
460 if (type_data.offset_in_block==file_system_info.block_size) { in hex_set()
476 if (type_data.offset_in_block==file_system_info.block_size) { in hex_set()
629 for (l=0;l<file_system_info.block_size/16;l++) { in show()
711 if (type_data.offset_in_block+offset < file_system_info.block_size) { in next()
Dwin.c173 block_num=device_offset/file_system_info.block_size; in show_info()
174 block_offset=device_offset%file_system_info.block_size; in show_info()
Dmain.c80 struct struct_file_system_info file_system_info; /* Essential information on the filesystem */ variable
Dext2ed.h215 extern struct struct_file_system_info file_system_info;