Home | History | Annotate | Download | only in resize

Lines Matching refs:old_fs

98 	rfs->old_fs = fs;
146 ext2fs_free_blocks_count(rfs->old_fs->super),
203 ext2fs_free(rfs->old_fs);
275 ext2_filsys old_fs,
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);
313 errcode_t adjust_fs_info(ext2_filsys fs, ext2_filsys old_fs,
380 blk = ext2fs_blocks_count(old_fs->super);
393 percent = (ext2fs_r_blocks_count(old_fs->super) * 100.0) /
394 ext2fs_blocks_count(old_fs->super);
418 if (reserve_blocks && new_size > ext2fs_blocks_count(old_fs->super)) {
427 if (old_fs->desc_blocks != fs->desc_blocks) {
428 retval = ext2fs_resize_mem(old_fs->desc_blocks *
434 if (fs->desc_blocks > old_fs->desc_blocks)
436 (old_fs->desc_blocks * fs->blocksize), 0,
437 (fs->desc_blocks - old_fs->desc_blocks) *
449 (old_fs->desc_blocks != fs->desc_blocks)) {
453 (old_fs->desc_blocks - fs->desc_blocks);
465 if (old_fs->group_desc_count > fs->group_desc_count) {
471 i < old_fs->group_desc_count; i++)
472 free_gdp_blocks(fs, reserve_blocks, old_fs, i);
480 old_numblocks = (ext2fs_blocks_count(old_fs->super) -
481 old_fs->super->s_first_data_block) %
482 old_fs->super->s_blocks_per_group;
484 old_numblocks = old_fs->super->s_blocks_per_group;
485 if (old_fs->group_desc_count == fs->group_desc_count) {
493 i = old_fs->group_desc_count - 1;
502 if (old_fs->group_desc_count >= fs->group_desc_count) {
511 old_fs->group_desc_count);
527 for (i = 0; i < old_fs->group_desc_count; i++)
530 for (i = old_fs->group_desc_count;
634 retval = adjust_fs_info(fs, rfs->old_fs, rfs->reserve_blocks, new_size);
641 if ((rfs->old_fs->super->s_inodes_count -
642 rfs->old_fs->super->s_free_inodes_count) >
652 if (rfs->old_fs->group_desc_count > fs->group_desc_count) {
662 if (rfs->old_fs->group_desc_count >= fs->group_desc_count) {
689 rfs->old_fs->group_desc_count);
690 adj = rfs->old_fs->group_desc_count;
698 for (i = rfs->old_fs->group_desc_count;
812 for (i=0; i < rfs->old_fs->group_desc_count; i++) {
838 } else if (ext2fs_test_block_bitmap2(rfs->old_fs->block_map, blk) &&
860 ext2_filsys fs, old_fs;
865 old_fs = rfs->old_fs;
866 if (ext2fs_blocks_count(old_fs->super) > ext2fs_blocks_count(fs->super))
867 fs = rfs->old_fs;
879 retval = mark_table_blocks(old_fs, meta_bmap);
892 if (new_size < ext2fs_blocks_count(old_fs->super)) {
926 blk < ext2fs_blocks_count(old_fs->super); blk++) {
930 ext2fs_bg_flags_test(old_fs, g, EXT2_BG_BLOCK_UNINIT)) {
938 if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
947 old_blocks = old_fs->super->s_first_meta_bg;
950 old_blocks = old_fs->desc_blocks + old_fs->super->s_reserved_gdt_blocks;
960 if (max_groups > old_fs->group_desc_count)
961 max_groups = old_fs->group_desc_count;
962 group_blk = old_fs->super->s_first_data_block;
1030 else if (flex_bg && i < old_fs->group_desc_count)
1032 ext2fs_block_bitmap_loc(old_fs, i));
1037 else if (flex_bg && i < old_fs->group_desc_count)
1039 ext2fs_inode_bitmap_loc(old_fs, i));
1045 else if (flex_bg && i < old_fs->group_desc_count)
1047 ext2fs_inode_table_loc(old_fs, i),
1048 old_fs->inode_blocks_per_group);
1069 if (ext2fs_block_bitmap_loc(old_fs, i) !=
1072 if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
1077 if (ext2fs_inode_bitmap_loc(old_fs, i) !=
1080 if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
1093 if (ext2fs_inode_table_loc(fs, i) == ext2fs_inode_table_loc(old_fs, i))
1106 if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
1116 for (blk = ext2fs_inode_table_loc(rfs->old_fs, i), j=0;
1153 ext2fs_blocks_count(rfs->old_fs->super))
1154 rfs->new_blk = ext2fs_blocks_count(rfs->old_fs->super);
1180 (rfs->new_blk < ext2fs_blocks_count(rfs->old_fs->super)) &&
1181 ext2fs_test_block_bitmap2(rfs->old_fs->block_map,
1205 ext2fs_mark_block_bitmap2(rfs->old_fs->block_map, blk);
1215 ext2_filsys old_fs = rfs->old_fs;
1224 old_fs->get_alloc_block = resize2fs_get_alloc_block;
1226 retval = ext2fs_read_bb_inode(old_fs, &badblock_list);
1248 for (blk = B2C(old_fs->super->s_first_data_block);
1249 blk < ext2fs_blocks_count(old_fs->super);
1251 if (!ext2fs_test_block_bitmap2(old_fs->block_map, blk))
1334 retval = ext2fs_update_bb_inode(old_fs,
1451 if ((rfs->old_fs->group_desc_count <=
1462 orig_size = ext2fs_blocks_count(rfs->old_fs->super);
1464 ext2fs_blocks_count_set(rfs->old_fs->super,
1467 retval = ext2fs_open_inode_scan(rfs->old_fs, 0, &scan);
1470 retval = ext2fs_init_dblist(rfs->old_fs, 0);
1472 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf);
1480 0, rfs->old_fs->group_desc_count);
1511 if (ext2fs_file_acl_block(rfs->old_fs, inode) && rfs->bmap) {
1512 new_block = extent_translate(rfs->old_fs, rfs->bmap,
1513 ext2fs_file_acl_block(rfs->old_fs, inode));
1515 ext2fs_file_acl_block_set(rfs->old_fs, inode,
1517 retval = ext2fs_write_inode_full(rfs->old_fs,
1523 if (ext2fs_inode_has_valid_blocks2(rfs->old_fs, inode) &&
1526 retval = ext2fs_block_iterate3(rfs->old_fs,
1551 retval = ext2fs_read_inode_full(rfs->old_fs, ino,
1556 retval = ext2fs_write_inode_full(rfs->old_fs, new_inode,
1571 io_channel_flush(rfs->old_fs->io);
1574 ext2fs_blocks_count_set(rfs->old_fs->super, orig_size);
1614 io_channel_flush(is->rfs->old_fs->io);
1639 retval = ext2fs_read_inode(is->rfs->old_fs, dir, &inode);
1642 is->err = ext2fs_write_inode(is->rfs->old_fs, dir, &inode);
1663 is.max_dirs = ext2fs_dblist_count2(rfs->old_fs->dblist);
1674 retval = ext2fs_dblist_dir_iterate(rfs->old_fs->dblist,
1727 if (max_groups > rfs->old_fs->group_desc_count)
1728 max_groups = rfs->old_fs->group_desc_count;
1742 if (ext2fs_inode_table_loc(rfs->old_fs, i) !=
1756 rfs->old_fs->flags |= EXT2_FLAG_MASTER_SB_ONLY;
1759 old_blk = ext2fs_inode_table_loc(rfs->old_fs, i);
1813 for (blk = ext2fs_inode_table_loc(rfs->old_fs, i), j=0;
1817 ext2fs_inode_table_loc_set(rfs->old_fs, i, new_blk);
1818 ext2fs_group_desc_csum_set(rfs->old_fs, i);
1819 ext2fs_mark_super_dirty(rfs->old_fs);
1820 ext2fs_flush(rfs->old_fs);