Lines Matching +defs:db +defs:fail
1853 * fail we should attempt to recover from. */
4647 struct dup_block *db;
4654 db = (struct dup_block *) dnode_get(n);
4656 db = (struct dup_block *) e2fsck_allocate_memory(ctx,
4658 db->num_bad = 0;
4659 db->inode_list = 0;
4660 dict_alloc_insert(&blk_dict, INT_TO_VOIDPTR(blk), db);
4665 ino_el->next = db->inode_list;
4666 db->inode_list = ino_el;
4667 db->num_bad++;
4710 struct dup_block *db;
4713 db = (struct dup_block *) dnode_get(node);
4714 for (p = db->inode_list; p; p = next) {
5230 struct dup_block *db;
5273 db = (struct dup_block *) dnode_get(n);
5274 for (ino_el = db->inode_list; ino_el; ino_el = ino_el->next) {
5283 decrement_badcount(ctx, blk, db);
5834 struct ext2_db_entry *db,
5849 if (db->blockcnt == 0) {
5891 dx_db->parent = db->blockcnt;
5908 dx_db = &dx_dir->dx_block[db->blockcnt];
5980 struct ext2_db_entry *db,
5993 blk_t block_nr = db->blk;
5994 ext2_ino_t ino = db->ino;
6025 cd->pctx.blkcount = db->blockcnt;
6030 if (db->blk == 0) {
6031 if (allocate_dir_block(ctx, db, &cd->pctx))
6033 block_nr = db->blk;
6036 if (db->blockcnt)
6058 if (db->blockcnt >= dx_dir->numblocks) {
6062 dx_db = &dx_dir->dx_block[db->blockcnt];
6070 if (db->blockcnt == 0) {
6299 parse_int_node(fs, db, cd, dx_dir, buf);
6578 static int allocate_dir_block(e2fsck_t ctx, struct ext2_db_entry *db,
6611 if (db->blockcnt)
6614 pctx->errcode = ext2fs_new_dir_block(fs, db->ino,
6634 e2fsck_read_inode(ctx, db->ino, &inode, "allocate_dir_block");
6636 if (inode.i_size < (db->blockcnt+1) * fs->blocksize)
6637 inode.i_size = (db->blockcnt+1) * fs->blocksize;
6638 e2fsck_write_inode(ctx, db->ino, &inode, "allocate_dir_block");
6643 db->blk = blk;
6644 pctx->errcode = ext2fs_block_iterate2(fs, db->ino, BLOCK_FLAG_HOLE,
6645 0, update_dir_block, db);
6665 struct ext2_db_entry *db;
6667 db = (struct ext2_db_entry *) priv_data;
6668 if (db->blockcnt == (int) blockcnt) {
6669 *block_nr = db->blk;
12213 int fail = 0;
12223 if (fail++ > 100)