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:39:34 +0100 |
| commit | 9b9202c7f9fc26fcef0984189aaed366b7c6d726 (patch) | |
| tree | 66653eea92abc8d7f5e551b6336145331bc9190c /src/lib/cross.h | |
| parent | 59bb9538218eee564ab3c07f923628e0a47bf207 (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 ac1f028f4..aad223d60 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; |
