Home
last modified time | relevance | path

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

12

/external/e2fsprogs/lib/ext2fs/
Dalloc_tables.c123 if (group && fs->group_desc[group-1].bg_block_bitmap) in ext2fs_allocate_group_table()
124 prev_block = fs->group_desc[group-1].bg_block_bitmap; in ext2fs_allocate_group_table()
130 if (!fs->group_desc[group].bg_block_bitmap) { in ext2fs_allocate_group_table()
139 fs->group_desc[group].bg_block_bitmap = new_blk; in ext2fs_allocate_group_table()
142 fs->group_desc[gr].bg_free_blocks_count--; in ext2fs_allocate_group_table()
144 fs->group_desc[gr].bg_flags &= ~EXT2_BG_BLOCK_UNINIT; in ext2fs_allocate_group_table()
151 if (group && fs->group_desc[group-1].bg_inode_bitmap) in ext2fs_allocate_group_table()
152 prev_block = fs->group_desc[group-1].bg_inode_bitmap; in ext2fs_allocate_group_table()
158 if (!fs->group_desc[group].bg_inode_bitmap) { in ext2fs_allocate_group_table()
167 fs->group_desc[group].bg_inode_bitmap = new_blk; in ext2fs_allocate_group_table()
[all …]
Dcsum.c37 desc = &fs->group_desc[group]; in ext2fs_group_desc_csum()
71 (fs->group_desc[group].bg_checksum != in ext2fs_group_desc_csum_verify()
82 fs->group_desc[group].bg_checksum = in ext2fs_group_desc_csum_set()
106 struct ext2_group_desc *bg = fs->group_desc; in ext2fs_set_gdt_csum()
150 struct ext2_group_desc *desc = &fs->group_desc[group]; in print_csum()
154 struct ext2_group_desc swabdesc = fs->group_desc[group]; in print_csum()
199 fs->group_desc[i].bg_block_bitmap = 124; in main()
200 fs->group_desc[i].bg_inode_bitmap = 125; in main()
201 fs->group_desc[i].bg_inode_table = 126; in main()
202 fs->group_desc[i].bg_free_blocks_count = 31119; in main()
[all …]
Dalloc_stats.c34 fs->group_desc[group].bg_free_inodes_count -= inuse; in ext2fs_inode_alloc_stats2()
36 fs->group_desc[group].bg_used_dirs_count += inuse; in ext2fs_inode_alloc_stats2()
40 fs->group_desc[group].bg_flags &= ~EXT2_BG_INODE_UNINIT; in ext2fs_inode_alloc_stats2()
44 fs->group_desc[group].bg_itable_unused + in ext2fs_inode_alloc_stats2()
48 fs->group_desc[group].bg_itable_unused = in ext2fs_inode_alloc_stats2()
79 fs->group_desc[group].bg_free_blocks_count -= inuse; in ext2fs_block_alloc_stats()
80 fs->group_desc[group].bg_flags &= ~EXT2_BG_BLOCK_UNINIT; in ext2fs_block_alloc_stats()
Dalloc.c41 !(fs->group_desc[group].bg_flags & EXT2_BG_BLOCK_UNINIT)) in check_block_uninit()
62 (blk == fs->group_desc[group].bg_block_bitmap) || in check_block_uninit()
63 (blk == fs->group_desc[group].bg_inode_bitmap) || in check_block_uninit()
64 (blk >= fs->group_desc[group].bg_inode_table && in check_block_uninit()
65 (blk < fs->group_desc[group].bg_inode_table in check_block_uninit()
71 fs->group_desc[group].bg_flags &= ~EXT2_BG_BLOCK_UNINIT; in check_block_uninit()
85 !(fs->group_desc[group].bg_flags & EXT2_BG_INODE_UNINIT)) in check_inode_uninit()
92 fs->group_desc[group].bg_flags &= ~EXT2_BG_INODE_UNINIT; in check_inode_uninit()
Ddupfs.c37 fs->group_desc = 0; in ext2fs_dup_handle()
63 &fs->group_desc); in ext2fs_dup_handle()
66 memcpy(fs->group_desc, src->group_desc, in ext2fs_dup_handle()
Drw_bitmaps.c73 if (csum_flag && fs->group_desc[i].bg_flags & in write_bitmaps()
91 blk = fs->group_desc[i].bg_block_bitmap; in write_bitmaps()
105 if (csum_flag && fs->group_desc[i].bg_flags & in write_bitmaps()
114 blk = fs->group_desc[i].bg_inode_bitmap; in write_bitmaps()
238 blk = fs->group_desc[i].bg_block_bitmap; in read_bitmaps()
239 if (csum_flag && fs->group_desc[i].bg_flags & in read_bitmaps()
260 blk = fs->group_desc[i].bg_inode_bitmap; in read_bitmaps()
261 if (csum_flag && fs->group_desc[i].bg_flags & in read_bitmaps()
Dinitialize.c377 &fs->group_desc); in ext2fs_initialize()
381 memset(fs->group_desc, 0, (size_t) fs->desc_blocks * fs->blocksize); in ext2fs_initialize()
404 fs->group_desc[i].bg_flags |= in ext2fs_initialize()
406 fs->group_desc[i].bg_flags |= EXT2_BG_INODE_UNINIT; in ext2fs_initialize()
410 fs->group_desc[i].bg_itable_unused = numblocks; in ext2fs_initialize()
417 fs->group_desc[i].bg_free_blocks_count = numblocks; in ext2fs_initialize()
418 fs->group_desc[i].bg_free_inodes_count = in ext2fs_initialize()
420 fs->group_desc[i].bg_used_dirs_count = 0; in ext2fs_initialize()
Dcheck_desc.c63 blk = fs->group_desc[i].bg_block_bitmap; in ext2fs_check_desc()
74 blk = fs->group_desc[i].bg_inode_bitmap; in ext2fs_check_desc()
85 blk = fs->group_desc[i].bg_inode_table; in ext2fs_check_desc()
Dinode.c147 group_desc[scan->current_group].bg_inode_table; in ext2fs_open_inode_scan()
153 fs->group_desc[scan->current_group].bg_itable_unused; in ext2fs_open_inode_scan()
236 scan->current_block =fs->group_desc[scan->current_group].bg_inode_table; in get_next_blockgroup()
247 fs->group_desc[scan->current_group].bg_itable_unused; in get_next_blockgroup()
438 (scan->fs->group_desc[scan->current_group].bg_flags & in ext2fs_get_next_inode_full()
572 if (!fs->group_desc[(unsigned)group].bg_inode_table) in ext2fs_read_inode_full()
574 block_nr = fs->group_desc[(unsigned)group].bg_inode_table + in ext2fs_read_inode_full()
691 if (!fs->group_desc[(unsigned) group].bg_inode_table) { in ext2fs_write_inode_full()
695 block_nr = fs->group_desc[(unsigned) group].bg_inode_table + block; in ext2fs_write_inode_full()
Dfreefs.c39 if (fs->group_desc) in ext2fs_free()
40 ext2fs_free_mem(&fs->group_desc); in ext2fs_free()
Dimager.c74 blk = fs->group_desc[(unsigned)group].bg_inode_table; in ext2fs_image_inode_write()
148 blk = fs->group_desc[(unsigned)group].bg_inode_table; in ext2fs_image_inode_read()
214 cp = (char *) fs->group_desc; in ext2fs_image_super_write()
265 memcpy(fs->group_desc, buf + fs->blocksize, in ext2fs_image_super_read()
Dopenfs.c300 &fs->group_desc); in ext2fs_open2()
305 dest = (char *) fs->group_desc; in ext2fs_open2()
345 for (i = 0, gd = fs->group_desc; i < fs->group_desc_count; in ext2fs_open2()
Dalloc_sb.c64 fs->group_desc[group].bg_flags &= ~EXT2_BG_BLOCK_UNINIT; in ext2fs_reserve_super_and_bgd()
Ddblist.c40 if (fs->group_desc[i].bg_used_dirs_count > max_dirs) in ext2fs_get_num_dirs()
43 num_dirs += fs->group_desc[i].bg_used_dirs_count; in ext2fs_get_num_dirs()
/external/e2fsprogs/resize/
Dresize2fs.c57 #define FS_BLOCK_BM(fs, i) ((fs)->group_desc[(i)].bg_block_bitmap)
58 #define FS_INODE_BM(fs, i) ((fs)->group_desc[(i)].bg_inode_bitmap)
59 #define FS_INODE_TB(fs, i) ((fs)->group_desc[(i)].bg_inode_table)
115 rfs->new_fs->group_desc[rfs->new_fs->group_desc_count-1].bg_flags &= in resize_fs()
202 if (!(fs->group_desc[g].bg_flags & EXT2_BG_BLOCK_UNINIT)) in fix_uninit_block_bitmaps()
225 (blk == fs->group_desc[g].bg_block_bitmap) || in fix_uninit_block_bitmaps()
226 (blk == fs->group_desc[g].bg_inode_bitmap) || in fix_uninit_block_bitmaps()
227 (blk >= fs->group_desc[g].bg_inode_table && in fix_uninit_block_bitmaps()
228 (blk < fs->group_desc[g].bg_inode_table in fix_uninit_block_bitmaps()
399 &fs->group_desc); in adjust_fs_info()
[all …]
Donline.c135 input.block_bitmap = new_fs->group_desc[i].bg_block_bitmap; in online_resize_fs()
136 input.inode_bitmap = new_fs->group_desc[i].bg_inode_bitmap; in online_resize_fs()
137 input.inode_table = new_fs->group_desc[i].bg_inode_table; in online_resize_fs()
157 new_fs->group_desc[i].bg_free_blocks_count); in online_resize_fs()
159 new_fs->group_desc[i].bg_free_inodes_count, in online_resize_fs()
Dmain.c114 b_stride = fs->group_desc[group].bg_block_bitmap - in determine_fs_stride()
115 fs->group_desc[group-1].bg_block_bitmap - in determine_fs_stride()
117 i_stride = fs->group_desc[group].bg_inode_bitmap - in determine_fs_stride()
118 fs->group_desc[group-1].bg_inode_bitmap - in determine_fs_stride()
/external/e2fsprogs/misc/
Ddumpe2fs.c116 bg_flags = fs->group_desc[i].bg_flags; in print_bg_opts()
174 fs->group_desc[i].bg_checksum, in list_desc()
175 fs->group_desc[i].bg_itable_unused); in list_desc()
201 print_number(fs->group_desc[i].bg_block_bitmap); in list_desc()
202 diff = fs->group_desc[i].bg_block_bitmap - first_block; in list_desc()
206 print_number(fs->group_desc[i].bg_inode_bitmap); in list_desc()
207 diff = fs->group_desc[i].bg_inode_bitmap - first_block; in list_desc()
211 print_range(fs->group_desc[i].bg_inode_table, in list_desc()
212 fs->group_desc[i].bg_inode_table + in list_desc()
214 diff = fs->group_desc[i].bg_inode_table - first_block; in list_desc()
[all …]
De2image.c270 if (fs->group_desc[i].bg_inode_table) { in mark_table_blocks()
271 for (j = 0, b = fs->group_desc[i].bg_inode_table; in mark_table_blocks()
280 if (fs->group_desc[i].bg_block_bitmap) { in mark_table_blocks()
282 fs->group_desc[i].bg_block_bitmap); in mark_table_blocks()
288 if (fs->group_desc[i].bg_inode_bitmap) { in mark_table_blocks()
290 fs->group_desc[i].bg_inode_bitmap); in mark_table_blocks()
Dtune2fs.c263 fs->group_desc[group].bg_free_blocks_count++; in release_blocks_proc()
982 start_blk = fs->group_desc[i].bg_inode_table + in get_move_bitmaps()
985 end_blk = fs->group_desc[i].bg_inode_table + in get_move_bitmaps()
1021 if (fs->group_desc[group].bg_block_bitmap == blk) in ext2fs_is_meta_block()
1023 if (fs->group_desc[group].bg_inode_bitmap == blk) in ext2fs_is_meta_block()
1232 blk = fs->group_desc[i].bg_block_bitmap; in group_desc_scan_and_fix()
1237 fs->group_desc[i].bg_block_bitmap = new_blk; in group_desc_scan_and_fix()
1240 blk = fs->group_desc[i].bg_inode_bitmap; in group_desc_scan_and_fix()
1245 fs->group_desc[i].bg_inode_bitmap = new_blk; in group_desc_scan_and_fix()
1285 blk = fs->group_desc[i].bg_inode_table; in expand_inode_table()
[all …]
/external/e2fsprogs/e2fsck/
Dpass5.c160 (fs->group_desc[group].bg_flags & EXT2_BG_BLOCK_UNINIT)) in check_block_bitmaps()
191 if (i == fs->group_desc[group].bg_block_bitmap) in check_block_bitmaps()
193 else if (i == fs->group_desc[group].bg_inode_bitmap) in check_block_bitmaps()
195 else if (i >= fs->group_desc[group].bg_inode_table && in check_block_bitmaps()
196 (i < fs->group_desc[group].bg_inode_table in check_block_bitmaps()
222 fs->group_desc[group].bg_flags &= in check_block_bitmaps()
263 (fs->group_desc[group].bg_flags & in check_block_bitmaps()
297 if (free_array[i] != fs->group_desc[i].bg_free_blocks_count) { in check_block_bitmaps()
299 pctx.blk = fs->group_desc[i].bg_free_blocks_count; in check_block_bitmaps()
304 fs->group_desc[i].bg_free_blocks_count = in check_block_bitmaps()
[all …]
Dpass1.c2076 if (block == fs->group_desc[i].bg_block_bitmap) {
2080 if (block == fs->group_desc[i].bg_inode_bitmap) {
2084 if (block >= fs->group_desc[i].bg_inode_table &&
2085 (block < fs->group_desc[i].bg_inode_table
2363 if (blk == fs->group_desc[i].bg_block_bitmap) { in process_bad_block()
2370 if (blk == fs->group_desc[i].bg_inode_bitmap) { in process_bad_block()
2377 if ((blk >= fs->group_desc[i].bg_inode_table) && in process_bad_block()
2378 (blk < (fs->group_desc[i].bg_inode_table + in process_bad_block()
2516 1, &fs->group_desc[i].bg_block_bitmap); in handle_fs_bad_blocks()
2520 1, &fs->group_desc[i].bg_inode_bitmap); in handle_fs_bad_blocks()
[all …]
Dswapfs.c134 fs->group_desc[group].bg_inode_table, in swap_inodes()
172 fs->group_desc[group].bg_inode_table, in swap_inodes()
/external/grub/stage2/
Dfsys_ext2fs.c503 int group_desc; /* fs pointer to that group */ in ext2fs_dir() local
540 group_desc = group_id >> log2 (EXT2_DESC_PER_BLOCK (SUPERBLOCK)); in ext2fs_dir()
545 printf ("group_id=%d group_desc=%d desc=%d\n", group_id, group_desc, desc); in ext2fs_dir()
548 (WHICH_SUPER + group_desc + SUPERBLOCK->s_first_data_block), in ext2fs_dir()
/external/e2fsprogs/debugfs/
Dset_fields.c417 set_gd = current_fs->group_desc[set_bg]; in parse_gd_csum()
419 current_fs->group_desc[set_bg].bg_checksum); in parse_gd_csum()
572 set_gd = current_fs->group_desc[set_bg]; in do_set_block_group_descriptor()
575 current_fs->group_desc[set_bg] = set_gd; in do_set_block_group_descriptor()

12