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

Function mainRead

src/fe-read.cc:44–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 });
43
44int mainRead(int argc, const char* argv[])
45{
46 if (argc == 1)
47 showProfiles("read", formats);
48 globalConfig().set("flux_source.type", "FLUXTYPE_DRIVE");
49 flags.parseFlagsWithConfigFiles(argc, argv, formats);
50
51 if (globalConfig()->decoder().copy_flux_to().type() == FLUXTYPE_DRIVE)
52 error("you cannot copy flux to a hardware device");
53
54 auto diskLayout = createDiskLayout(globalConfig());
55 auto fluxSource = FluxSource::create(globalConfig());
56 auto decoder = Arch::createDecoder(globalConfig());
57 auto writer = ImageWriter::create(globalConfig());
58
59 readDiskCommand(*diskLayout, *fluxSource, *decoder, *writer);
60
61 return 0;
62}

Callers

nothing calls this directly

Calls 6

showProfilesFunction · 0.85
errorFunction · 0.85
createDiskLayoutFunction · 0.85
readDiskCommandFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected