Home
last modified time | relevance | path

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

12

/external/e2fsprogs/resize/
Dresize2fs.c115 rfs->new_fs->group_desc[rfs->new_fs->group_desc_count-1].bg_flags &= in resize_fs()
201 for (g=0; g < fs->group_desc_count; g++) { in fix_uninit_block_bitmaps()
312 fs->group_desc_count = ext2fs_div_ceil(fs->super->s_blocks_count - in adjust_fs_info()
315 if (fs->group_desc_count == 0) in adjust_fs_info()
317 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in adjust_fs_info()
328 if (ext2fs_bg_has_super(fs, fs->group_desc_count - 1)) in adjust_fs_info()
339 if ((fs->group_desc_count == 1) && rem && (rem < overhead)) in adjust_fs_info()
348 new_inodes =(unsigned long long) fs->super->s_inodes_per_group * fs->group_desc_count; in adjust_fs_info()
355 fs->group_desc_count; in adjust_fs_info()
385 * fs->group_desc_count)) - 1 + in adjust_fs_info()
[all …]
Donline.c113 size = fs->group_desc_count * sb->s_blocks_per_group + in online_resize_fs()
124 for (i = fs->group_desc_count; in online_resize_fs()
125 i < new_fs->group_desc_count; i++) { in online_resize_fs()
129 if (ext2fs_bg_has_super(new_fs, new_fs->group_desc_count - 1)) in online_resize_fs()
138 if (i == new_fs->group_desc_count-1) { in online_resize_fs()
Dmain.c110 for (group = 0; group < fs->group_desc_count; group++) { in determine_fs_stride()
132 if (fs->group_desc_count > 12 && num < 3) in determine_fs_stride()
/external/e2fsprogs/lib/ext2fs/
Dinitialize.c215 fs->group_desc_count = 0; in ext2fs_initialize()
222 fs->group_desc_count = ext2fs_div_ceil(super->s_blocks_count - in ext2fs_initialize()
225 if (fs->group_desc_count == 0) { in ext2fs_initialize()
229 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_initialize()
248 ipg = ext2fs_div_ceil(super->s_inodes_count, fs->group_desc_count); in ext2fs_initialize()
295 if ((__u64)super->s_inodes_per_group * fs->group_desc_count > ~0U) { in ext2fs_initialize()
300 fs->group_desc_count; in ext2fs_initialize()
339 if (ext2fs_bg_has_super(fs, fs->group_desc_count - 1)) in ext2fs_initialize()
343 if ((fs->group_desc_count == 1) && rem && (rem < overhead)) { in ext2fs_initialize()
397 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_initialize()
[all …]
Dimager.c73 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_write()
147 for (group = 0; group < fs->group_desc_count; group++) { in ext2fs_image_inode_read()
242 size = fs->blocksize * (fs->group_desc_count + 1); in ext2fs_image_super_read()
266 fs->blocksize * fs->group_desc_count); in ext2fs_image_super_read()
296 cnt = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_write()
307 cnt = EXT2_BLOCKS_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_write()
310 total_size = size * fs->group_desc_count; in ext2fs_image_bitmap_write()
373 cnt = EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_read()
384 cnt = EXT2_BLOCKS_PER_GROUP(fs->super) * fs->group_desc_count; in ext2fs_image_bitmap_read()
Dalloc_tables.c65 if (last_grp > fs->group_desc_count) in flexbg_offset()
66 last_grp = fs->group_desc_count; in flexbg_offset()
101 if (last_grp > fs->group_desc_count) in ext2fs_allocate_group_table()
102 last_grp = fs->group_desc_count; in ext2fs_allocate_group_table()
184 if (last_grp == fs->group_desc_count) in ext2fs_allocate_group_table()
223 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_allocate_tables()
Dcheck_desc.c48 for (i = 0; i < fs->group_desc_count; i++) in ext2fs_check_desc()
51 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_check_desc()
56 if (i == (fs->group_desc_count - 1)) in ext2fs_check_desc()
Dopenfs.c269 fs->group_desc_count = 0; in ext2fs_open2()
291 fs->group_desc_count = ext2fs_div_ceil(fs->super->s_blocks_count - in ext2fs_open2()
294 if (fs->group_desc_count * EXT2_INODES_PER_GROUP(fs->super) != in ext2fs_open2()
299 fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, in ext2fs_open2()
347 for (i = 0, gd = fs->group_desc; i < fs->group_desc_count; in ext2fs_open2()
Drw_bitmaps.c71 for (i = 0; i < fs->group_desc_count; i++) { in write_bitmaps()
84 if (i == fs->group_desc_count - 1) { in write_bitmaps()
223 fs->group_desc_count; in read_bitmaps()
243 for (i = 0; i < fs->group_desc_count; i++) { in read_bitmaps()
Dbitmaps.c63 real_end = (EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count); in ext2fs_allocate_inode_bitmap()
83 * fs->group_desc_count)-1 + start; in ext2fs_allocate_block_bitmap()
Dclosefs.c81 if (group == fs->group_desc_count-1) { in ext2fs_super_and_bgd_loc()
256 j < fs->group_desc_count; j++, t++, s++) { in ext2fs_flush()
295 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_flush()
Dcsum.c117 for (i = 0; i < fs->group_desc_count; i++, bg++) { in ext2fs_set_gdt_csum()
200 for (i=0; i < fs->group_desc_count; i++) { in main()
Dmkjournal.c317 while ((group < fs->group_desc_count) && in write_journal_inode()
320 if (group == fs->group_desc_count) in write_journal_inode()
325 end = ((group+1) < fs->group_desc_count) ? group+1 : group; in write_journal_inode()
Dtst_iscan.c184 for (i = 0; i < test_fs->group_desc_count; i++) { in check_map()
Dinode.c144 scan->groups_left = fs->group_desc_count - 1; in ext2fs_open_inode_scan()
260 scan->groups_left = scan->fs->group_desc_count - group; in ext2fs_inode_scan_goto_blockgroup()
566 if (group > fs->group_desc_count) in ext2fs_read_inode_full()
Dres_gdt.c167 fs->group_desc_count) { in ext2fs_create_resize_inode()
Ddblist.c38 for (i = 0; i < fs->group_desc_count; i++) { in ext2fs_get_num_dirs()
Dext2fs.h207 dgrp_t group_desc_count; member
1394 return (group == fs->group_desc_count - 1 ? in ext2fs_group_last_block()
/external/e2fsprogs/e2fsck/
Dpass5.c39 if ((ctx->progress)(ctx, 5, 0, ctx->fs->group_desc_count*2)) in e2fsck_pass5()
121 fs->group_desc_count * sizeof(int), "free block count array"); in check_block_bitmaps()
259 fs->group_desc_count*2)) in check_block_bitmaps()
291 memset(free_array, 0, fs->group_desc_count * sizeof(int)); in check_block_bitmaps()
296 for (i = 0; i < fs->group_desc_count; i++) { in check_block_bitmaps()
346 fs->group_desc_count * sizeof(int), "free inode count array"); in check_inode_bitmaps()
349 fs->group_desc_count * sizeof(int), "directory count array"); in check_inode_bitmaps()
460 group + fs->group_desc_count, in check_inode_bitmaps()
461 fs->group_desc_count*2)) in check_inode_bitmaps()
495 memset(free_array, 0, fs->group_desc_count * sizeof(int)); in check_inode_bitmaps()
[all …]
Dsuper.c410 for (j = 1; j < fs->group_desc_count; j++) { in check_resize_inode()
484 sizeof(int) * fs->group_desc_count, "invalid_inode_bitmap"); in check_super_block()
486 sizeof(int) * fs->group_desc_count, "invalid_block_bitmap"); in check_super_block()
488 sizeof(int) * fs->group_desc_count, "invalid_inode_table"); in check_super_block()
571 should_be = sb->s_inodes_per_group * fs->group_desc_count; in check_super_block()
589 for (i = 0, gd=fs->group_desc; i < fs->group_desc_count; i++, gd++) { in check_super_block()
660 if (i == fs->group_desc_count - 1 && in check_super_block()
923 for (g = 1; g < fs->group_desc_count; g++) { in check_backup_super_block()
Dpass4.c114 maxgroup = fs->group_desc_count; in e2fsck_pass4()
Dpass1.c692 if ((ctx->progress)(ctx, 1, 0, ctx->fs->group_desc_count)) in e2fsck_pass1()
1194 ctx->fs->group_desc_count)) in scan_callback()
2083 for (i = 0; i < fs->group_desc_count; i++) {
2348 for (i = 0; i < fs->group_desc_count; i++ ) { in process_bad_block()
2463 if (last_grp > fs->group_desc_count) in new_table_block()
2464 last_grp = fs->group_desc_count; in new_table_block()
2529 for (i = 0; i < fs->group_desc_count; i++) { in handle_fs_bad_blocks()
2564 for (i = 0; i < fs->group_desc_count; i++) { in mark_table_blocks()
/external/e2fsprogs/misc/
Dmke2fs.c270 for (i = 1; i < fs->group_desc_count; i++) { in handle_bad_blocks()
369 fs->group_desc_count); in write_inode_tables()
371 for (i = 0; i < fs->group_desc_count; i++) { in write_inode_tables()
637 if (fs->group_desc_count > 1) in show_stats()
638 printf(_("%u block groups\n"), fs->group_desc_count); in show_stats()
640 printf(_("%u block group\n"), fs->group_desc_count); in show_stats()
645 if (fs->group_desc_count == 1) { in show_stats()
653 for (i = 1; i < fs->group_desc_count; i++) { in show_stats()
751 unsigned long group_desc_count, desc_blocks; in parse_extended_opts() local
784 group_desc_count = in parse_extended_opts()
[all …]
Dtune2fs.c450 for (i = 0; i < fs->group_desc_count; i++, gd++) { in update_feature_set()
461 for (i = 0; i < fs->group_desc_count; i++, gd++) { in update_feature_set()
1031 for (i = 0; i < fs->group_desc_count; i++) { in get_move_bitmaps()
1281 for (i = 0; i < fs->group_desc_count; i++) { in group_desc_scan_and_fix()
1334 for (i = 0; i < fs->group_desc_count; i++) { in expand_inode_table()
1794 for (i = 0; i < fs->group_desc_count; i++) in main()
1797 if (i >= fs->group_desc_count) in main()
1812 for (i = 0; i < fs->group_desc_count; i++) in main()
Ddumpe2fs.c175 for (i = 0; i < fs->group_desc_count; i++) { in list_desc()

12