Home
last modified time | relevance | path

Searched refs:ext2fs_blocks_count (Results 1 – 25 of 42) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dinitialize.c65 if (ext2fs_blocks_count(sb) < max_blocks / 1024) in calc_reserved_gdt_blocks()
66 max_blocks = ext2fs_blocks_count(sb) * 1024; in calc_reserved_gdt_blocks()
105 if (!param || !ext2fs_blocks_count(param)) in ext2fs_initialize()
244 ext2fs_blocks_count_set(super, ext2fs_blocks_count(param) & in ext2fs_initialize()
247 if (ext2fs_r_blocks_count(super) >= ext2fs_blocks_count(param)) { in ext2fs_initialize()
267 ext2fs_blocks_count(super) - super->s_first_data_block, in ext2fs_initialize()
284 (ext2fs_blocks_count(super) / i) > (1ULL << 32)) in ext2fs_initialize()
287 set_field(s_inodes_count, ext2fs_blocks_count(super) / i); in ext2fs_initialize()
308 ext2fs_blocks_count(param)); in ext2fs_initialize()
397 rem = ((ext2fs_blocks_count(super) - super->s_first_data_block) % in ext2fs_initialize()
[all …]
Dalloc_sb.c70 if (old_desc_blk + num_blocks >= ext2fs_blocks_count(fs->super)) in ext2fs_reserve_super_and_bgd()
71 num_blocks = ext2fs_blocks_count(fs->super) - in ext2fs_reserve_super_and_bgd()
Dblknum.c40 ext2fs_blocks_count(fs->super) - 1 : in ext2fs_group_last_block2()
53 num_blocks = (ext2fs_blocks_count(fs->super) - in ext2fs_group_blocks_count()
92 blk64_t ext2fs_blocks_count(struct ext2_super_block *super) in ext2fs_blocks_count() function
115 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add()
Dalloc.c178 if (!goal || (goal >= ext2fs_blocks_count(fs->super))) in ext2fs_new_block2()
199 if (i >= ext2fs_blocks_count(fs->super)) in ext2fs_new_block2()
297 if (b+num-1 > ext2fs_blocks_count(fs->super)) in ext2fs_get_free_blocks2()
Dopenfs.c60 ext2fs_blocks_count(fs->super))) in ext2fs_descriptor_block_loc2()
324 fs->super->s_first_data_block >= ext2fs_blocks_count(fs->super)) { in ext2fs_open2()
328 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in ext2fs_open2()
Dbitmaps.c95 end = EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1); in ext2fs_allocate_block_bitmap()
140 end = ext2fs_blocks_count(fs->super)-1; in ext2fs_allocate_subcluster_bitmap()
Dread_bb.c52 (*block_nr >= ext2fs_blocks_count(fs->super))) in mark_bad_block()
Dread_bb_file.c65 (blockno >= ext2fs_blocks_count(fs->super)))) { in ext2fs_read_bb_FILE2()
Dcheck_desc.c38 blk64_t last_block = ext2fs_blocks_count(fs->super)-1; in ext2fs_check_desc()
Dmmp.c39 (mmp_blk >= ext2fs_blocks_count(fs->super))) in ext2fs_mmp_read()
104 fs->super->s_mmp_block > ext2fs_blocks_count(fs->super)) in ext2fs_mmp_write()
Dalloc_stats.c66 if (blk >= ext2fs_blocks_count(fs->super)) { in ext2fs_block_alloc_stats2()
Dext_attr.c121 if ((blk >= ext2fs_blocks_count(fs->super)) || in ext2fs_adjust_ea_refcount2()
Dbmove.c57 if (++block >= ext2fs_blocks_count(fs->super)) in process_block()
/external/e2fsprogs/misc/
Dfindsuper.c220 if (ext2fs_r_blocks_count(&ext2) > ext2fs_blocks_count(&ext2)) in main()
223 ext2fs_blocks_count(&ext2)); in main()
224 if (ext2fs_free_blocks_count(&ext2) > ext2fs_blocks_count(&ext2)) in main()
227 ext2fs_blocks_count(&ext2)); in main()
253 sk + ext2fs_blocks_count(&ext2) * bsize - in main()
255 jnl_copy ? "*" : " ", ext2fs_blocks_count(&ext2), bsize, in main()
De2freefrag.c97 unsigned long long blocks_count = ext2fs_blocks_count(fs->super); in scan_block_bitmap()
157 ext2fs_blocks_count(fs->super), fs->super->s_free_blocks_count, in get_chunk_info()
159 ext2fs_blocks_count(fs->super)); in get_chunk_info()
164 total_chunks = (ext2fs_blocks_count(fs->super) + in get_chunk_info()
Dmke2fs.c222 fs->device_name, ext2fs_blocks_count(fs->super)-1); in test_disk()
507 ext2fs_blocks_count(fs->super), 0, &buf); in create_journal_dev()
519 ext2fs_blocks_count(fs->super)); in create_journal_dev()
521 count = ext2fs_blocks_count(fs->super); in create_journal_dev()
562 if (ext2fs_blocks_count(&fs_param) != ext2fs_blocks_count(s)) in show_stats()
564 ext2fs_blocks_count(&fs_param) - ext2fs_blocks_count(s)); in show_stats()
586 ext2fs_blocks_count(s)); in show_stats()
589 100.0 * ext2fs_r_blocks_count(s) / ext2fs_blocks_count(s)); in show_stats()
782 if (resize <= ext2fs_blocks_count(param)) { in parse_extended_opts()
796 ext2fs_blocks_count(param), bpg); in parse_extended_opts()
[all …]
De2image.c564 blk64_t end = ext2fs_blocks_count(fs->super); in output_meta_data_blocks()
593 if (distance < ext2fs_blocks_count(fs->super)) in output_meta_data_blocks()
594 start = ext2fs_blocks_count(fs->super) - distance; in output_meta_data_blocks()
605 if (distance >= ext2fs_blocks_count(fs->super) || in output_meta_data_blocks()
606 start == ext2fs_blocks_count(fs->super) - distance) in output_meta_data_blocks()
719 fs->blocksize * ext2fs_blocks_count(fs->super) + dest_offset); in output_meta_data_blocks()
876 total_size = ext2fs_blocks_count(sb) << cluster_bits; in initialize_qcow2_image()
1170 for (blk = 0; blk < ext2fs_blocks_count(fs->super); blk++) { in output_qcow2_meta_data_blocks()
/external/e2fsprogs/resize/
Dresize2fs.c135 *new_size = ext2fs_blocks_count(rfs->new_fs->super); in resize_fs()
283 (blk < ext2fs_blocks_count(fs->super))) { in free_gdp_blocks()
290 (blk < ext2fs_blocks_count(fs->super))) { in free_gdp_blocks()
297 (blk >= ext2fs_blocks_count(fs->super))) in free_gdp_blocks()
302 if (blk >= ext2fs_blocks_count(fs->super)) in free_gdp_blocks()
331 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in adjust_fs_info()
356 rem = (ext2fs_blocks_count(fs->super) - fs->super->s_first_data_block) % in adjust_fs_info()
362 ext2fs_blocks_count(fs->super) - rem); in adjust_fs_info()
380 blk = ext2fs_blocks_count(old_fs->super); in adjust_fs_info()
381 if (blk > ext2fs_blocks_count(fs->super)) in adjust_fs_info()
[all …]
Donline.c81 if (*new_size < ext2fs_blocks_count(sb)) { in online_resize_fs()
120 if ((ext2fs_blocks_count(sb) > MAX_32_NUM) || in online_resize_fs()
167 size = ext2fs_blocks_count(sb); in online_resize_fs()
183 ext2fs_blocks_count(sb); in online_resize_fs()
/external/e2fsprogs/ext2ed/
Dsuper_com.c32 if (ext2fs_blocks_count(super) != 0) { in type_ext2_super_block___show()
33 … (show_pad,"%2.2f%%",100*(float) ext2fs_r_blocks_count(super)/ (float) ext2fs_blocks_count(super)); in type_ext2_super_block___show()
34 …how_pad,"%2.2f%%",100*(float) ext2fs_free_blocks_count(super)/ (float) ext2fs_blocks_count(super)); in type_ext2_super_block___show()
/external/e2fsprogs/e2fsck/
Dpass5.c201 blk64_t first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
228 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
232 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
243 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
247 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
266 i < ext2fs_blocks_count(fs->super); in check_block_bitmaps()
439 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
444 EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1))) { in check_block_bitmaps()
453 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
465 (i != ext2fs_blocks_count(fs->super)-1) && in check_block_bitmaps()
Dbadblocks.c78 fs->device_name, ext2fs_blocks_count(fs->super)-1); in read_bad_blocks_file()
128 if (*block_nr >= ext2fs_blocks_count(fs->super) || in check_bb_inode_blocks()
Dsuper.c82 (blk >= ext2fs_blocks_count(fs->super))) { in release_inode_block()
385 blk >= ext2fs_blocks_count(fs->super))) { in check_resize_inode()
509 check_super_value(ctx, "blocks_count", ext2fs_blocks_count(sb), in check_super_block()
512 MAX_CHECK, 0, ext2fs_blocks_count(sb)); in check_super_block()
528 MAX_CHECK, 0, ext2fs_blocks_count(sb) / 2); in check_super_block()
553 (ctx->num_blocks < ext2fs_blocks_count(sb))) { in check_super_block()
554 pctx.blk = ext2fs_blocks_count(sb); in check_super_block()
597 last_block = ext2fs_blocks_count(sb)-1; in check_super_block()
705 if ((ext2fs_free_blocks_count(sb) > ext2fs_blocks_count(sb)) || in check_super_block()
Dpass1.c197 (extent.e_pblk >= ext2fs_blocks_count(fs->super))) in e2fsck_pass1_check_symlink()
210 (inode->i_block[0] >= ext2fs_blocks_count(fs->super))) in e2fsck_pass1_check_symlink()
462 blk >= ext2fs_blocks_count(ctx->fs->super) || in check_is_really_dir()
725 fs->super->s_mmp_block < ext2fs_blocks_count(fs->super)) in e2fsck_pass1()
1543 (blk >= ext2fs_blocks_count(fs->super))) { in check_ext_attr()
1720 (blk >= ext2fs_blocks_count(fs->super))) { in handle_htree()
1813 extent.e_pblk >= ext2fs_blocks_count(ctx->fs->super)) in scan_extent_node()
1825 ext2fs_blocks_count(ctx->fs->super)) in scan_extent_node()
2233 } else if (block >= ext2fs_blocks_count(fs->super)) {
2234 sprintf(problem, "> BLOCKS (%u)", ext2fs_blocks_count(fs->super));
[all …]
/external/e2fsprogs/debugfs/
Dunused.c39 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()

12