Lines Matching refs:fs_param

108 static struct ext2_super_block fs_param;  variable
672 if (ext2fs_blocks_count(&fs_param) != ext2fs_blocks_count(s)) in show_stats()
674 ext2fs_blocks_count(&fs_param) - ext2fs_blocks_count(s)); in show_stats()
820 if (!ext2fs_has_feature_64bit(&fs_param)) { in parse_extended_opts()
1618 memset(&fs_param, 0, sizeof(struct ext2_super_block)); in PRS()
1619 fs_param.s_rev_level = 1; /* Create revision 1 filesystems now */ in PRS()
1622 fs_param.s_rev_level = 0; in PRS()
1650 fs_param.s_log_block_size = in PRS()
1698 fs_param.s_blocks_per_group = strtoul(optarg, &tmp, 0); in PRS()
1704 if ((fs_param.s_blocks_per_group % 8) != 0) { in PRS()
1840 fs_param.s_rev_level = r_opt; in PRS()
1928 fs_param.s_log_block_size = in PRS()
1935 fs_param.s_log_block_size); in PRS()
1977 EXT2_BLOCK_SIZE(&fs_param), in PRS()
1981 EXT2_BLOCK_SIZE(&fs_param), in PRS()
2010 if (sys_page_size > EXT2_BLOCK_SIZE(&fs_param)) in PRS()
2012 EXT2_BLOCK_SIZE(&fs_param))-1)); in PRS()
2032 fs_types = parse_fs_type(fs_type, usage_types, &fs_param, in PRS()
2043 if (fs_param.s_rev_level != EXT2_GOOD_OLD_REV) { in PRS()
2046 edit_feature(tmp, &fs_param.s_feature_compat); in PRS()
2052 edit_mntopts(tmp, &fs_param.s_default_mount_opts); in PRS()
2061 edit_feature(tmp, &fs_param.s_feature_compat); in PRS()
2070 ext2fs_clear_feature_filetype(&fs_param); in PRS()
2071 ext2fs_clear_feature_huge_file(&fs_param); in PRS()
2072 ext2fs_clear_feature_metadata_csum(&fs_param); in PRS()
2073 ext2fs_clear_feature_ea_inode(&fs_param); in PRS()
2074 ext2fs_clear_feature_casefold(&fs_param); in PRS()
2077 &fs_param.s_feature_compat); in PRS()
2085 if (ext2fs_has_feature_filetype(&fs_param)) { in PRS()
2090 if (ext2fs_has_feature_huge_file(&fs_param)) { in PRS()
2095 if (ext2fs_has_feature_metadata_csum(&fs_param)) { in PRS()
2100 if (ext2fs_has_feature_ea_inode(&fs_param)) { in PRS()
2160 fs_param.s_log_block_size = in PRS()
2168 ext2fs_has_feature_64bit(&fs_param)) in PRS()
2169 ext2fs_clear_feature_resize_inode(&fs_param); in PRS()
2171 !ext2fs_has_feature_64bit(&fs_param) && in PRS()
2173 ext2fs_set_feature_64bit(&fs_param); in PRS()
2174 ext2fs_clear_feature_resize_inode(&fs_param); in PRS()
2177 !ext2fs_has_feature_64bit(&fs_param)) { in PRS()
2182 EXT2_BLOCK_SIZE(&fs_param)); in PRS()
2191 (1ULL << (EXT2_BLOCK_SIZE_BITS(&fs_param) + 3 + 32)) - 1) { in PRS()
2196 EXT2_BLOCK_SIZE(&fs_param)); in PRS()
2200 ext2fs_blocks_count_set(&fs_param, fs_blocks_count); in PRS()
2202 if (ext2fs_has_feature_journal_dev(&fs_param)) { in PRS()
2219 (fs_param.s_feature_compat || fs_param.s_feature_incompat || in PRS()
2220 fs_param.s_feature_ro_compat)) { in PRS()
2233 ext2fs_set_feature_sparse_super(&fs_param); in PRS()
2235 ext2fs_clear_feature_sparse_super(&fs_param); in PRS()
2243 ext2fs_set_feature_journal(&fs_param); in PRS()
2258 if (ext2fs_has_feature_journal_dev(&fs_param)) { in PRS()
2260 fs_param.s_feature_incompat = EXT3_FEATURE_INCOMPAT_JOURNAL_DEV; in PRS()
2261 fs_param.s_feature_compat = 0; in PRS()
2262 fs_param.s_feature_ro_compat &= in PRS()
2267 if (ext2fs_has_feature_64bit(&fs_param) && in PRS()
2268 !ext2fs_has_feature_extents(&fs_param)) { in PRS()
2276 if (ext2fs_has_feature_meta_bg(&fs_param) && in PRS()
2278 fs_param.s_first_meta_bg = atoi(tmp); in PRS()
2279 if (ext2fs_has_feature_bigalloc(&fs_param)) { in PRS()
2284 fs_param.s_log_cluster_size = in PRS()
2286 if (fs_param.s_log_cluster_size && in PRS()
2287 fs_param.s_log_cluster_size < fs_param.s_log_block_size) { in PRS()
2299 fs_param.s_log_cluster_size = fs_param.s_log_block_size; in PRS()
2306 if (inode_ratio < EXT2_CLUSTER_SIZE(&fs_param)) in PRS()
2307 inode_ratio = EXT2_CLUSTER_SIZE(&fs_param); in PRS()
2311 retval = get_device_geometry(device_name, &fs_param, in PRS()
2327 blocksize = EXT2_BLOCK_SIZE(&fs_param); in PRS()
2334 if (ext2fs_has_feature_64bit(&fs_param)) in PRS()
2335 fs_param.s_desc_size = EXT2_MIN_DESC_SIZE_64BIT; in PRS()
2352 ext2fs_has_feature_metadata_csum(&fs_param)) in PRS()
2384 fs_param.s_log_block_size); in PRS()
2392 if (ext2fs_has_feature_casefold(&fs_param)) { in PRS()
2404 fs_param.s_encoding = encoding; in PRS()
2408 &fs_param.s_encoding_flags) < 0) { in PRS()
2415 fs_param.s_encoding_flags = in PRS()
2424 parse_extended_opts(&fs_param, tmp); in PRS()
2429 parse_extended_opts(&fs_param, extended_opts); in PRS()
2432 fs_blocks_count -= offset / EXT2_BLOCK_SIZE(&fs_param); in PRS()
2433 ext2fs_blocks_count_set(&fs_param, fs_blocks_count); in PRS()
2444 ext2fs_set_feature_project(&fs_param); in PRS()
2446 if (ext2fs_has_feature_project(&fs_param)) { in PRS()
2464 if (ext2fs_has_feature_metadata_csum(&fs_param) && in PRS()
2465 ext2fs_has_feature_gdt_csum(&fs_param)) in PRS()
2466 ext2fs_clear_feature_gdt_csum(&fs_param); in PRS()
2469 if (ext2fs_has_feature_bigalloc(&fs_param) && in PRS()
2470 !ext2fs_has_feature_extents(&fs_param)) { in PRS()
2477 if (ext2fs_has_feature_meta_bg(&fs_param) && in PRS()
2478 ext2fs_has_feature_resize_inode(&fs_param)) { in PRS()
2486 if (!quiet && ext2fs_has_feature_bigalloc(&fs_param)) in PRS()
2496 if (ext2fs_has_feature_resize_inode(&fs_param) && in PRS()
2497 !ext2fs_has_feature_sparse_super(&fs_param)) { in PRS()
2504 if (fs_param.s_blocks_per_group) { in PRS()
2505 if (fs_param.s_blocks_per_group < 256 || in PRS()
2506 fs_param.s_blocks_per_group > 8 * (unsigned) blocksize) { in PRS()
2517 if (ext2fs_has_feature_bigalloc(&fs_param)) { in PRS()
2518 fs_param.s_clusters_per_group = fs_param.s_blocks_per_group; in PRS()
2519 fs_param.s_blocks_per_group = 0; in PRS()
2524 if (!flex_bg_size && ext2fs_has_feature_flex_bg(&fs_param)) in PRS()
2528 if (!ext2fs_has_feature_flex_bg(&fs_param)) { in PRS()
2534 fs_param.s_log_groups_per_flex = int_log2(flex_bg_size); in PRS()
2537 if (inode_size && fs_param.s_rev_level >= EXT2_DYNAMIC_REV) { in PRS()
2539 inode_size > EXT2_BLOCK_SIZE(&fs_param) || in PRS()
2547 fs_param.s_inode_size = inode_size; in PRS()
2554 if (ext2fs_has_feature_inline_data(&fs_param) && in PRS()
2555 fs_param.s_inode_size == EXT2_GOOD_OLD_INODE_SIZE) { in PRS()
2559 fs_param.s_inode_size); in PRS()
2566 n = ext2fs_blocks_count(&fs_param) * blocksize / inode_ratio; in PRS()
2568 if (ext2fs_has_feature_64bit(&fs_param)) in PRS()
2586 fs_param.s_inodes_count = num_inodes ? num_inodes : in PRS()
2587 (ext2fs_blocks_count(&fs_param) * blocksize) / inode_ratio; in PRS()
2589 if ((((unsigned long long)fs_param.s_inodes_count) * in PRS()
2591 ((ext2fs_blocks_count(&fs_param)) * in PRS()
2592 EXT2_BLOCK_SIZE(&fs_param))) { in PRS()
2599 fs_param.s_inodes_count, in PRS()
2600 (unsigned long long) ext2fs_blocks_count(&fs_param)); in PRS()
2607 ext2fs_r_blocks_count_set(&fs_param, reserved_ratio * in PRS()
2608 ext2fs_blocks_count(&fs_param) / 100.0); in PRS()
2610 if (ext2fs_has_feature_sparse_super2(&fs_param)) { in PRS()
2612 fs_param.s_backup_bgs[0] = 1; in PRS()
2614 fs_param.s_backup_bgs[1] = ~0; in PRS()
2630 csum_flag = ext2fs_has_feature_metadata_csum(&fs_param) || in should_do_undo()
2631 ext2fs_has_feature_gdt_csum(&fs_param); in should_do_undo()
2973 device_name, fs_param.s_blocks_count, in main()
2974 1024 << fs_param.s_log_block_size); in main()
2976 &fs_param, sparse_io_manager, &fs); in main()
2979 retval = ext2fs_initialize(device_name, flags, &fs_param, in main()
3021 ext2fs_has_feature_journal(&fs_param))) in main()
3046 if (fs_param.s_flags & EXT2_FLAGS_TEST_FILESYS) in main()
3049 if (ext2fs_has_feature_flex_bg(&fs_param) || in main()
3050 ext2fs_has_feature_huge_file(&fs_param) || in main()
3051 ext2fs_has_feature_gdt_csum(&fs_param) || in main()
3052 ext2fs_has_feature_dir_nlink(&fs_param) || in main()
3053 ext2fs_has_feature_metadata_csum(&fs_param) || in main()
3054 ext2fs_has_feature_extra_isize(&fs_param)) in main()
3098 if (memcmp(fs_param.s_hash_seed, zero_buf, in main()
3099 sizeof(fs_param.s_hash_seed)) != 0) { in main()
3100 memcpy(fs->super->s_hash_seed, fs_param.s_hash_seed, in main()
3317 ext2fs_has_feature_journal(&fs_param)) { in main()
3360 if (ext2fs_has_feature_bigalloc(&fs_param)) in main()
3362 if (ext2fs_has_feature_quota(&fs_param)) in main()