/third_party/e2fsprogs/lib/ext2fs/ |
D | ind_block.c | 27 blk_t *block_nr; in ext2fs_read_ind_block() local 41 block_nr = (blk_t *) buf; in ext2fs_read_ind_block() 42 for (i = 0; i < limit; i++, block_nr++) in ext2fs_read_ind_block() 43 *block_nr = ext2fs_swab32(*block_nr); in ext2fs_read_ind_block() 51 blk_t *block_nr; in ext2fs_write_ind_block() local 60 block_nr = (blk_t *) buf; in ext2fs_write_ind_block() 61 for (i = 0; i < limit; i++, block_nr++) in ext2fs_write_ind_block() 62 *block_nr = ext2fs_swab32(*block_nr); in ext2fs_write_ind_block()
|
D | bb_inode.c | 45 static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 49 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 155 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, in clear_bad_block_proc() argument 166 if (!*block_nr) in clear_bad_block_proc() 172 if (*block_nr >= ext2fs_blocks_count(fs->super) || in clear_bad_block_proc() 173 *block_nr < fs->super->s_first_data_block) { in clear_bad_block_proc() 174 *block_nr = 0; in clear_bad_block_proc() 191 rec->ind_blocks[rec->ind_blocks_size++] = *block_nr; in clear_bad_block_proc() 197 ext2fs_block_alloc_stats2(fs, *block_nr, -1); in clear_bad_block_proc() 199 *block_nr = 0; in clear_bad_block_proc() [all …]
|
D | block.c | 65 blk_t *block_nr; in block_iterate_ind() local 95 block_nr = (blk_t *) ctx->ind_buf; in block_iterate_ind() 98 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { in block_iterate_ind() 99 blk64 = *block_nr; in block_iterate_ind() 103 *block_nr = blk64; in block_iterate_ind() 112 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { in block_iterate_ind() 113 if (*block_nr == 0) in block_iterate_ind() 115 blk64 = *block_nr; in block_iterate_ind() 119 *block_nr = blk64; in block_iterate_ind() 154 blk_t *block_nr; in block_iterate_dind() local [all …]
|
D | read_bb.c | 41 static int mark_bad_block(ext2_filsys fs, blk_t *block_nr, in mark_bad_block() argument 52 if ((*block_nr < fs->super->s_first_data_block) || in mark_bad_block() 53 (*block_nr >= ext2fs_blocks_count(fs->super))) in mark_bad_block() 56 rb->err = ext2fs_badblocks_list_add(rb->bb_list, *block_nr); in mark_bad_block()
|
D | inode.c | 756 blk64_t block_nr; in ext2fs_read_inode2() local 798 block_nr = ext2fs_le32_to_cpu(fs->image_header->offset_inode) / fs->blocksize; in ext2fs_read_inode2() 799 block_nr += (ino - 1) / inodes_per_block; in ext2fs_read_inode2() 810 block_nr = ext2fs_inode_table_loc(fs, group); in ext2fs_read_inode2() 811 if (!block_nr) in ext2fs_read_inode2() 813 if ((block_nr < fs->super->s_first_data_block) || in ext2fs_read_inode2() 814 (block_nr + fs->inode_blocks_per_group - 1 >= in ext2fs_read_inode2() 817 block_nr += block; in ext2fs_read_inode2() 831 if (block_nr != fs->icache->buffer_blk) { in ext2fs_read_inode2() 832 retval = io_channel_read_blk64(io, block_nr, 1, in ext2fs_read_inode2() [all …]
|
D | bmove.c | 40 static int process_block(ext2_filsys fs, blk64_t *block_nr, in process_block() argument 50 block = orig = *block_nr; in process_block() 77 *block_nr = block; in process_block()
|
/third_party/e2fsprogs/e2fsck/ |
D | badblocks.c | 17 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, 122 blk_t *block_nr, in check_bb_inode_blocks() argument 126 if (!*block_nr) in check_bb_inode_blocks() 132 if (*block_nr >= ext2fs_blocks_count(fs->super) || in check_bb_inode_blocks() 133 *block_nr < fs->super->s_first_data_block) { in check_bb_inode_blocks() 135 "Cleared.\n"), *block_nr); in check_bb_inode_blocks() 136 *block_nr = 0; in check_bb_inode_blocks()
|
D | pass1b.c | 376 blk64_t *block_nr, in process_pass1b_block() argument 387 if (*block_nr == 0) in process_pass1b_block() 392 pc = EXT2FS_B2C(fs, *block_nr); in process_pass1b_block() 394 if (!ext2fs_test_block_bitmap2(ctx->block_dup_map, *block_nr)) in process_pass1b_block() 399 if (p->last_blk + 1 != *block_nr) { in process_pass1b_block() 406 p->pctx->blk = *block_nr; in process_pass1b_block() 408 p->pctx->blk2 = *block_nr; in process_pass1b_block() 409 p->last_blk = *block_nr; in process_pass1b_block() 422 add_dupe(ctx, p->ino, EXT2FS_B2C(fs, *block_nr), p->inode); in process_pass1b_block() 643 blk64_t *block_nr, in delete_file_block() argument [all …]
|
D | emptydir.c | 119 int empty_pass1(ext2_filsys fs, blk64_t *block_nr, e2_blkcnt_t blockcnt, in empty_pass1() argument 128 block = *block_nr; in empty_pass1() 144 *block_nr = new_block; in empty_pass1()
|
D | pass2.c | 1049 blk64_t block_nr = db->blk; in check_dir_block() local 1109 cd->pctx.blk = block_nr; in check_dir_block() 1135 block_nr = db->blk; in check_dir_block() 1148 printf("In process_dir_block block %lu, #%d, inode %lu\n", block_nr, in check_dir_block() 1180 cd->pctx.errcode = ext2fs_read_dir_block4(fs, block_nr, in check_dir_block() 1230 dx_db->phys = block_nr; in check_dir_block() 1773 cd->pctx.errcode = ext2fs_write_dir_block4(fs, block_nr, in check_dir_block() 1814 blk64_t *block_nr, in deallocate_inode_block() argument 1821 blk64_t cluster = EXT2FS_B2C(fs, *block_nr); in deallocate_inode_block() 1823 if (*block_nr == 0) in deallocate_inode_block() [all …]
|
D | rehash.c | 121 blk64_t *block_nr, in fill_dir_block() argument 144 if (*block_nr == 0) { in fill_dir_block() 151 fd->err = ext2fs_read_dir_block4(fs, *block_nr, dir, 0, in fill_dir_block() 893 blk64_t *block_nr, in write_dir_block() argument 903 printf("%u: write_dir_block %lld:%lld", wd->ino, blockcnt, *block_nr); in write_dir_block() 905 if ((*block_nr == 0) || (blockcnt < 0)) { in write_dir_block() 928 wd->err = ext2fs_write_dir_block4(fs, *block_nr, dir, 0, wd->dir); in write_dir_block()
|
D | pass1.c | 73 static int process_bad_block(ext2_filsys fs, blk64_t *block_nr, 3669 blk64_t *block_nr, in process_block() argument 3677 blk64_t blk = *block_nr; in process_block() 3787 *block_nr = 0; in process_block() 3804 blk = *block_nr = 0; in process_block() 3881 blk64_t *block_nr, in process_bad_block() argument 3888 blk64_t blk = *block_nr; in process_bad_block() 3908 *block_nr = 0; in process_bad_block() 3918 *block_nr = 0; in process_bad_block() 3926 *block_nr = 0; in process_bad_block() [all …]
|
D | super.c | 83 blk64_t *block_nr, in release_inode_block() argument 92 blk64_t blk = *block_nr; in release_inode_block() 93 blk64_t cluster = EXT2FS_B2C(fs, *block_nr); in release_inode_block() 172 *block_nr = 0; in release_inode_block()
|
D | journal.c | 258 blk64_t *block_nr, in process_journal_block() argument 265 blk64_t blk = *block_nr; in process_journal_block()
|
/third_party/e2fsprogs/debugfs/ |
D | lsdel.c | 52 blk64_t *block_nr, in lsdel_proc() argument 62 if (*block_nr < fs->super->s_first_data_block || in lsdel_proc() 63 *block_nr >= ext2fs_blocks_count(fs->super)) { in lsdel_proc() 68 if (!ext2fs_test_block_bitmap2(fs->block_map,*block_nr)) in lsdel_proc()
|
D | icheck.c | 35 blk64_t *block_nr, in icheck_proc() argument 45 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
|
D | journal.c | 270 blk64_t *block_nr, in process_journal_block() argument 277 blk64_t blk = *block_nr; in process_journal_block()
|
D | debugfs.c | 2132 unsigned long group, block, block_nr, offset; in do_imap() local 2150 block_nr = ext2fs_inode_table_loc(current_fs, (unsigned)group) + in do_imap() 2156 block_nr, offset); in do_imap()
|
/third_party/e2fsprogs/misc/ |
D | e2image.c | 370 blk64_t *block_nr, in process_dir_block() argument 380 ext2fs_mark_block_bitmap2(meta_block_map, *block_nr); in process_dir_block() 383 ext2fs_mark_block_bitmap2(scramble_block_map, *block_nr); in process_dir_block() 388 blk64_t *block_nr, in process_file_block() argument 395 ext2fs_mark_block_bitmap2(meta_block_map, *block_nr); in process_file_block()
|
D | tune2fs.c | 2485 blk64_t *block_nr, in process_block() argument 2495 if (!ext2fs_test_block_bitmap2(bmap, *block_nr)) in process_block() 2497 new_blk = translate_block(*block_nr); in process_block() 2499 *block_nr = new_blk; in process_block()
|
/third_party/e2fsprogs/resize/ |
D | resize2fs.c | 1837 static int process_block(ext2_filsys fs, blk64_t *block_nr, in process_block() argument 1848 block = *block_nr; in process_block() 1852 *block_nr = new_block; in process_block()
|