Home
last modified time | relevance | path

Searched refs:csum_size (Results 1 – 13 of 13) sorted by relevance

/third_party/e2fsprogs/lib/ext2fs/
Dnewdir.c38 int csum_size = 0; in ext2fs_new_dir_block() local
49 csum_size = sizeof(struct ext2_dir_entry_tail); in ext2fs_new_dir_block()
51 retval = ext2fs_set_rec_len(fs, fs->blocksize - csum_size, dir); in ext2fs_new_dir_block()
67 rec_len = (fs->blocksize - csum_size) - EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
87 if (csum_size) { in ext2fs_new_dir_block()
Dlink.c195 int csum_size = 0; in link_proc() local
207 csum_size = sizeof(struct ext2_dir_entry_tail); in link_proc()
213 if ((offset + (int) curr_rec_len < blocksize - (8 + csum_size)) && in link_proc()
326 int csum_size = 0; in dx_move_dirents() local
330 csum_size = sizeof(struct ext2_dir_entry_tail); in dx_move_dirents()
345 rec_len = fs->blocksize - ((char *)to - (char *)base) - csum_size; in dx_move_dirents()
349 if (csum_size) in dx_move_dirents()
463 int csum_size = 0; in dx_grow_tree() local
467 csum_size = sizeof(struct ext2_dx_tail); in dx_grow_tree()
514 (fs->blocksize - (8 + csum_size)) / in dx_grow_tree()
[all …]
Ddir_iterate.c199 int csum_size = 0; in ext2fs_process_dir_block() local
222 csum_size = sizeof(struct ext2_dir_entry_tail); in ext2fs_process_dir_block()
242 (offset == buflen - csum_size) && in ext2fs_process_dir_block()
243 (dirent->rec_len == csum_size) && in ext2fs_process_dir_block()
Dinline_data.c281 int csum_size = 0; in ext2fs_inline_data_convert_dir() local
285 csum_size = sizeof(struct ext2_dir_entry_tail); in ext2fs_inline_data_convert_dir()
299 rec_len = (fs->blocksize - csum_size) - EXT2_DIR_REC_LEN(1); in ext2fs_inline_data_convert_dir()
331 rec_len += fs->blocksize - csum_size - offset; in ext2fs_inline_data_convert_dir()
336 if (csum_size) { in ext2fs_inline_data_convert_dir()
Dext2fs.h2106 int csum_size = 0; in ext2fs_htree_intnode_maxrecs() local
2110 csum_size = sizeof(struct ext2_dx_tail); in ext2fs_htree_intnode_maxrecs()
2111 return blocks * ((fs->blocksize - (8 + csum_size)) / in ext2fs_htree_intnode_maxrecs()
/third_party/e2fsprogs/e2fsck/
Drehash.c548 int csum_size = 0; in copy_dir_entries() local
563 csum_size = sizeof(struct ext2_dir_entry_tail); in copy_dir_entries()
579 left = fs->blocksize - csum_size; in copy_dir_entries()
581 ((fs->blocksize - csum_size) * ctx->htree_slack_percentage)/100; in copy_dir_entries()
597 if (csum_size) { in copy_dir_entries()
607 left = (fs->blocksize - csum_size) - offset; in copy_dir_entries()
645 if (csum_size) { in copy_dir_entries()
662 int csum_size = 0; in set_root_node() local
693 csum_size = sizeof(struct ext2_dx_tail); in set_root_node()
696 limits->limit = (fs->blocksize - (32 + csum_size)) / in set_root_node()
[all …]
Drevoke.c578 int csum_size = 0; in write_one_revoke_record() local
594 csum_size = sizeof(struct jbd2_journal_block_tail); in write_one_revoke_record()
603 if (offset + sz > journal->j_blocksize - csum_size) { in write_one_revoke_record()
Drecovery.c899 unsigned csum_size = 0; in scan_revoke_records() local
908 csum_size = sizeof(struct jbd2_journal_block_tail); in scan_revoke_records()
909 if (rcount > journal->j_blocksize - csum_size) in scan_revoke_records()
Dpass2.c648 int csum_size = 0; in parse_int_node() local
690 csum_size = sizeof(struct ext2_dx_tail); in parse_int_node()
692 (csum_size + ((char *) ent - block_buf))) / in parse_int_node()
/third_party/e2fsprogs/debugfs/
Dhtree.c48 int csum_size = 0; in htree_dump_leaf_node() local
51 csum_size = sizeof(struct ext2_dir_entry_tail); in htree_dump_leaf_node()
102 if ((offset == fs->blocksize - csum_size) && in htree_dump_leaf_node()
104 (dirent->rec_len == csum_size) && in htree_dump_leaf_node()
Ddo_journal.c169 unsigned csum_size = 0; in journal_add_revoke_to_trans() local
184 csum_size = sizeof(struct jbd2_journal_block_tail); in journal_add_revoke_to_trans()
205 if (offset + sz > trans->journal->j_blocksize - csum_size) { in journal_add_revoke_to_trans()
270 int csum_size = 0; in journal_add_blocks_to_trans() local
289 csum_size = sizeof(struct jbd2_journal_block_tail); in journal_add_blocks_to_trans()
324 (char *)jdb_buf + trans->journal->j_blocksize - csum_size) { in journal_add_blocks_to_trans()
Dlogdump.c650 int offset, tag_size, csum_size = 0; in dump_descriptor_block() local
663 csum_size = sizeof(struct jbd2_journal_block_tail); in dump_descriptor_block()
681 if (offset > blocksize - csum_size) in dump_descriptor_block()
/third_party/e2fsprogs/misc/
Dtune2fs.c617 unsigned csum_size = sizeof(struct ext2_dir_entry_tail); in rewrite_dir_block() local
625 rec_len == csum_size) { in rewrite_dir_block()
635 if (rec_len <= (8 + name_size + csum_size)) { in rewrite_dir_block()
640 ext2fs_set_rec_len(fs, rec_len - csum_size, last_de); in rewrite_dir_block()