Home
last modified time | relevance | path

Searched refs:group_desc_count (Results 1 – 25 of 36) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dinitialize.c273 fs->group_desc_count = 0; in ext2fs_initialize()
280 fs->group_desc_count = (dgrp_t) ext2fs_div64_ceil( in ext2fs_initialize()
283 if (fs->group_desc_count == 0) { in ext2fs_initialize()
292 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_initialize()
316 ipg = ext2fs_div_ceil(super->s_inodes_count, fs->group_desc_count); in ext2fs_initialize()
365 if ((__u64)super->s_inodes_per_group * fs->group_desc_count > ~0U) { in ext2fs_initialize()
370 fs->group_desc_count; in ext2fs_initialize()
427 if (fs->group_desc_count == 2) in ext2fs_initialize()
432 has_bg = ext2fs_bg_has_super(fs, fs->group_desc_count - 1); in ext2fs_initialize()
437 if ((fs->group_desc_count == 1) && rem && (rem < overhead)) { in ext2fs_initialize()
[all …]
Dimager.c75 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
154 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_read()
290 size = fs->blocksize * (fs->group_desc_count + 1); in ext2fs_image_super_read()
314 fs->blocksize * fs->group_desc_count); in ext2fs_image_super_read()
343 cnt = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_write()
353 cnt = EXT2_GROUPS_TO_CLUSTERS(fs->super, fs->group_desc_count); in ext2fs_image_bitmap_write()
356 total_size = size * fs->group_desc_count; in ext2fs_image_bitmap_write()
418 cnt = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_read()
428 cnt = EXT2_GROUPS_TO_BLOCKS(fs->super, fs->group_desc_count); in ext2fs_image_bitmap_read()
Dalloc_tables.c64 if (last_grp > fs->group_desc_count-1) in flexbg_offset()
65 last_grp = fs->group_desc_count-1; in flexbg_offset()
102 if (last_grp > fs->group_desc_count-1) in ext2fs_allocate_group_table()
103 last_grp = fs->group_desc_count-1; in ext2fs_allocate_group_table()
129 else if (last_grp == fs->group_desc_count-1) { in ext2fs_allocate_group_table()
265 fs->group_desc_count); in ext2fs_allocate_tables()
267 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_allocate_tables()
Drw_bitmaps.c68 for (i = 0; i < fs->group_desc_count; i++) { in write_bitmaps()
81 if (i == fs->group_desc_count - 1) { in write_bitmaps()
167 for (i = 0; i < fs->group_desc_count; i++) { in mark_uninit_bg_group_blocks()
276 fs->group_desc_count); in read_bitmaps()
295 for (i = 0; i < fs->group_desc_count; i++) { in read_bitmaps()
Dcheck_desc.c52 for (i = 0; i < fs->group_desc_count; i++) in ext2fs_check_desc()
55 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_check_desc()
Dopenfs.c357 fs->group_desc_count = 0; in ext2fs_open2()
388 fs->group_desc_count = groups_cnt; in ext2fs_open2()
390 (__u64)fs->group_desc_count * EXT2_INODES_PER_GROUP(fs->super) != in ext2fs_open2()
395 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_open2()
472 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_open2()
Dbitmaps.c65 real_end = (EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count); in ext2fs_allocate_inode_bitmap()
98 * (__u64) fs->group_desc_count)-1 + start; in ext2fs_allocate_block_bitmap()
144 * (__u64) fs->group_desc_count)-1 + start; in ext2fs_allocate_subcluster_bitmap()
Dres_gdt.c45 return fs->group_desc_count; in list_backups()
187 fs->group_desc_count) { in ext2fs_create_resize_inode()
Dget_num_dirs.c37 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_get_num_dirs()
Dclosefs.c340 for (j = 0; j < fs->group_desc_count; j++) { in ext2fs_flush2()
370 fs->group_desc_count); in ext2fs_flush2()
373 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_flush2()
Dmkjournal.c244 while ((group < fs->group_desc_count) && in get_midpoint_journal_block()
247 if (group == fs->group_desc_count) in get_midpoint_journal_block()
252 end = ((group+1) < fs->group_desc_count) ? group+1 : group; in get_midpoint_journal_block()
Dtst_fs_struct.c49 check_field(group_desc_count); in main()
Dtst_iscan.c191 for (i = 0; i < test_fs->group_desc_count; i++) { in check_map()
Dblknum.c40 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block2()
53 if (group == fs->group_desc_count - 1) { in ext2fs_group_blocks_count()
Dalloc.c44 if (group >= fs->group_desc_count || in ext2fs_clear_block_uninit()
65 if (group >= fs->group_desc_count || in check_inode_uninit()
Dinode.c177 scan->groups_left = fs->group_desc_count - 1; in ext2fs_open_inode_scan()
299 scan->groups_left = scan->fs->group_desc_count - group; in ext2fs_inode_scan_goto_blockgroup()
780 if (group > fs->group_desc_count) in ext2fs_read_inode_full()
/external/e2fsprogs/resize/
Dresize2fs.c166 ext2fs_bg_flags_clear(rfs->new_fs, rfs->new_fs->group_desc_count - 1, in resize_fs()
316 rfs->old_fs->group_desc_count, in resize_group_descriptors()
330 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in resize_group_descriptors()
339 for (i = 0; i < rfs->old_fs->group_desc_count; i++) in resize_group_descriptors()
379 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in move_bg_metadata()
435 for (i = 0; i < rfs->old_fs->group_desc_count; i++) { in move_bg_metadata()
592 for (g=0; g < fs->group_desc_count; g++) { in fix_uninit_block_bitmaps()
639 dgrp_t count = old_fs->group_desc_count - fs->group_desc_count; in free_gdp_blocks()
708 fs->group_desc_count = ext2fs_div64_ceil(ext2fs_blocks_count(fs->super) - in adjust_fs_info()
711 if (fs->group_desc_count == 0) in adjust_fs_info()
[all …]
Donline.c223 size = fs->group_desc_count * sb->s_blocks_per_group + in online_resize_fs()
234 for (i = fs->group_desc_count; in online_resize_fs()
235 i < new_fs->group_desc_count; i++) { in online_resize_fs()
Dmain.c120 for (group = 0; group < fs->group_desc_count; group++) { in determine_fs_stride()
143 if (fs->group_desc_count > 12 && num < 3) in determine_fs_stride()
/external/e2fsprogs/e2fsck/
Dpass5.c49 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
107 for (i = 0; i < ctx->fs->group_desc_count; i++) { in check_inode_bitmap_checksum()
161 for (i = 0; i < ctx->fs->group_desc_count; i++) { in check_block_bitmap_checksum()
334 fs->group_desc_count * sizeof(unsigned int), "free block count array"); in check_block_bitmaps()
391 (group == fs->group_desc_count - 1) || in check_block_bitmaps()
497 fs->group_desc_count*2)) in check_block_bitmaps()
524 memset(free_array, 0, fs->group_desc_count * sizeof(int)); in check_block_bitmaps()
530 for (g = 0; g < fs->group_desc_count; g++) { in check_block_bitmaps()
584 fs->group_desc_count * sizeof(ext2_ino_t), "free inode count array"); in check_inode_bitmaps()
587 fs->group_desc_count * sizeof(ext2_ino_t), "directory count array"); in check_inode_bitmaps()
[all …]
Dsuper.c536 for (j = 1; j < fs->group_desc_count; j++) { in check_resize_inode()
613 sizeof(int) * fs->group_desc_count, "invalid_inode_bitmap"); in check_super_block()
615 sizeof(int) * fs->group_desc_count, "invalid_block_bitmap"); in check_super_block()
617 sizeof(int) * fs->group_desc_count, "invalid_inode_table"); in check_super_block()
674 should_be = (__u64)sb->s_inodes_per_group * fs->group_desc_count; in check_super_block()
769 for (i = 0; i < fs->group_desc_count; i++) in check_super_block()
814 for (i = 0; i < fs->group_desc_count; i++) { in check_super_block()
887 if (i == fs->group_desc_count - 1 && in check_super_block()
1139 for (g = 1; g < fs->group_desc_count; g++) { in check_backup_super_block()
Dreadahead.c157 if (end > fs->group_desc_count) in e2fsck_readahead()
158 end = fs->group_desc_count; in e2fsck_readahead()
Dpass4.c165 0, fs->group_desc_count); in e2fsck_pass4()
175 maxgroup = fs->group_desc_count; in e2fsck_pass4()
/external/e2fsprogs/misc/
Dmke2fs.c317 for (i = 1; i < fs->group_desc_count; i++) { in handle_bad_blocks()
382 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
389 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
396 for (i = 0; i < fs->group_desc_count; i++) { in packed_allocate_tables()
421 fs->group_desc_count); in write_inode_tables()
423 for (i = 0; i < fs->group_desc_count; i++) { in write_inode_tables()
706 if (fs->group_desc_count > 1) in show_stats()
707 printf(_("%u block groups\n"), fs->group_desc_count); in show_stats()
709 printf(_("%u block group\n"), fs->group_desc_count); in show_stats()
719 if (fs->group_desc_count == 1) { in show_stats()
[all …]
Dtune2fs.c958 for (i = 0; i < fs->group_desc_count; i++) in rewrite_metadata_checksums()
981 for (i = 0; i < fs->group_desc_count; i++) { in enable_uninit_bg()
1059 for (i = 0; i < fs->group_desc_count; i++) { in disable_uninit_bg()
2242 for (i = 0; i < fs->group_desc_count; i++) { in get_move_bitmaps()
2495 for (i = 0; i < fs->group_desc_count; i++) { in group_desc_scan_and_fix()
2548 for (i = 0; i < fs->group_desc_count; i++) { in expand_inode_table()
3259 for (i = 0; i < fs->group_desc_count; i++) in main()
3262 if (i >= fs->group_desc_count) in main()
3282 for (i = 0; i < fs->group_desc_count; i++) in main()

12