Lines Matching refs:config
25 extern struct f2fs_configuration config;
51 config.heap = atoi(optarg); in f2fs_parse_options()
52 if (config.heap == 0) in f2fs_parse_options()
56 config.dbg_lv = atoi(optarg); in f2fs_parse_options()
57 MSG(0, "Info: Debug level = %d\n", config.dbg_lv); in f2fs_parse_options()
60 config.extension_list = strdup(optarg); in f2fs_parse_options()
69 config.vol_label = optarg; in f2fs_parse_options()
70 MSG(0, "Info: Label = %s\n", config.vol_label); in f2fs_parse_options()
73 config.overprovision = atoi(optarg); in f2fs_parse_options()
78 config.segs_per_sec = atoi(optarg); in f2fs_parse_options()
83 config.secs_per_zone = atoi(optarg); in f2fs_parse_options()
87 config.trim = atoi(optarg); in f2fs_parse_options()
88 MSG(0, "Info: Trim is %s\n", config.trim ? "enabled": "disabled"); in f2fs_parse_options()
101 config.device_name = argv[optind]; in f2fs_parse_options()
105 config.total_sectors = atoll(argv[optind+1]); in f2fs_parse_options()
107 config.total_sectors, argv[optind+1]); in f2fs_parse_options()
110 config.reserved_segments = in f2fs_parse_options()
111 (2 * (100 / config.overprovision + 1) + 6) in f2fs_parse_options()
112 * config.segs_per_sec; in f2fs_parse_options()
113 config.segs_per_zone = config.segs_per_sec * config.secs_per_zone; in f2fs_parse_options()
121 f2fs_init_configuration(&config); in main()
125 if (f2fs_dev_is_umounted(&config) < 0) in main()
128 if (f2fs_get_device_info(&config) < 0) in main()
134 f2fs_finalize_device(&config); in main()