Lines Matching full:block

53 	befs_blocknr_t block;	/* block coresponding to pos */  in befs_read_datastream()  local
56 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream()
58 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream()
60 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
61 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream()
62 block); in befs_read_datastream()
68 befs_error(sb, "BeFS: Error reading block %lu from datastream", in befs_read_datastream()
69 block); in befs_read_datastream()
80 * Takes a file position and gives back a brun who's starting block
81 * is block number fblock of the file.
108 "befs_fblock2brun() was asked to find block %lu, " in befs_fblock2brun()
136 befs_error(sb, "BeFS: Error reading datastream block " in befs_read_lsymlink()
178 metablocks = 1; /* Start with 1 block for inode */ in befs_count_blocks()
180 /* Size of indirect block */ in befs_count_blocks()
185 Double indir block, plus all the indirect blocks it mapps in befs_count_blocks()
186 In the double-indirect range, all block runs of data are in befs_count_blocks()
188 how many data block runs are in the double-indirect region, in befs_count_blocks()
215 Finds the block run that starts at file block number blockno
229 contains the blockno-th filesystem block. This is necessary
230 because the block runs map variable amounts of data. Simply
232 incrementing this by the length of each block run as we come
237 When/if blockno is found, if blockno is inside of a block
239 of the block run, so that blockno is the start and len is
257 befs_error(sb, "befs_find_brun_direct() passed block outside of" in befs_find_brun_direct()
281 Finds the block run that starts at file block number blockno
294 For each block in the indirect run of the datastream, read
330 "read disk block %lu from the indirect brun", in befs_find_brun_indirect()
352 "file block %lu at indirect[%d]", in befs_find_brun_indirect()
364 "file block %lu", blockno); in befs_find_brun_indirect()
371 Finds the block run that starts at file block number blockno
384 The block runs in the double-indirect region are different.
386 block run maps a constant amount of file data. This means
387 that we can directly calculate how many block runs into the
389 maps a particular filesystem block.
392 inode addresses in the double-indirect block will point us
393 to the indirect block that contains the mapping for the data,
395 indirect block maps the data block we are after.
402 the indirect block and perform a similar process to find
403 the actual block run that maps the data block we are interested
437 * the indirect block pointed to by the double indirect block in befs_find_brun_dblindirect()
442 * the double indirect block in befs_find_brun_dblindirect()
452 * the indirect block contains pos. in befs_find_brun_dblindirect()
459 /* Read double indirect block */ in befs_find_brun_dblindirect()
464 "of the double-indirect block", dblindir_indx); in befs_find_brun_dblindirect()
473 "double-indirect block at blockno %lu", in befs_find_brun_dblindirect()
488 /* Read indirect block */ in befs_find_brun_dblindirect()
493 "of the indirect block", indir_indx); in befs_find_brun_dblindirect()
501 "indirect block at blockno %lu", in befs_find_brun_dblindirect()
521 befs_debug(sb, "Found file block %lu in double_indirect[%d][%d]," in befs_find_brun_dblindirect()