MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / mainRawWrite

Function mainRawWrite

src/fe-rawwrite.cc:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 });
40
41int 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}

Callers

nothing calls this directly

Calls 6

showProfilesFunction · 0.85
errorFunction · 0.85
createDiskLayoutFunction · 0.85
writeRawDiskCommandFunction · 0.85
overridesMethod · 0.80

Tested by

no test coverage detected