Home
last modified time | relevance | path

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

123

/external/e2fsprogs/lib/ext2fs/
Dinitialize.c70 if (ext2fs_blocks_count(sb) < max_blocks / 1024) in calc_reserved_gdt_blocks()
71 max_blocks = ext2fs_blocks_count(sb) * 1024; in calc_reserved_gdt_blocks()
112 if (!param || !ext2fs_blocks_count(param)) in ext2fs_initialize()
258 ext2fs_blocks_count_set(super, ext2fs_blocks_count(param) & in ext2fs_initialize()
261 if (ext2fs_r_blocks_count(super) >= ext2fs_blocks_count(param)) { in ext2fs_initialize()
281 ext2fs_blocks_count(super) - super->s_first_data_block, in ext2fs_initialize()
298 (ext2fs_blocks_count(super) / i) >= (1ULL << 32)) in ext2fs_initialize()
301 set_field(s_inodes_count, ext2fs_blocks_count(super) / i); in ext2fs_initialize()
322 ext2fs_blocks_count(param)); in ext2fs_initialize()
435 rem = ((ext2fs_blocks_count(super) - super->s_first_data_block) % in ext2fs_initialize()
[all …]
Dalloc_sb.c69 if (old_desc_blk + num_blocks >= ext2fs_blocks_count(fs->super)) in ext2fs_reserve_super_and_bgd()
70 num_blocks = ext2fs_blocks_count(fs->super) - in ext2fs_reserve_super_and_bgd()
Dalloc.c184 if (!goal || (goal >= ext2fs_blocks_count(fs->super))) in ext2fs_new_block3()
189 goal, ext2fs_blocks_count(fs->super) - 1, &b); in ext2fs_new_block3()
305 if (b + num - 1 >= ext2fs_blocks_count(fs->super)) { in ext2fs_get_free_blocks2()
411 blk64_t max_blocks = ext2fs_blocks_count(fs->super); in ext2fs_new_range()
442 if (!goal || goal >= ext2fs_blocks_count(fs->super)) in ext2fs_new_range()
Dblknum.c41 ext2fs_blocks_count(fs->super) - 1 : in ext2fs_group_last_block2()
54 num_blocks = (ext2fs_blocks_count(fs->super) - in ext2fs_group_blocks_count()
91 blk64_t ext2fs_blocks_count(struct ext2_super_block *super) in ext2fs_blocks_count() function
114 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add()
Dalloc_stats.c65 if (blk >= ext2fs_blocks_count(fs->super)) { in ext2fs_block_alloc_stats2()
113 if (blk + num > ext2fs_blocks_count(fs->super)) { in ext2fs_block_alloc_stats_range()
Dbitmaps.c96 end = EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1); in ext2fs_allocate_block_bitmap()
142 end = ext2fs_blocks_count(fs->super)-1; in ext2fs_allocate_subcluster_bitmap()
Dopenfs.c68 ext2fs_blocks_count(fs->super))) { in ext2fs_descriptor_block_loc2()
377 fs->super->s_first_data_block >= ext2fs_blocks_count(fs->super)) { in ext2fs_open2()
381 groups_cnt = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in ext2fs_open2()
Dread_bb.c53 (*block_nr >= ext2fs_blocks_count(fs->super))) in mark_bad_block()
Dread_bb_file.c66 (blockno >= ext2fs_blocks_count(fs->super)))) { in ext2fs_read_bb_FILE2()
Dcheck_desc.c39 blk64_t last_block = ext2fs_blocks_count(fs->super)-1; in ext2fs_check_desc()
/external/e2fsprogs/misc/
Dfindsuper.c221 if (ext2fs_r_blocks_count(&ext2) > ext2fs_blocks_count(&ext2)) in main()
224 ext2fs_blocks_count(&ext2)); in main()
225 if (ext2fs_free_blocks_count(&ext2) > ext2fs_blocks_count(&ext2)) in main()
228 ext2fs_blocks_count(&ext2)); in main()
257 sk + ext2fs_blocks_count(&ext2) * bsize - in main()
259 jnl_copy ? "*" : " ", ext2fs_blocks_count(&ext2), bsize, in main()
Dmke2fs.c259 fs->device_name, ext2fs_blocks_count(fs->super)-1); in test_disk()
397 blk64_t end = ext2fs_blocks_count(fs->super) - 1; in packed_allocate_tables()
609 ext2fs_blocks_count(fs->super), 0, &buf); in create_journal_dev()
621 ext2fs_blocks_count(fs->super)); in create_journal_dev()
623 count = ext2fs_blocks_count(fs->super); in create_journal_dev()
667 ext2fs_blocks_count(s), fs->blocksize >> 10, in show_stats()
672 if (ext2fs_blocks_count(&fs_param) != ext2fs_blocks_count(s)) in show_stats()
674 ext2fs_blocks_count(&fs_param) - ext2fs_blocks_count(s)); in show_stats()
695 ext2fs_blocks_count(s)); in show_stats()
698 100.0 * ext2fs_r_blocks_count(s) / ext2fs_blocks_count(s)); in show_stats()
[all …]
De2freefrag.c116 unsigned long long blocks_count = ext2fs_blocks_count(fs->super); in scan_block_bitmap()
263 ext2fs_blocks_count(fs->super), in dump_chunk_info()
266 ext2fs_blocks_count(fs->super)); in dump_chunk_info()
271 total_chunks = (ext2fs_blocks_count(fs->super) + in dump_chunk_info()
Dmk_hugefiles.c311 goal, ext2fs_blocks_count(fs->super) - 1, &end); in mk_hugefile()
317 ext2fs_blocks_count(fs->super) - 1, &bend); in mk_hugefile()
319 bend = ext2fs_blocks_count(fs->super); in mk_hugefile()
442 blk64_t last_blk = ext2fs_blocks_count(fs->super) - 1; in get_start_block()
De2image.c579 blk64_t end = ext2fs_blocks_count(fs->super); in output_meta_data_blocks()
610 if (distance < ext2fs_blocks_count(fs->super)) in output_meta_data_blocks()
611 start = ext2fs_blocks_count(fs->super) - distance; in output_meta_data_blocks()
622 if (distance >= ext2fs_blocks_count(fs->super)|| in output_meta_data_blocks()
623 start == ext2fs_blocks_count(fs->super) - in output_meta_data_blocks()
740 fs->blocksize * ext2fs_blocks_count(fs->super) + dest_offset); in output_meta_data_blocks()
902 total_size = ext2fs_blocks_count(sb) << cluster_bits; in initialize_qcow2_image()
1197 for (blk = 0; blk < ext2fs_blocks_count(fs->super); blk++) { in output_qcow2_meta_data_blocks()
De2fuzz.c234 corrupt_bytes = (ext2fs_blocks_count(fs->super) - in process_fs()
262 hsize = fs->blocksize * ext2fs_blocks_count(fs->super); in process_fs()
/external/e2fsprogs/resize/
Dresize2fs.c169 *new_size = ext2fs_blocks_count(rfs->new_fs->super); in resize_fs()
296 if (new_size != ext2fs_blocks_count(rfs->new_fs->super) || in resize_group_descriptors()
297 ext2fs_blocks_count(rfs->new_fs->super) >= (1ULL << 32) || in resize_group_descriptors()
408 b < ext2fs_blocks_count(rfs->new_fs->super); in move_bg_metadata()
461 cluster_ratio > 1 && b < ext2fs_blocks_count(rfs->new_fs->super); in move_bg_metadata()
655 (blk < ext2fs_blocks_count(fs->super)) && in free_gdp_blocks()
663 (blk < ext2fs_blocks_count(fs->super)) && in free_gdp_blocks()
672 if (blk >= ext2fs_blocks_count(fs->super) || in free_gdp_blocks()
708 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in adjust_fs_info()
745 rem = (ext2fs_blocks_count(fs->super) - fs->super->s_first_data_block) % in adjust_fs_info()
[all …]
Donline.c89 if (*new_size < ext2fs_blocks_count(sb)) { in online_resize_fs()
126 if ((ext2fs_blocks_count(sb) > MAX_32_NUM) || in online_resize_fs()
173 size = ext2fs_blocks_count(sb); in online_resize_fs()
189 ext2fs_blocks_count(sb); in online_resize_fs()
Dmain.c445 ext2fs_blocks_count(fs->super)) || in main()
518 new_size = ext2fs_blocks_count(fs->super); in main()
592 } else if (new_size == ext2fs_blocks_count(fs->super)) { in main()
/external/e2fsprogs/ext2ed/
Dsuper_com.c33 if (ext2fs_blocks_count(super) != 0) { in type_ext2_super_block___show()
34 … (show_pad,"%2.2f%%",100*(float) ext2fs_r_blocks_count(super)/ (float) ext2fs_blocks_count(super)); in type_ext2_super_block___show()
35 …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.c317 blk64_t first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
338 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
342 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
353 (B2C(ext2fs_blocks_count(fs->super)-1) > in check_block_bitmaps()
357 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1); in check_block_bitmaps()
371 i < ext2fs_blocks_count(fs->super); in check_block_bitmaps()
475 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
480 EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1))) { in check_block_bitmaps()
489 first_free = ext2fs_blocks_count(fs->super); in check_block_bitmaps()
Dbadblocks.c79 fs->device_name, ext2fs_blocks_count(fs->super)-1); in read_bad_blocks_file()
131 if (*block_nr >= ext2fs_blocks_count(fs->super) || in check_bb_inode_blocks()
Dsuper.c112 (blk >= ext2fs_blocks_count(fs->super))) { in release_inode_block()
501 blk >= ext2fs_blocks_count(fs->super))) { in check_resize_inode()
636 if (!check_super_value64(ctx, "blocks_count", ext2fs_blocks_count(sb), in check_super_block()
640 MAX_CHECK, 0, ext2fs_blocks_count(sb))) in check_super_block()
663 MAX_CHECK, 0, ext2fs_blocks_count(sb) / 2)) in check_super_block()
715 (ctx->num_blocks < ext2fs_blocks_count(sb))) { in check_super_block()
716 pctx.blk = ext2fs_blocks_count(sb); in check_super_block()
811 last_block = ext2fs_blocks_count(sb)-1; in check_super_block()
917 if ((ext2fs_free_blocks_count(sb) > ext2fs_blocks_count(sb)) || in check_super_block()
/external/e2fsprogs/debugfs/
De2freefrag.c116 unsigned long long blocks_count = ext2fs_blocks_count(fs->super); in scan_block_bitmap()
263 ext2fs_blocks_count(fs->super), in dump_chunk_info()
266 ext2fs_blocks_count(fs->super)); in dump_chunk_info()
271 total_chunks = (ext2fs_blocks_count(fs->super) + in dump_chunk_info()
Dunused.c42 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()

123