/external/e2fsprogs/lib/ext2fs/ |
ind_block.c | 26 blk_t *block_nr; local 40 block_nr = (blk_t *) buf; 41 for (i = 0; i < limit; i++, block_nr++) 42 *block_nr = ext2fs_swab32(*block_nr); 50 blk_t *block_nr; local 59 block_nr = (blk_t *) buf; 60 for (i = 0; i < limit; i++, block_nr++) 61 *block_nr = ext2fs_swab32(*block_nr); [all...] |
read_bb.c | 40 static int mark_bad_block(ext2_filsys fs, blk_t *block_nr, 51 if ((*block_nr < fs->super->s_first_data_block) || 52 (*block_nr >= fs->super->s_blocks_count)) 55 rb->err = ext2fs_badblocks_list_add(rb->bb_list, *block_nr);
|
bb_inode.c | 44 static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 48 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 152 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 163 if (!*block_nr) 169 if (*block_nr >= fs->super->s_blocks_count || 170 *block_nr < fs->super->s_first_data_block) { 171 *block_nr = 0; 188 rec->ind_blocks[rec->ind_blocks_size++] = *block_nr; 194 ext2fs_block_alloc_stats(fs, *block_nr, -1); 196 *block_nr = 0 [all...] |
block.c | 64 blk_t *block_nr; local 90 block_nr = (blk_t *) ctx->ind_buf; 93 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { 94 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, 105 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { 106 if (*block_nr == 0) 108 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, 141 blk_t *block_nr; local 167 block_nr = (blk_t *) ctx->dind_buf; 170 for (i = 0; i < limit; i++, block_nr++) 220 blk_t *block_nr; local [all...] |
bmove.c | 35 static int process_block(ext2_filsys fs, blk_t *block_nr, 45 block = orig = *block_nr; 72 *block_nr = block;
|
inode.c | 526 unsigned long group, block, block_nr, offset; local 560 block_nr = fs->image_header->offset_inode / fs->blocksize; 561 block_nr += (ino - 1) / inodes_per_block; 574 block_nr = fs->group_desc[(unsigned)group].bg_inode_table + 590 if (block_nr != fs->icache->buffer_blk) { 591 retval = io_channel_read_blk(io, block_nr, 1, 595 fs->icache->buffer_blk = block_nr; 604 block_nr++; 632 unsigned long group, block, block_nr, offset; local 695 block_nr = fs->group_desc[(unsigned) group].bg_inode_table + block [all...] |
/external/e2fsprogs/e2fsck/ |
badblocks.c | 16 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, 118 blk_t *block_nr, 122 if (!*block_nr) 128 if (*block_nr >= fs->super->s_blocks_count || 129 *block_nr < fs->super->s_first_data_block) { 131 "Cleared.\n"), *block_nr); 132 *block_nr = 0;
|
swapfs.c | 34 static int swap_block(ext2_filsys fs, blk_t *block_nr, int blockcnt, 41 if (sb->isdir && (blockcnt >= 0) && *block_nr) { 42 retval = ext2fs_read_dir_block(fs, *block_nr, sb->dir_buf); 47 retval = ext2fs_write_dir_block(fs, *block_nr, sb->dir_buf); 59 if (*block_nr == sb->inode->i_block[EXT2_IND_BLOCK]) 64 if (*block_nr == sb->inode->i_block[EXT2_DIND_BLOCK]) 69 if (*block_nr == sb->inode->i_block[EXT2_TIND_BLOCK])
|
pass1b.c | 330 blk_t *block_nr, variable 339 if (HOLE_BLKADDR(*block_nr)) 344 if (!ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) 349 p->pctx->blk = *block_nr; 355 add_dupe(ctx, p->ino, *block_nr, p->inode); 557 blk_t *block_nr, 571 if (HOLE_BLKADDR(*block_nr)) 574 if (ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) { 575 n = dict_lookup(&blk_dict, INT_TO_VOIDPTR(*block_nr)); 578 decrement_badcount(ctx, *block_nr, p) [all...] |
emptydir.c | 119 int empty_pass1(ext2_filsys fs, blk_t *block_nr, e2_blkcnt_t blockcnt, 128 block = *block_nr; 144 *block_nr = new_block;
|
pass2.c | 717 blk_t block_nr = db->blk; local 750 cd->pctx.blk = block_nr; 759 block_nr = db->blk; 772 printf("In process_dir_block block %lu, #%d, inode %lu\n", block_nr, 777 cd->pctx.errcode = ext2fs_read_dir_block(fs, block_nr, buf); 803 dx_db->phys = block_nr; 1130 cd->pctx.errcode = ext2fs_write_dir_block(fs, block_nr, buf); 1151 blk_t *block_nr, 1159 if (HOLE_BLKADDR(*block_nr)) 1161 if ((*block_nr < fs->super->s_first_data_block) | [all...] |
rehash.c | 81 blk_t *block_nr, 103 if (HOLE_BLKADDR(*block_nr)) { 108 fd->err = ext2fs_read_dir_block(fs, *block_nr, dir); 635 blk_t *block_nr, 645 if (*block_nr == 0) 649 blk = *block_nr; 652 *block_nr = 0; 660 wd->err = ext2fs_write_dir_block(fs, *block_nr, dir);
|
pass1.c | 61 static int process_bad_block(ext2_filsys fs, blk_t *block_nr, [all...] |
super.c | 57 blk_t *block_nr, 66 blk_t blk = *block_nr; 140 *block_nr = 0;
|
journal.c | 206 blk_t *block_nr, 213 blk_t blk = *block_nr;
|
/system/extras/ext4_utils/ |
ext4_jbd2.h | 44 #define ext4_forget(handle, is_metadata, inode, bh, block_nr) __ext4_forget(__func__, (handle), (is_metadata), (inode), (bh), (block_nr))
|
/external/qemu/slirp/ |
tftp.c | 101 static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, 121 lseek(fd, block_nr * 512, SEEK_SET); 216 u_int16_t block_nr, 224 if (block_nr < 1) { 241 tp->x.tp_data.tp_block_nr = htons(block_nr); 249 nobytes = tftp_read_data(spt, block_nr - 1, tp->x.tp_data.tp_buf, 512);
|
/external/qemu/slirp-android/ |
tftp.c | 101 static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, 121 lseek(fd, block_nr * 512, SEEK_SET); 220 u_int16_t block_nr, 228 if (block_nr < 1) { 245 tp->x.tp_data.tp_block_nr = htons(block_nr); 255 nobytes = tftp_read_data(spt, block_nr - 1, tp->x.tp_data.tp_buf, 512);
|
/external/e2fsprogs/debugfs/ |
lsdel.c | 51 blk_t *block_nr, 61 if (*block_nr < fs->super->s_first_data_block || 62 *block_nr >= fs->super->s_blocks_count) { 67 if (!ext2fs_test_block_bitmap(fs->block_map,*block_nr))
|
icheck.c | 34 blk_t *block_nr, variable 44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) {
|
debugfs.c | 1986 unsigned long group, block, block_nr, offset; local [all...] |
/external/e2fsprogs/misc/ |
e2image.c | 218 blk_t *block_nr, variable 228 ext2fs_mark_block_bitmap(meta_block_map, *block_nr); 230 ext2fs_mark_block_bitmap(scramble_block_map, *block_nr); 235 blk_t *block_nr, variable 242 ext2fs_mark_block_bitmap(meta_block_map, *block_nr);
|
tune2fs.c | 1129 blk_t *block_nr, variable 1139 if (!ext2fs_test_block_bitmap(bmap, *block_nr)) 1141 new_blk = translate_block(*block_nr); 1143 *block_nr = new_blk; [all...] |
/external/e2fsprogs/resize/ |
resize2fs.c | [all...] |