Home | History | Annotate | Download | only in resize

Lines Matching defs:group

131 	/* Clear the block bitmap uninit flag for the last block group */
269 * If the group descriptor's bitmap and inode table blocks are valid,
276 dgrp_t group)
281 blk = ext2fs_block_bitmap_loc(old_fs, group);
288 blk = ext2fs_inode_bitmap_loc(old_fs, group);
295 blk = ext2fs_inode_table_loc(old_fs, group);
340 * Overhead is the number of bookkeeping blocks per group. It
341 * includes the superblock backup, the group descriptor
352 * See if the last group is big enough to support the
425 * Reallocate the group descriptors as necessary.
478 * Fix the count of the last (old) block group
508 * Initialize the new block group descriptors
602 * number of the block group descriptors.
777 * superblock or a block group descriptor) overlaps with an inode or
782 int group, blk64_t blk)
794 if (IS_BLOCK_BM(fs, group, blk)) {
795 ext2fs_block_bitmap_loc_set(fs, group, 0);
799 if (IS_INODE_BM(fs, group, blk)) {
800 ext2fs_inode_bitmap_loc_set(fs, group, 0);
804 if (IS_INODE_TB(fs, group, blk)) {
805 ext2fs_inode_table_loc_set(fs, group, 0);
832 (ext2fs_bg_flags_test(fs, group, EXT2_BG_BLOCK_UNINIT))) {
887 * group's metadata blocks (either allocation bitmaps or the
933 * to the next block group.
1023 * blocks) belonging to a different block group when
1131 * avoid hitting the original group descriptor blocks at least at
1138 * group of the containing inode, and keep contiguous blocks
1415 dgrp_t group, void * priv_data)
1424 if ((group+1) == 0)
1430 group+1, fs->group_desc_count);
1765 printf("Itable move group %d block %llu->%llu (diff %lld)\n",
1899 unsigned int group = 0;
1911 uninit = ext2fs_bg_flags_test(fs, group, EXT2_BG_BLOCK_UNINIT);
1912 ext2fs_super_and_bgd_loc2(fs, group, &super_blk, &old_desc_blk,
1928 EQ_CLSTR(blk, ext2fs_block_bitmap_loc(fs, group)) ||
1929 EQ_CLSTR(blk, ext2fs_inode_bitmap_loc(fs, group)) ||
1930 ((GE_CLSTR(blk, ext2fs_inode_table_loc(fs, group)) &&
1931 LT_CLSTR(blk, ext2fs_inode_table_loc(fs, group)
1940 ext2fs_bg_free_blocks_count_set(fs, group, group_free);
1941 ext2fs_group_desc_csum_set(fs, group);
1942 group++;
1943 if (group >= fs->group_desc_count)
1947 uninit = ext2fs_bg_flags_test(fs, group, EXT2_BG_BLOCK_UNINIT);
1948 ext2fs_super_and_bgd_loc2(fs, group, &super_blk,
1967 group = 0;
1970 uninit = ext2fs_bg_flags_test(fs, group, EXT2_BG_INODE_UNINIT);
1980 ext2fs_bg_free_inodes_count_set(fs, group, group_free);
1981 ext2fs_group_desc_csum_set(fs, group);
1982 group++;
1983 if (group >= fs->group_desc_count)
1987 uninit = ext2fs_bg_flags_test(fs, group, EXT2_BG_INODE_UNINIT);
2058 * first figure out how many group descriptors we need to
2075 * number of old-style block group descriptor blocks
2116 * the groups leading up to the last group so we can determine
2117 * how big the last group needs to be
2127 printf("With %d group(s), we have %llu blocks available.\n",
2132 * if we need more group descriptors in order to accomodate our data
2145 /* ok we have to account for the last group */
2155 * all of the groups leading up to the last group
2182 printf("Added %d extra group(s), "
2194 printf("Last group's overhead is %llu\n", overhead);
2198 * if this is the case then the last group is going to have data in it
2199 * so we need to adjust the size of the last group accordingly
2206 printf("Need %llu data blocks in last group\n",
2213 * for the metadata in the last group
2225 printf("Final size of last group is %lld\n", overhead);
2229 * since our last group doesn't have to be BLOCKS_PER_GROUP large, we
2231 * handle the group descriptor metadata+data that we need
2238 * the last block group.