| 21 | "perform quick format (requires the disk to be previously formatted)"); |
| 22 | |
| 23 | int 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 | } |
nothing calls this directly
no test coverage detected