Lines Matching full:block_num
35 file_info.block_num=0;
78 if (file_info.block_num+block_offset >= file_info.blocks_count) {
83 file_info.block_num+=block_offset;
84 file_info.global_block_num=file_block_to_global_block (file_info.block_num,&file_info);
86 file_info.file_offset=file_info.block_num*file_system_info.block_size;
179 if (file_info.block_num-block_offset < 0) {
184 file_info.block_num-=block_offset;
185 file_info.global_block_num=file_block_to_global_block (file_info.block_num,&file_info);
187 file_info.file_offset=file_info.block_num*file_system_info.block_size;
215 file_info.block_num=block_offset;
216 file_info.global_block_num=file_block_to_global_block (file_info.block_num,&file_info);
218 file_info.file_offset=file_info.block_num*file_system_info.block_size;
386 wprintw (show_win,"File block %ld of %ld. ",file_info.block_num,file_info.blocks_count-1);
537 long return_indirect (long table_block,long block_num)
543 return (block_table [block_num]);
546 long return_dindirect (long table_block,long block_num)
551 f_indirect=block_num/(file_system_info.block_size/4);
553 return (return_indirect (f_indirect,block_num%(file_system_info.block_size/4)));
556 long return_tindirect (long table_block,long block_num)
561 s_indirect=block_num/((file_system_info.block_size/4)*(file_system_info.block_size/4));
563 return (return_dindirect (s_indirect,block_num%((file_system_info.block_size/4)*(file_system_info.block_size/4))));