| 39 | }); |
| 40 | |
| 41 | int mainRawWrite(int argc, const char* argv[]) |
| 42 | { |
| 43 | globalConfig().overrides()->set_tracks("c0-79h0-1"); |
| 44 | |
| 45 | if (argc == 1) |
| 46 | showProfiles("rawwrite", formats); |
| 47 | globalConfig().overrides()->mutable_flux_sink()->set_type(FLUXTYPE_DRIVE); |
| 48 | flags.parseFlagsWithConfigFiles(argc, argv, formats); |
| 49 | |
| 50 | if (globalConfig()->flux_source().type() == FLUXTYPE_DRIVE) |
| 51 | error("you can't use rawwrite to read from hardware"); |
| 52 | |
| 53 | auto fluxSource = FluxSource::create(globalConfig()); |
| 54 | auto fluxSinkFactory = FluxSinkFactory::create(globalConfig()); |
| 55 | auto diskLayout = createDiskLayout(globalConfig()); |
| 56 | |
| 57 | writeRawDiskCommand(*diskLayout, *fluxSource, *fluxSinkFactory); |
| 58 | return 0; |
| 59 | } |
nothing calls this directly
no test coverage detected