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

Function mainFormat

src/fe-format.cc:23–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 "perform quick format (requires the disk to be previously formatted)");
22
23int mainFormat(int argc, const char* argv[])
24{
25 if (argc == 1)
26 showProfiles("format", formats);
27 flags.parseFlagsWithConfigFiles(argc, argv, formats);
28
29 try
30 {
31 auto filesystem = Filesystem::createFilesystemFromConfig();
32 filesystem->create(quick, volumeName);
33 filesystem->flushChanges();
34 }
35 catch (const FilesystemException& e)
36 {
37 error("{}", e.message);
38 }
39
40 return 0;
41}

Callers

nothing calls this directly

Calls 5

showProfilesFunction · 0.85
errorFunction · 0.85
createMethod · 0.45
flushChangesMethod · 0.45

Tested by

no test coverage detected