diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-18 00:09:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-19 20:28:19 +0100 |
| commit | 0ad664e870e8f852a6272371ba1a2f10282dc428 (patch) | |
| tree | 55902e35342508ccc7ab2f98505bf93ab5fa7606 /src/lib/cross.h | |
| parent | b3c25f2ed77ca16ddb2ed854e2e72424165ffc98 (diff) | |
Adjust how macOS drives are analysed and add a couple of tests.
Diffstat (limited to 'src/lib/cross.h')
| -rw-r--r-- | src/lib/cross.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/cross.h b/src/lib/cross.h index cc902232c..f1d0943fa 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -142,19 +142,17 @@ void disk_write_finished (); struct OSXMediaPath { - bool real; ///< true for a "real" disk, false for a synthesized APFS one - std::string prt; ///< "PRT" entry from the media path + bool real; ///< true for a "real" disk, false for a synthesized APFS one + std::vector<std::string> parts; ///< parts of the media path after the : }; - struct OSXDisk { - std::string mount_point; + std::string device; boost::optional<std::string> vendor; boost::optional<std::string> model; - bool real; - std::string prt; + OSXMediaPath media_path; bool whole; std::vector<boost::filesystem::path> mount_points; unsigned long size; |
