Commit Graph
42 Commits
Author SHA1 Message Date
Carl Johnsen ca1fb3ac9b Restructured the DiskImage project to lift the OS specific disk listings to the disk interface and to centralize the functionality for running external processes 2026-03-05 15:30:36 +01:00
Carl Johnsen 01448a6da0 Apple partition types were missing from the MBR constants 2026-02-25 13:25:05 +01:00
Carl Johnsen d92a8dfe18 Partition entries were (incorrectly) hardcoded to 4. 2026-02-25 10:38:45 +01:00
Carl Johnsen a16593111c Apple partition type GUIDs were unused 2026-02-25 10:38:25 +01:00
Carl Johnsen 4aed5b4028 Recalculated CRC header needs to be cleared before recalculation 2026-02-23 22:54:05 +01:00
Carl Johnsen 880c086f21 Ensure that GPT boot code is zeroed 2026-02-23 22:51:34 +01:00
Carl Johnsen 4a2957f59f A partition doesn't need a name in the GPT table 2026-02-23 22:51:16 +01:00
Carl Johnsen 30aec291f9 Detecting the protective MBR should read a sector, not just MBR size 2026-02-23 11:48:59 +01:00
Carl Johnsen cf5bb051fe Changed from BitConverter to BinaryPrimitives to ensure endian-ness across host systems. 2026-02-19 18:55:17 +01:00
Carl Johnsen 3d6e8f3db5 Changed disk image specific classes to being internal, so they're not accessed externally. 2026-02-19 18:16:36 +01:00
Carl Johnsen c2c81c3dd0 Moved partition table synthesis to it's own file 2026-02-15 16:29:40 +01:00
Carl Johnsen e1e454d200 Centralized common MBR definitions 2026-02-15 16:21:16 +01:00
Carl Johnsen 652f6a9593 Centralized common GPT GUID definitions 2026-02-15 16:16:21 +01:00
Carl Johnsen cdc47c252a Removed duplicate crc32 implementations 2026-02-15 16:09:52 +01:00
Carl Johnsen 1702e60df0 Moved constants to a common file 2026-02-15 16:04:34 +01:00
Carl Johnsen 18cf9d58cf Merged the recontstructed partition tables into one 2026-02-15 15:58:30 +01:00
Carl Johnsen bd36800789 Made a base partition implementation 2026-02-15 15:22:54 +01:00
Carl Johnsen 67e9eecb0c Removed duplicate PartitionWriteStream implementations 2026-02-15 15:11:08 +01:00
Carl Johnsen b52e0cfcda Changed to pooled buffer allocations to improve performance 2026-02-15 14:47:07 +01:00
Carl Johnsen 0568a9e46f Changed to span slices rather than array slices 2026-02-15 13:53:03 +01:00
Carl Johnsen a3d3c0c191 Eliminated more redundant buffering. 2026-02-15 13:37:14 +01:00
Carl Johnsen 4845c22233 Added docstrings 2026-02-15 12:45:59 +01:00
Carl Johnsen a7caf62a30 MBR type offset was incorrect 2026-02-15 10:48:07 +01:00
Carl Johnsen 9bd94e8ea7 Reuse already read MBR bytes 2026-02-15 10:03:46 +01:00
Carl Johnsen d32a39108f Directly write files rather than caching them locally for disk image restore. 2026-02-06 12:53:33 +01:00
Carl Johnsen 4ffb8adf20 Added restore of partition tables 2026-02-06 06:46:48 +01:00
Carl Johnsen 93cbbb203e Added unknown partition table and partition type 2026-02-05 09:35:16 +01:00
Carl Johnsen fdf778da71 Renamed namespace to follow folder restructuring 2026-02-04 11:13:44 +01:00
Carl Johnsen 4f1dedb54d The raw disk has to be nullable since we allow for byte[] parsing (used for debugging) 2026-02-04 11:09:04 +01:00
Carl Johnsen 84b2bafea3 Changed the interface to be able to go "upwards" at all times 2026-02-04 10:40:47 +01:00
Carl Johnsen b2ffa91aa2 Restructured the interfaces 2026-02-04 09:42:38 +01:00
Carl Johnsen 3789a50632 Added parsing of the partition type and filesystem type for GPT partition tables 2026-02-04 08:57:33 +01:00
Carl Johnsen 41eefec8e8 Added verification of the secondary GPT header 2026-02-04 08:35:15 +01:00
Carl Johnsen 7a729192fb The partitions collection should only be set in the core parsing 2026-02-04 08:17:48 +01:00
Carl Johnsen 274f1c71c5 When reading a disk raw, read size always has to be sector size 2026-02-04 07:50:49 +01:00
Carl Johnsen 0fa8450d5a Added automatic partition table detection 2026-02-03 20:40:33 +01:00
Carl Johnsen deaec94992 The disk handle for the partition table is nullable 2026-02-02 16:10:16 +01:00
Carl Johnsen c9a20fb082 Partitions should be disposable 2026-02-02 16:08:37 +01:00
Carl Johnsen a89c50b056 Added GPT partition parsing 2026-02-02 16:08:10 +01:00
Carl Johnsen e6ba4de9b3 Fixed typo 2026-02-02 14:29:19 +01:00
Carl Johnsen 1df064cdd6 Added basic GPT table parsing 2026-02-02 10:33:02 +01:00
Carl Johnsen aa2c7d1f2e Added initial interfaces 2026-01-31 14:46:13 +01:00