Home
last modified time | relevance | path

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

123

/third_party/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()
265 ext2fs_blocks_count_set(super, ext2fs_blocks_count(param) & in ext2fs_initialize()
268 if (ext2fs_r_blocks_count(super) >= ext2fs_blocks_count(param)) { in ext2fs_initialize()
288 ext2fs_blocks_count(super) - super->s_first_data_block, in ext2fs_initialize()
305 (ext2fs_blocks_count(super) / i) >= (1ULL << 32)) in ext2fs_initialize()
308 set_field(s_inodes_count, ext2fs_blocks_count(super) / i); in ext2fs_initialize()
329 ext2fs_blocks_count(param)); in ext2fs_initialize()
442 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()
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()
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()
107 blk64_t ext2fs_blocks_count(struct ext2_super_block *super) in ext2fs_blocks_count() function
130 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add()
Dmkjournal.c253 group = ext2fs_group_of_blk2(fs, (ext2fs_blocks_count(fs->super) - in get_midpoint_journal_block()
386 total_blks = ext2fs_blocks_count(fs->super); in ext2fs_get_journal_params()
395 params->num_journal_blocks = ext2fs_blocks_count(fs->super) * in ext2fs_get_journal_params()
404 ret = ext2fs_default_journal_size(ext2fs_blocks_count(fs->super)); in ext2fs_get_journal_params()
Dbitmaps.c97 end = EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1); in ext2fs_allocate_block_bitmap()
143 end = ext2fs_blocks_count(fs->super)-1; in ext2fs_allocate_subcluster_bitmap()
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()
Dopenfs.c67 ext2fs_blocks_count(fs->super))) { in ext2fs_descriptor_block_loc2()
383 fs->super->s_first_data_block >= ext2fs_blocks_count(fs->super)) { in ext2fs_open2()
387 groups_cnt = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in ext2fs_open2()
/third_party/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.c261 (unsigned long long) ext2fs_blocks_count(fs->super)-1); in test_disk()
399 blk64_t end = ext2fs_blocks_count(fs->super) - 1; in packed_allocate_tables()
633 ext2fs_blocks_count(fs->super)); in create_journal_dev()
635 count = ext2fs_blocks_count(fs->super); in create_journal_dev()
678 (unsigned long long) ext2fs_blocks_count(s), in show_stats()
683 if (ext2fs_blocks_count(&fs_param) != ext2fs_blocks_count(s)) in show_stats()
685 (unsigned long long) (ext2fs_blocks_count(&fs_param) - in show_stats()
686 ext2fs_blocks_count(s))); in show_stats()
706 (unsigned long long) ext2fs_blocks_count(s)); in show_stats()
709 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()
268 (unsigned long long) ext2fs_blocks_count(fs->super), in dump_chunk_info()
271 ext2fs_blocks_count(fs->super)); in dump_chunk_info()
276 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()
444 blk64_t last_blk = ext2fs_blocks_count(fs->super) - 1; in get_start_block()
De2image.c584 blk64_t end = ext2fs_blocks_count(fs->super); in output_meta_data_blocks()
615 if (distance < ext2fs_blocks_count(fs->super)) in output_meta_data_blocks()
616 start = ext2fs_blocks_count(fs->super) - distance; in output_meta_data_blocks()
627 if (distance >= ext2fs_blocks_count(fs->super)|| in output_meta_data_blocks()
628 start == ext2fs_blocks_count(fs->super) - in output_meta_data_blocks()
747 fs->blocksize * ext2fs_blocks_count(fs->super) + dest_offset); in output_meta_data_blocks()
910 total_size = ext2fs_blocks_count(sb) << cluster_bits; in initialize_qcow2_image()
1205 for (blk = 0; blk < ext2fs_blocks_count(fs->super); blk++) { in output_qcow2_meta_data_blocks()
De2fuzz.c235 corrupt_bytes = (ext2fs_blocks_count(fs->super) - in process_fs()
263 hsize = fs->blocksize * ext2fs_blocks_count(fs->super); in process_fs()
/third_party/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()
709 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in adjust_fs_info()
746 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.c447 ext2fs_blocks_count(fs->super)) || in main()
527 new_size = ext2fs_blocks_count(fs->super); in main()
614 } else if (new_size == ext2fs_blocks_count(fs->super)) { in main()
631 if (new_size < ext2fs_blocks_count(fs->super) && in main()
/third_party/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()
/third_party/e2fsprogs/contrib/android/
Dbasefs_allocator.c53 blk64_t end = ext2fs_blocks_count(fs->super) - 1; in fs_free_blocks_bitmap()
109 if (block >= ext2fs_blocks_count(fs->super)) in fs_reserve_block()
251 if (block >= ext2fs_blocks_count(fs->super)) in get_next_block()
292 if (block >= ext2fs_blocks_count(fs->super)) in skip_blocks()
330 ext2fs_blocks_count(fs->super) - 1, ret); in basefs_block_allocator()
/third_party/e2fsprogs/e2fsck/
Dbadblocks.c80 (unsigned long long) ext2fs_blocks_count(fs->super)-1); in read_bad_blocks_file()
132 if (*block_nr >= ext2fs_blocks_count(fs->super) || in check_bb_inode_blocks()
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()
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()
/third_party/e2fsprogs/debugfs/
Dunused.c42 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()

123